cf694132f1
Added gobs of stuff, see wxPython/README.txt for details git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
42 lines
888 B
Python
42 lines
888 B
Python
|
|
from wxPython.wx import *
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class MyFrame(wxFrame):
|
|
def __init__(self, parent, ID, title, pos, size):
|
|
wxFrame.__init__(self, parent, ID, title, pos, size)
|
|
panel = wxPanel(self, -1)
|
|
|
|
button = wxButton(panel, 1003, "Close Me")
|
|
button.SetPosition(wxPoint(15, 15))
|
|
EVT_BUTTON(self, 1003, self.OnCloseMe)
|
|
|
|
def OnCloseMe(self, event):
|
|
self.Close(true)
|
|
|
|
def OnCloseWindow(self, event):
|
|
self.Destroy()
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
def runTest(frame, nb, log):
|
|
win = MyFrame(frame, -1, "This is a wxFrame", wxDefaultPosition, wxSize(350, 200))
|
|
frame.otherWin = win
|
|
win.Show(true)
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
overview = """\
|
|
"""
|