Le 05/07/2013 17:32, Frank Schiro a écrit :
Hi. I cant find documentation about this online, and a simple
dir(self.combobox) shows about a million built in functions...
So I was wondering what function do I need to use to change the combo
box to what I want it to be ? If the combo box has 3 choices a,b,c and
I want to set it to b when the user presses a button, what function do
I need to call on the combo box to do this ?
with setCurrentIndex(index)
http://pyqt.sourceforge.net/Docs/PyQt4/qcombobox.html#setCurrentIndex
If you don't have the index, you can find it with findText(text)
http://pyqt.sourceforge.net/Docs/PyQt4/qcombobox.html#findText
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt