File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 25
25
# todo add command line option to execute run configuration (by name)
26
26
from discopop_wizard .screens .settings import show_settings_screen , save_settings
27
27
28
+ from discopop_wizard .utils import get_platform , Platform
29
+
28
30
29
31
def main (arguments : Arguments ):
30
32
print ("starting DiscoPoP Wizard...\n " )
@@ -113,10 +115,10 @@ def check():
113
115
warnings .warn ("Loading the window icon was not successful." )
114
116
115
117
# set window to full screen
116
- try :
117
- self .window .attributes ('-zoomed' , True )
118
- except tk .TclError : # above does not work on macOS
118
+ if get_platform () in (Platform .OSX , Platform .WINDOWS ):
119
119
self .window .state ("zoomed" )
120
+ else :
121
+ self .window .attributes ('-zoomed' , True )
120
122
self .window .columnconfigure (1 , weight = 1 )
121
123
self .window .rowconfigure (1 , weight = 1 )
122
124
paned_window = ttk .PanedWindow (self .window , orient = tk .VERTICAL )
You can’t perform that action at this time.
0 commit comments