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