[W2k, wxPython 2.6.1.0] - MDISashDemo bug?

w.p. ptaku2_wywal_to_ at tlen.pl
Tue Jun 27 12:07:22 EDT 2006


w.p. wrote:
> When i run MDISashDemo and maximize main frame, minimize and maximize 
> again - LayoutMDIFrame in OnSize dont work more...
> Why?
> 
> I need this feature for main MDI frame with toolbar and statusbar with 
> panels&sizers&bitmapbuttons :)
> 
> Windows 2000, wxPython 2.6.1.0
> 
> w.p.
> 
When i add this code:

     self.Bind(wx.EVT_ACTIVATE, self.OnActivate)

and

     def OnActivate(self, event):
        if event.GetActive():
         wx.LayoutAlgorithm().LayoutMDIFrame(self)

all is ok.

Small improvement in demo :)

w.p.



More information about the Python-list mailing list