1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Consolidate raiseAll logic into app.py

This commit is contained in:
Joe R 2024-12-24 23:23:21 -05:00
parent cafdafe047
commit 5005ef6796
3 changed files with 5 additions and 7 deletions

View file

@ -834,11 +834,6 @@ class PysolMenubar(PysolMenubarTk):
self.app.opt.timeouts['highlight_samerank'] = \ self.app.opt.timeouts['highlight_samerank'] = \
d.highlight_samerank_timeout d.highlight_samerank_timeout
def raiseAll(self):
raise_find_card_dialog(self.game)
raise_full_picture_dialog(self.game)
raise_solver_dialog(self.game)
# #
# Help menu # Help menu
# #

View file

@ -516,10 +516,13 @@ class Application:
self.opt.wm_fullscreen = not self.opt.wm_fullscreen self.opt.wm_fullscreen = not self.opt.wm_fullscreen
self.top.attributes("-fullscreen", self.opt.wm_fullscreen) self.top.attributes("-fullscreen", self.opt.wm_fullscreen)
# Topmost dialogs need to be reset when toggling fullscreen. # Topmost dialogs need to be reset when toggling fullscreen.
self.raiseAll()
self.top.attributes('-topmost', False)
def raiseAll(self):
raise_find_card_dialog(self.game) raise_find_card_dialog(self.game)
raise_full_picture_dialog(self.game) raise_full_picture_dialog(self.game)
raise_solver_dialog(self.game) raise_solver_dialog(self.game)
self.top.attributes('-topmost', False)
def loadImages1(self): def loadImages1(self):
# load dialog images # load dialog images

View file

@ -1893,7 +1893,7 @@ Unsupported game for import.
if self._cancelDrag(break_pause=False): if self._cancelDrag(break_pause=False):
return return
self.app.opt.topmost_dialogs = self.tkopt.topmost_dialogs.get() self.app.opt.topmost_dialogs = self.tkopt.topmost_dialogs.get()
self.raiseAll() self.app.raiseAll()
def _mOptCardback(self, index): def _mOptCardback(self, index):
if self._cancelDrag(break_pause=False): if self._cancelDrag(break_pause=False):