mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fixed updating find card dialog when changing game category.
This commit is contained in:
parent
c7922075ba
commit
cc3a1297cd
1 changed files with 8 additions and 3 deletions
|
@ -46,11 +46,11 @@ class FindCardDialog(tkinter.Toplevel):
|
||||||
title = TITLE + ' - ' + _('Find card')
|
title = TITLE + ' - ' + _('Find card')
|
||||||
self.title(title)
|
self.title(title)
|
||||||
self.wm_resizable(False, False)
|
self.wm_resizable(False, False)
|
||||||
self.cardsettype = game.gameinfo.category
|
self.cardsettype = ''
|
||||||
cs_type = CSI.TYPE_ID[self.cardsettype]
|
self.dir = dir
|
||||||
#
|
#
|
||||||
# self.images_dir = dir
|
# self.images_dir = dir
|
||||||
self.images_dir = os.path.join(dir, 'finder', cs_type)
|
self.images_dir = ''
|
||||||
self.label_width, self.label_height = LARGE_EMBLEMS_SIZE
|
self.label_width, self.label_height = LARGE_EMBLEMS_SIZE
|
||||||
# if size == 'large':
|
# if size == 'large':
|
||||||
# self.images_dir = os.path.join(dir, 'large', cs_type)
|
# self.images_dir = os.path.join(dir, 'large', cs_type)
|
||||||
|
@ -117,6 +117,11 @@ class FindCardDialog(tkinter.Toplevel):
|
||||||
self.groups.append(group)
|
self.groups.append(group)
|
||||||
|
|
||||||
def connectGame(self, game):
|
def connectGame(self, game):
|
||||||
|
self.cardsettype = game.gameinfo.category
|
||||||
|
cs_type = CSI.TYPE_ID[self.cardsettype]
|
||||||
|
#
|
||||||
|
# self.images_dir = dir
|
||||||
|
self.images_dir = os.path.join(self.dir, 'finder', cs_type)
|
||||||
self.canvas.delete('all')
|
self.canvas.delete('all')
|
||||||
self.game = game
|
self.game = game
|
||||||
suits = game.gameinfo.suits
|
suits = game.gameinfo.suits
|
||||||
|
|
Loading…
Add table
Reference in a new issue