wxPython and how to return text entry to main program?
Steve Holden
steve at holdenweb.com
Thu Apr 19 22:05:59 EDT 2007
7stud wrote:
> On Apr 19, 1:38 pm, Tyler <hayes.ty... at gmail.com> wrote:
[after quoting umpteen lines of code]
>
> You can do this:
>
> ---
> class MyFrame(wx.Frame):
>
> ..
> ..
> ..
> def OnSubmit(self, event):
> globals()["userInput"] = self.txtCtrlName.GetValue()
> self.Close()
>
> app = MyApp()
> app.MainLoop()
>
> print userInput
> -----
>
Please try to limit your quoting to what's relevant.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Recent Ramblings http://holdenweb.blogspot.com
More information about the Python-list
mailing list