Problem with Qt

Michael McGarry mmcgarry at nospam.org
Sun Dec 12 18:52:09 EST 2004


Hi,

I am trying to show a radio button group on a window, but only the last 
radio button shows up. Anyone know why?

Here is the code:

from qt import *
import sys
a = QApplication(sys.argv)
widget = QWidget()
trafftype = QButtonGroup("Traffic Type", widget)
poisson = QRadioButton("Poisson", trafftype)
selfsimilar = QRadioButton("Self-Similar", trafftype)
a.setMainWidget(widget)
widget.show()
a.exec_loop()

Any help is greatly appreciated.

Michael



More information about the Python-list mailing list