mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fixed overlapping labels in Betsy Ross.
This commit is contained in:
parent
9273e09841
commit
36b3f89b52
1 changed files with 5 additions and 5 deletions
|
@ -194,10 +194,10 @@ class BetsyRoss(Calculation):
|
||||||
# create layout
|
# create layout
|
||||||
l, s = Layout(self), self.s
|
l, s = Layout(self), self.s
|
||||||
help, text_width = self._getHelpText()
|
help, text_width = self._getHelpText()
|
||||||
text_width += 2*l.XM
|
text_width += 2 * l.XM
|
||||||
|
|
||||||
# set window
|
# set window
|
||||||
self.setSize(5.5*l.XS+l.XM+text_width, l.YM+3*l.YS+l.TEXT_HEIGHT)
|
self.setSize(5.5 * l.XS + l.XM + text_width, l.YM + 3 * l.YS)
|
||||||
|
|
||||||
# create stacks
|
# create stacks
|
||||||
x0 = l.XM + l.XS * 3 // 2
|
x0 = l.XM + l.XS * 3 // 2
|
||||||
|
@ -224,11 +224,11 @@ class BetsyRoss(Calculation):
|
||||||
font=self.app.getFont("canvas_fixed"))
|
font=self.app.getFont("canvas_fixed"))
|
||||||
x = l.XM
|
x = l.XM
|
||||||
s.talon = WasteTalonStack(x, y, self, max_rounds=3)
|
s.talon = WasteTalonStack(x, y, self, max_rounds=3)
|
||||||
l.createText(s.talon, "n")
|
l.createText(s.talon, "ne")
|
||||||
l.createRoundText(s.talon, 'nnn')
|
l.createRoundText(s.talon, 'n')
|
||||||
y += l.YS
|
y += l.YS
|
||||||
s.waste = WasteStack(x, y, self)
|
s.waste = WasteStack(x, y, self)
|
||||||
l.createText(s.waste, "s")
|
l.createText(s.waste, "se")
|
||||||
|
|
||||||
# define stack-groups
|
# define stack-groups
|
||||||
l.defaultStackGroups()
|
l.defaultStackGroups()
|
||||||
|
|
Loading…
Add table
Reference in a new issue