mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-03 00:51:11 +03:00
Fix main window system & station alignment on OSX.
Broken by 84a66c5.
This commit is contained in:
parent
d451d11ca9
commit
e7a727acde
@ -25,6 +25,7 @@ class HyperlinkLabel(platform == 'darwin' and tk.Label or ttk.Label, object):
|
|||||||
if platform == 'darwin':
|
if platform == 'darwin':
|
||||||
# Use tk.Label 'cos can't set ttk.Label background - http://www.tkdocs.com/tutorial/styles.html#whydifficult
|
# Use tk.Label 'cos can't set ttk.Label background - http://www.tkdocs.com/tutorial/styles.html#whydifficult
|
||||||
kw['background'] = kw.pop('background', 'systemDialogBackgroundActive')
|
kw['background'] = kw.pop('background', 'systemDialogBackgroundActive')
|
||||||
|
kw['anchor'] = kw.pop('anchor', tk.W) # like ttk.Label
|
||||||
tk.Label.__init__(self, master, **kw)
|
tk.Label.__init__(self, master, **kw)
|
||||||
else:
|
else:
|
||||||
ttk.Label.__init__(self, master, **kw)
|
ttk.Label.__init__(self, master, **kw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user