File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ def draw(self):
182182status_label_hide_delay = 1
183183status_label_small = None
184184update_interval_seconds = 6.0
185- window = pyglet .window .Window (resizable = True )
186- zoom_speed = 0.002
185+ window = pyglet .window .Window (resizable = True , style = "borderless" )
186+ zoom_speed = 0.0014
187187
188188
189189def osd_banner (message , delay = osd_banner_delay ):
@@ -715,19 +715,19 @@ def on_resize(width,height):
715715
716716if __name__ == '__main__' :
717717 try :
718- args_dir = None
718+ args = None
719719 if len (sys .argv ) > 1 :
720- args_dir = sys .argv [1 ]
720+ args = sys .argv [1 ]
721721
722- if args_dir and args_dir == '-h' or args_dir == '--help;' :
722+ if args and args == '-h' or args == '--help;' :
723723 print (help_usage , file = sys .stderr )
724724 sys .exit (0 )
725725
726- if args_dir :
727- if os .path .isdir (args_dir ):
728- image_paths = get_image_paths_from_directory (args_dir )
729- elif os .path .isfile (args_dir ):
730- image_paths = get_image_paths_from_file (args_dir )
726+ if args :
727+ if os .path .isdir (args ):
728+ image_paths = get_image_paths_from_directory (args )
729+ elif os .path .isfile (args ):
730+ image_paths = get_image_paths_from_file (args )
731731 else :
732732 image_paths = get_image_paths_from_stdin ()
733733
You can’t perform that action at this time.
0 commit comments