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

Propagate to the subclasses.

This commit is contained in:
Shlomi Fish 2017-06-03 04:45:43 +03:00
parent dbf04ad300
commit 6b9d5bd0c6
3 changed files with 6 additions and 3 deletions

View file

@ -78,7 +78,8 @@ class FreeCell(Game):
l, s = Layout(self), self.s
kwdefault(layout, rows=8, reserves=4, texts=0)
# self.Layout_Method(l, **layout)
self.__class__.__dict__['Layout_Method'](l, **layout)
# self.__class__.__dict__['Layout_Method'](l, **layout)
self.__class__.Layout_Method(l, **layout)
self.setSize(l.size[0], l.size[1])
# create stacks
s.talon = self.Talon_Class(l.s.talon.x, l.s.talon.y, self)

View file

@ -79,8 +79,8 @@ class Klondike(Game):
# create layout
l, s = Layout(self), self.s
kwdefault(layout, rows=7, waste=1, texts=1, playcards=16)
self.__class__.__dict__['Layout_Method'](l, **layout)
# self.Layout_Method.__get__(l, l.__class__)(**layout)
self.__class__.Layout_Method(l, **layout)
self.setSize(l.size[0], l.size[1])
# create stacks
s.talon = self.Talon_Class(l.s.talon.x, l.s.talon.y, self,

View file

@ -140,7 +140,9 @@ class RelaxedSpider(Game):
# create layout
l, s = Layout(self), self.s
kwdefault(layout, rows=10, waste=0, texts=1, playcards=23)
self.Layout_Method(l, **layout)
# self.Layout_Method(l, **layout)
# self.__class__.__dict__['Layout_Method'](l, **layout)
self.__class__.Layout_Method(l, **layout)
self.setSize(l.size[0], l.size[1])
# create stacks
s.talon = self.Talon_Class(l.s.talon.x, l.s.talon.y, self)