Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Commit dc1084d

Browse files
committed
Animation spam handling
1 parent 38a87be commit dc1084d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/front.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def init(self):
7777
self.window.pack(fill='both', expand=True)
7878
self.commandbar.pack(side='bottom', fill='both', expand=True)
7979

80-
self.btn_dislike.pack(side='left')
81-
self.btn_like.pack(side='right')
82-
self.btn_bio.pack()
80+
self.btn_dislike.pack(side='left', padx=10)
81+
self.btn_like.pack(side='right', padx=10)
82+
self.btn_bio.pack(pady=10)
8383

8484
self.cache = ImageCache(self.cachesize)
8585
self.cache.start()
@@ -95,6 +95,8 @@ def cmd_like(self):
9595
self.__next('right')
9696

9797
def cmd_bio(self):
98+
if self.window.active:
99+
return
98100
if self.window.current != self.bio:
99101
self.window.change_view(self.bio, 'up')
100102
else:

src/view.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def change_view(self, view: View, direction: Direction = None):
9696
self.move_out(last, direction)
9797

9898
self.animater.start()
99-
print(len(self.views))
10099

101100
def get_distance(self, direction: Direction):
102101
if not isinstance(direction, Direction):

0 commit comments

Comments
 (0)