]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-08/miniframe.py
   3 class MiniFrame(wx
.MiniFrame
): 
   5         wx
.MiniFrame
.__init
__(self
, None, -1, 'Mini Frame',  
   7         panel 
= wx
.Panel(self
, -1, size
=(300, 100)) 
   8         button 
= wx
.Button(panel
, -1, "Close Me", pos
=(15, 15)) 
   9         self
.Bind(wx
.EVT_BUTTON
, self
.OnCloseMe
, button
) 
  10         self
.Bind(wx
.EVT_CLOSE
, self
.OnCloseWindow
) 
  12     def OnCloseMe(self
, event
): 
  15     def OnCloseWindow(self
, event
): 
  18 if __name__ 
== '__main__': 
  19     app 
= wx
.PySimpleApp()