[Python-talk] how do I ? wxpython & python related
bruce.labitt at autoliv.com
bruce.labitt at autoliv.com
Thu Jul 16 16:21:45 EDT 2009
I am looking at using wxpython to simplify my user interface which has
grown bulky over time. I have 8 radioboxes with some choices that the
user needs to make. I have gotten to the point where I can determine
which radiobox and which radiobutton in that box have been selected. My
plan is to have a go button on the frame. This button will be enabled
once the setup has been completed. (I don't know yet how to do this, but
that is not the question.)
1. Should I log the button / panel presses while the main loop runs, or
2. After the 'GO' button is pressed, somehow poll the current status of
all the buttons/boxes/widgets?
For 1, I would need to create a 'global' variable(s) that are kept up to
date. How are globals done in python, or is that a stupid question?
For 2, is there a way to do this in wxpython? I thought it was all event
driven - is the state saved anywhere?
Sorry these questions are so elementary - I guess I have to start
somewhere...
Best Regards,
Bruce
******************************
Neither the footer nor anything else in this E-mail is intended to or constitutes an <br>electronic signature and/or legally binding agreement in the absence of an <br>express statement or Autoliv policy and/or procedure to the contrary.<br>This E-mail and any attachments hereto are Autoliv property and may contain legally <br>privileged, confidential and/or proprietary information.<br>The recipient of this E-mail is prohibited from distributing, copying, forwarding or in any way <br>disseminating any material contained within this E-mail without prior written <br>permission from the author. If you receive this E-mail in error, please <br>immediately notify the author and delete this E-mail. Autoliv disclaims all <br>responsibility and liability for the consequences of any person who fails to <br>abide by the terms herein. <br>
******************************
More information about the Python-talk
mailing list