DeaD_EyE icon

Patch to get rid of Ukraine Flag in Thonny

DeaD_EyE | PRO | 09/13/22 08:54:27 AM UTC | -1 ⭐ | 2656 👁️ | Never ⏰ | []
Python |

1.4 KB

|

None

|

0 👍

/

1 👎

--- workbench_old.py    2022-09-13 08:47:34.034719838 +0000
+++ workbench.py        2022-09-13 08:48:00.628321658 +0000
@@ -688,17 +688,6 @@
                 group=101,
             )
 
-        self.add_command(
-            "SupportUkraine",
-            "help",
-            tr("Support Ukraine"),
-            self._support_ukraine,
-            image="Ukraine",
-            caption=tr("Support"),
-            include_in_toolbar=True,
-            group=101,
-        )
-
         if thonny.in_debug_mode():
             self.bind_all("<Control-Shift-Alt-D>", self._print_state_for_debugging, True)
 
@@ -785,22 +774,8 @@
         self._status_label = ttk.Label(self._statusbar, text="")
         self._status_label.grid(row=1, column=1, sticky="w")
 
-        # self._init_support_ukraine_bar()
         self._init_backend_switcher()
 
-    def _init_support_ukraine_bar(self) -> None:
-        ukraine_label = create_action_label(
-            self._statusbar,
-            tr("Support Ukraine"),
-            self._support_ukraine,
-            # image=self.get_image("Ukraine"),
-            # compound="left"
-        )
-        ukraine_label.grid(row=1, column=1, sticky="wsn")
-
-    def _support_ukraine(self, event=None) -> None:
-        webbrowser.open("https://github.com/thonny/thonny/wiki/Support-Ukraine")
-
     def _init_backend_switcher(self):
 
         # Set up the menu

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎