On Feb 11, 2011, at 4:15 PM, Ricardo Araoz wrote:

> Both? hehe

        Greedy! ;-)

> What I want is the form to fit to sizer only if the user has not
> expressed other preferences (i.e. has not changed the form's original
> size), if the user changed the size I want the form to keep the user's
> choices.
> The behaviour it has in afterInit() is ideal, except for the fact that
> extraWidth has no effect. Is there some other method that fires before
> restoreSizeAndPosition() but *only* at startup that I might use?


        Why not override restoreSizeAndPosition() as follows:

def restoreSizeAndPosition(self):
        currSize = self.Size
        currPos = self.Position
        super(YourClass, self).restoreSizeAndPosition()
        if (currSize == self.Size) and (currPos == self.Position):
                # Nothing changed
                self.fitToSizer()



-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to