I have a dialog window (self) and place a notebook on it. Then I create a page and put a static text and textctrl on the notebook.
self.nb = wxNotebook(self, -1, wxDefaultPosition, self.GetClientSize())
self.win1 = wxPanel(self.nb, -1)
self.nb.AddPage(self.win1, "File Info")
wxStaticText(win1, -1, "Code:", wxPoint(20, 25))
self.code = wxTextCtrl(win1, 10, "", wxPoint(125, 25), wxSize(150, 20))
Now I want to Get/Set the value of the textctrl as follows:
self.code.SetValue("")
But this gives me:
self.code.SetValue("")
AttributeError: code
Please tell me where I have strayed so I can correct my errant ways.
Thanks
Gene
ยทยทยท
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup