Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
how to query/test the state of a qt widget?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="raacampbell, post: 2943855"] Hi, I'm writing a simple Python/Qt3 application and I am trying to write some code in which the user presses a button and the program performs action A or B depending upon the state of a pair of radio buttons. I would therefore like Python to read the state of the buttons. I was expecting this to be straightforward but I've not been able to work out how to do it and searching on Google hasn't helped. Surely there's a one-liner that will do what I want? It seems like an every-day sort of problem. I'm after something like: if self.polPlotRadioButton.enabled==1: print "BLAH" I've found squish from [URL="http://www.froglogic.com"]www.froglogic.com[/URL] but that seems over the top. Possibly pythonqt.sourceforge.net has something that will solve my problem but that wants Qt4 and at the moment I'm making heavy use of matplotlib widgets and I've not worked out how to get them to incorporate into a Qt4 app so I'm stuck with Qt3. Anyone know the answer? Thanks in advance! [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
how to query/test the state of a qt widget?
Top