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

+ version 0.9.3

* bug fixes


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@58 efabe8c0-fbe8-4139-b769-b5e6d273206e
This commit is contained in:
skomoroh 2006-08-27 21:13:54 +00:00
parent 3ce24a088b
commit 3b0cc10d30
7 changed files with 16 additions and 3 deletions

View file

@ -121,7 +121,11 @@ class PysolMenubarActions:
return self.game is None or self.game._finishDrag()
def _cancelDrag(self, break_pause=True):
return self.game is None or self.game._cancelDrag(break_pause=break_pause)
if self.game is None:
return True
ret = self.game._cancelDrag(break_pause=break_pause)
self._setPauseMenu(self.game.pause)
return ret
def changed(self, *args, **kw):
assert self.game is not None
@ -712,7 +716,7 @@ class PysolMenubarActions:
#
if (text_color != self.app.opt.colors['text'] or
use_default_text_color != self.app.opt.use_default_text_color):
self.app.setTile(self.app.opt.tabletile_index)
self.app.setTile(self.app.tabletile_index)
def mOptFonts(self, *args):
if self._cancelDrag(break_pause=False): return

View file

@ -336,6 +336,7 @@ class GI:
('fc-0.9.0', tuple(range(323, 421))),
('fc-0.9.1', tuple(range(421, 441))),
('fc-0.9.2', tuple(range(441, 466))),
('fc-0.9.3', tuple(range(466, 661))),
)
# deprecated - the correct way is to or a GI.GT_XXX flag

View file

@ -855,7 +855,7 @@ class Applegate(Game):
def getHighlightPilesStacks(self):
return ()
shallHighlightMatch = Game._shallHighlightMatch_RKW
shallHighlightMatch = Game._shallHighlightMatch_SSW
# /***********************************************************************

View file

@ -162,6 +162,7 @@ def help_html(app, document, dir_, top=None):
viewer = HTMLViewer(top, app, help_html_index)
viewer.display(doc)
#wm_map(top, maximized=maximized)
viewer.parent.wm_deiconify()
viewer.parent.tkraise()
help_html_viewer = viewer
return viewer

View file

@ -863,3 +863,6 @@ class PysolMenubar(PysolMenubarActions):
# FIXME
pass
def _setPauseMenu(self, v):
# FIXME
pass

View file

@ -196,6 +196,7 @@ find_card_dialog = None
def create_find_card_dialog(parent, game, dir):
global find_card_dialog
try:
find_card_dialog.wm_deiconify()
find_card_dialog.tkraise()
except:
##traceback.print_exc()

View file

@ -939,6 +939,9 @@ class PysolMenubar(PysolMenubarActions):
def _setCommentMenu(self, v):
self.tkopt.comment.set(v)
def _setPauseMenu(self, v):
self.tkopt.pause.set(v)
#
# menu actions