1 from wxPython
.wx
import *
5 self
.panel
= wxPanel(frame
, -1)
6 self
.box
= wxListBox(self
.panel
, 100, wxPoint(10,10),
7 wxSize(300,100), [], wxLB_SINGLE|wxLB_SORT
)
8 self
.text
= wxTextCtrl(self
.panel
, 110,'', wxPoint(310,10),
9 wxSize(300,100),wxTE_MULTILINE|wxTE_READONLY
)
13 line
= 'This is a test'
15 self
.text
.AppendText(line
)
17 def OnCloseWindow(self
, event
):
18 self
.panel
.Close(true
)
23 frame
= wxFrame(NULL
,-1,'Main',wxDefaultPosition
,wxSize(630,150))
26 self
.SetTopWindow(frame
)
29 def OnCloseWindow(self
, event
):
32 if __name__
== '__main__':