Hello all,
Here is the simple code that crash my box
(Win2000 + Python 2.3.3 + wxPython 2.5.1)
···
-----------------
import wx
class MyApplication( wx.App ):
def __init__ ( self ):
wx.App.__init__( self, False )
def OnInit( self ):
frame = self.frame = wx.Frame( None, -1, 'Test' )
frame_sizer = wx.BoxSizer( wx.VERTICAL )
panel = wx.Panel( frame, -1 )
panel_sizer = wx.BoxSizer( wx.VERTICAL )
#button = wx.Button( panel, -1, 'Button' )
#panel_sizer.Add( button )
panel.SetSizerAndFit( panel_sizer )
frame_sizer.Add( panel_sizer )
frame.SetSizerAndFit( frame_sizer )
self.SetTopWindow( frame )
frame.Show()
return True
def Main():
application = MyApplication()
application.MainLoop()
if __name__ == '__main__':
Main()
----------------------
The question is... hmm... why? What I doing wrong?
Vladimir Ignatov