newbie wxpython GUI question

Stephen Semeniuk blah at blah.blah
Thu Mar 27 21:02:19 CET 2003


anthony wrote:
> I feel quite lame for not being able to figure this out.  I'm using
> python 2.2, wxpython 2.4.  I want to build a simple GUI where there
> are three text boxes and one button.  I want the user to put values
> into the text boexes and press the button.  When you press the button
> I want to read the data from the text boxes (currently wxTextCtrl) and
> add them up.  I have the event set up for something to happen on the
> button press, but how do I either pass the text box IDs into the
> button event or get the text from the button event?  If this is
> incorrect Python mentality feel free to yell at me.

You should be able to use the GetValue() method on the wxTextCtrl text 
boxes from within the button event method.
-- 
========================================================
Stephen Semeniuk               stephen at sentai dot com
Sentai Software Corporation





More information about the Python-list mailing list