@@ -50,13 +50,18 @@ def __init__(self, *args, **kwargs):
5050 theButton1 = wx .Button (self , label = "Push Me" )
5151 theButton1 .Bind (wx .EVT_BUTTON , self .onButton )
5252
53+ ## add a static text lable:
54+ label1 = wx .StaticText (self , label = "Input Box:" )
55+
5356 ## add a text control:
5457 self .inTextControl = wx .TextCtrl (self )
5558
5659 ## add another button:
5760 theButton2 = wx .Button (self , label = "GetData" )
5861 theButton2 .Bind (wx .EVT_BUTTON , self .onGetData )
5962
63+ ## add a static text lable:
64+ label2 = wx .StaticText (self , label = "Output Box:" )
6065 ## and another text control:
6166 self .outTextControl = wx .TextCtrl (self , style = wx .TE_READONLY )
6267
@@ -65,8 +70,11 @@ def __init__(self, *args, **kwargs):
6570 buttonSizer = wx .BoxSizer (wx .VERTICAL )
6671
6772 buttonSizer .Add (theButton1 , 0 , wx .GROW | wx .ALL , 4 )
73+ buttonSizer .Add (label1 , 0 , wx .ALIGN_LEFT | wx .TOP , 4 )
6874 buttonSizer .Add (self .inTextControl , 0 , wx .GROW | wx .ALL , 4 )
75+ buttonSizer .Add ((150 , 10 ))
6976 buttonSizer .Add (theButton2 , 0 , wx .GROW | wx .ALL , 4 )
77+ buttonSizer .Add (label2 , 0 , wx .ALIGN_LEFT | wx .TOP , 4 )
7078 buttonSizer .Add (self .outTextControl , 0 , wx .GROW | wx .ALL , 4 )
7179
7280 ## need another sizer to get the horizonal placement right:
@@ -84,7 +92,7 @@ def onGetData(self, evt=None):
8492 print "get data button pressed"
8593 contents = self .inTextControl .Value
8694 print "the contents are:" , contents
87-
95+
8896 self .outTextControl .Value = self .inTextControl .Value
8997
9098
0 commit comments