Advertisement
DeaD_EyE

Patch to get rid of Ukraine Flag in Thonny

Sep 13th, 2022
1,917
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.40 KB | None | 0 1
  1. --- workbench_old.py    2022-09-13 08:47:34.034719838 +0000
  2. +++ workbench.py        2022-09-13 08:48:00.628321658 +0000
  3. @@ -688,17 +688,6 @@
  4.                  group=101,
  5.              )
  6.  
  7. -        self.add_command(
  8. -            "SupportUkraine",
  9. -            "help",
  10. -            tr("Support Ukraine"),
  11. -            self._support_ukraine,
  12. -            image="Ukraine",
  13. -            caption=tr("Support"),
  14. -            include_in_toolbar=True,
  15. -            group=101,
  16. -        )
  17. -
  18.          if thonny.in_debug_mode():
  19.              self.bind_all("<Control-Shift-Alt-D>", self._print_state_for_debugging, True)
  20.  
  21. @@ -785,22 +774,8 @@
  22.          self._status_label = ttk.Label(self._statusbar, text="")
  23.          self._status_label.grid(row=1, column=1, sticky="w")
  24.  
  25. -        # self._init_support_ukraine_bar()
  26.          self._init_backend_switcher()
  27.  
  28. -    def _init_support_ukraine_bar(self) -> None:
  29. -        ukraine_label = create_action_label(
  30. -            self._statusbar,
  31. -            tr("Support Ukraine"),
  32. -            self._support_ukraine,
  33. -            # image=self.get_image("Ukraine"),
  34. -            # compound="left"
  35. -        )
  36. -        ukraine_label.grid(row=1, column=1, sticky="wsn")
  37. -
  38. -    def _support_ukraine(self, event=None) -> None:
  39. -        webbrowser.open("https://github.com/thonny/thonny/wiki/Support-Ukraine")
  40. -
  41.      def _init_backend_switcher(self):
  42.  
  43.          # Set up the menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement