[PyQt] insert a radio button in menu of menubar
Mads Ipsen
mpi at comxnet.dk
Thu Nov 12 09:42:09 GMT 2009
vidyadhar wrote:
> I want to have a radio button on menu entries in the menubar.
>
> eg: like a gedit in linux
>
> please help me out
> thanks
>
>
* Set up the desired QAction's.
* Add them to a QActionGroup.
* Set the group to be exclusive (setExclusive(True)).
* Add the actions to your menubar.
--
+-------------------------------------------------------------+
| Mads Ipsen, Scientific developer |
+-------------------------------+-----------------------------+
| QuantumWise A/S | phone: +45-29716388 |
| Nørre Søgade 27A | www: www.quantumwise.com |
| DK-1370 Copenhagen K, Denmark | email: mpi at quantumwise.com |
+-------------------------------+-----------------------------+
More information about the PyQt
mailing list