main logo
Subject: [dabo-dev] dabodemo Commit 281
Author: Paul McNett

Posted: 2005/08/31 20:16:02
 
View Entire Thread
New Search


dabodemo Commit
Revision 281
Date: 2005-08-31 18:24:52 -0700 (Wed, 31 Aug 2005)
Author: paul

Changed:
U trunk/montana.py

Log:
Ed, these changes are humbly submitted for your review. The fudge
on the panel size was needed to keep the last card from being
cut off.

The fitToSizer was commented so that the form is sized how I last
left it, instead of being sized off the edge of my screen.



Diff:
Modified: trunk/montana.py
===================================================================
--- trunk/montana.py 2005-09-01 00:19:19 UTC (rev 280)
+++ trunk/montana.py 2005-09-01 01:24:52 UTC (rev 281)
@@ -202,9 +202,10 @@
# No deck info yet
return
self.needResize = False
+ fudge = -30
# Determine the ratios needed to fill this panel
- wdRatio = self.Width / float(self._baseWd)
- htRatio = self.Height / float(self._baseHt)
+ wdRatio = (self.Width+fudge) / float(self._baseWd)
+ htRatio = (self.Height+fudge) / float(self._baseHt)
# Use the smaller of the two, in order to guarantee that
# the full layout will fit.
newRatio = min(wdRatio, htRatio)
@@ -513,7 +514,7 @@

class MontanaForm(dabo.ui.dForm):
def afterInit(self):
- self.Centered = True
+ #self.Centered = True
self.Caption = "Montana"
# Add the board, score display and re-deal button
self.Sizer.Border = 5
@@ -523,7 +524,7 @@
self.layout()
self.fillMenu()
dabo.ui.callAfter(self.startGame)
- dabo.ui.callAfter(self.fitToSizer)
+ #dabo.ui.callAfter(self.fitToSizer)


def fillMenu(self):





 
©2005 Paul McNett
<-- Prior Message New Search Next Message -->