main logo
Subject: Re: [dabo-dev] How to keep minesweeper squares "square"
Author: Paul McNett

Posted: 2005/08/31 14:28:06
 
View Entire Thread
New Search


Ed Leafe wrote:
> On Aug 31, 2005, at 3:07 PM, Paul McNett wrote:
>
>> How would I modify the sizer code in minesweeper (board._fillboard ())
>> to keep the squares square instead of rectangular?
>
>
> You'd have to do it when the underlying panel resizes. Lemme take a
> quick crack at it.

While you are at it, check out how much quicker the board will be
created if you comment out the two lines:

sizer.setRowExpand(True, "all")
sizer.setColExpand(True, "all")

--
Paul McNett
http://paulmcnett.com
http://dabodev.com



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