mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Fixed bool usage
This commit is contained in:
parent
fad193eff1
commit
42a0c058ea
@ -532,7 +532,7 @@ class AppWindow(object):
|
|||||||
self.menubar.add_cascade(menu=self.help_menu)
|
self.menubar.add_cascade(menu=self.help_menu)
|
||||||
if platform == 'win32':
|
if platform == 'win32':
|
||||||
# Must be added after at least one "real" menu entry
|
# Must be added after at least one "real" menu entry
|
||||||
self.always_ontop = tk.BooleanVar(value=config.get_bool('always_ontop'))
|
self.always_ontop = tk.BooleanVar(value=bool(config.get_int('always_ontop')))
|
||||||
self.system_menu = tk.Menu(self.menubar, name='system', tearoff=tk.FALSE) # type: ignore # https://github.com/python/typeshed/issues/4658 # noqa: E501
|
self.system_menu = tk.Menu(self.menubar, name='system', tearoff=tk.FALSE) # type: ignore # https://github.com/python/typeshed/issues/4658 # noqa: E501
|
||||||
self.system_menu.add_separator()
|
self.system_menu.add_separator()
|
||||||
self.system_menu.add_checkbutton(label=_('Always on top'),
|
self.system_menu.add_checkbutton(label=_('Always on top'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user