Skip to content

Commit

Permalink
fixed X button behavior for login/detail windows
Browse files Browse the repository at this point in the history
quite a nasty bug destroying that login window caused
  • Loading branch information
Noiredd committed Feb 7, 2019
1 parent fa424dc commit 1d575ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions filmatyk/detailviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def __init__(self):
self.activeView = None
self.posterManager = posterman.PosterManager()
self.__construct()
self.root.protocol('WM_DELETE_WINDOW', self.root.withdraw)
self.root.resizable(0,0)
self.root.title('Podgląd')
self.root.withdraw()
Expand Down
1 change: 1 addition & 0 deletions filmatyk/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self, root):
self.window.resizable(False, False)
self.window.attributes("-topmost", True)
self.window.title('Zaloguj się')
self.window.protocol('WM_DELETE_WINDOW', self._cancelClick)
self.isDone = tk.BooleanVar()
self.isDone.set(False)
self.stateGood = True
Expand Down

0 comments on commit 1d575ed

Please sign in to comment.