Skip to content

Commit 075cf7a

Browse files
committed
window style borderless
1 parent 74b222a commit 075cf7a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

slideshow.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def draw(self):
182182
status_label_hide_delay = 1
183183
status_label_small = None
184184
update_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

189189
def osd_banner(message, delay=osd_banner_delay):
@@ -715,19 +715,19 @@ def on_resize(width,height):
715715

716716
if __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

0 commit comments

Comments
 (0)