Skip to content

Commit

Permalink
Remove FBF; Improve jumps
Browse files Browse the repository at this point in the history
Signed-off-by: Nerya Meshulam <Nerya.Meshulam@wdc.com>
  • Loading branch information
nerya-meshulam-wdc committed Feb 7, 2019
1 parent 9c17f0e commit 6438938
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
17 changes: 9 additions & 8 deletions Poke-A-Bird.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Copyright (c) 2018 Elad Yacovi, Nerya Meshulam
Copyright (c) 2018-2019 Elad Yacovi, Nerya Meshulam
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -41,7 +41,7 @@
from PIL import Image
from Pmw import Balloon

__version__ = '0.4'
__version__ = '0.5'

class ControlBlock:
def __init__(self):
Expand Down Expand Up @@ -347,8 +347,8 @@ def __init__(self, parent, *args, **kwargs):
self.play = Button(self, image=self.play_icon, command=self.parent.playback_panel.on_play)
self.stop_icon = PhotoImage(file='./media/icons8-stop-32.png')
self.stop = Button(self, image=self.stop_icon, command=self.parent.playback_panel.on_stop)
self.next_frame_icon = PhotoImage(file='./media/icons8-resume-button-32.png')
self.next_frame = Button(self, image=self.next_frame_icon, command=self.parent.playback_panel.on_next_frame)
# self.next_frame_icon = PhotoImage(file='./media/icons8-resume-button-32.png')
# self.next_frame = Button(self, image=self.next_frame_icon, command=self.parent.playback_panel.on_next_frame)
self.speedup_icon = PhotoImage(file='./media/icons8-fast-forward-32.png')
self.speedup = Button(self, image=self.speedup_icon, command=self.parent.playback_panel.on_speed_up)
self.speeddown_icon = PhotoImage(file='./media/icons8-rewind-32.png')
Expand Down Expand Up @@ -376,7 +376,7 @@ def __init__(self, parent, *args, **kwargs):
self.speeddown.pack(side=LEFT, fill=Y, padx=1, pady=3)
self.speedup.pack(side=LEFT, fill=Y, padx=1, pady=3)
ttk.Separator(self, orient=VERTICAL).pack(side=LEFT, fill=Y, padx=5)
self.next_frame.pack(side=LEFT, fill=Y, padx=1, pady=3)
# self.next_frame.pack(side=LEFT, fill=Y, padx=1, pady=3)
self.jump_backword.pack(side=LEFT, fill=Y, padx=1, pady=3)
self.jump_forward.pack(side=LEFT, fill=Y, padx=1, pady=3)
ttk.Separator(self, orient=VERTICAL).pack(side=LEFT, fill=Y, padx=5)
Expand Down Expand Up @@ -1472,8 +1472,8 @@ def DisplayOnLabel(self, event):
self.status_label.config(text="Speed Up")
elif event.widget == self.parent.control_bar.speeddown:
self.status_label.config(text="Speed Down")
elif event.widget == self.parent.control_bar.next_frame:
self.status_label.config(text="Next Frame")
# elif event.widget == self.parent.control_bar.next_frame:
# self.status_label.config(text="Next Frame")
elif event.widget == self.parent.control_bar.jump_forward:
self.status_label.config(text="Jump Forward")
elif event.widget == self.parent.control_bar.jump_backword:
Expand Down Expand Up @@ -1660,7 +1660,8 @@ def register_hotkeys(self):
self.bind_all("<Control-Key-e>", self.playback_panel.on_click)
self.bind_all("<Control-Key-m>", self.on_open_event_manager_menu_click)
self.bind_all("<Control-Key-r>", self.on_reset)
self.bind_all("<Right>", self.playback_panel.on_next_frame)
self.bind_all("<Right>", self.control_bar.on_jump_backward)
self.bind_all("<Left>", self.control_bar.on_jump_forward)


if __name__ == "__main__":
Expand Down
6 changes: 3 additions & 3 deletions prerequisites/installer.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define MyAppName "Poke-A-Bird Prerequisites"
#define MyAppVersion "0.5"
#define MyAppVersion "0.6"
#define MyAppPublisher "Elad Yacovi and Nerya Meshulam, Tel Aviv University"
#define MyAppURL "https://github.com/nerya21/Poke-A-Bird"

Expand All @@ -21,7 +21,7 @@ Compression=lzma
SolidCompression=yes
Uninstallable = no
DisableWelcomePage=no
AppCopyright=Copyright (C) 2018 {#MyAppPublisher}
AppCopyright=Copyright (C) 2018-2019 {#MyAppPublisher}
ChangesEnvironment=yes

[Languages]
Expand All @@ -34,5 +34,5 @@ Source: ".\bin\*.*"; DestDir: "{tmp}"; Flags: ignoreversion
[Run]
Filename: "{tmp}\python-3.7.1.exe"; Parameters: "/quiet Include_launcher=0"; StatusMsg: "Installing Python (python-3.7.1.exe)...";
Filename: "{tmp}\install_packages.bat"; Parameters:{tmp} ; StatusMsg: "Installing Python packages (install_packages.bat)...";
Filename: "{tmp}\vlc-3.0.4-win32.exe"; Parameters: "/S"; StatusMsg: "Installing VLC (vlc-3.0.4-win32.exe)...";
Filename: "{tmp}\vlc-3.0.6-win32.exe"; Parameters: "/S"; StatusMsg: "Installing VLC (vlc-3.0.6-win32.exe)...";
Filename: "https://github.com/nerya21/Poke-A-Bird/releases"; Description: "Visit Poke-A-Bird website"; Flags: postinstall shellexec runasoriginaluser

0 comments on commit 6438938

Please sign in to comment.