[PyQt] Add menu at runtime

F.A.Pinkse fapinkse at gmail.com
Mon Jul 5 16:00:32 BST 2010


Hello Nick,


Thank you for your reply.

It did put me on the trick to this

            self.menuGSound = self.menuBar().addMenu("Sound")

and it works.

it also brought me this

	self.menuSound.deleteLater()

and it works.

I think I could have figured out the .addMenu myself, but the 
.deleteLater()??????

Thanks again.


Frans.




Op 7/5/2010 1:39 PM, Nick Gaens schreef:
> You could try to call menuBar.update() after having added / removed
> menu's or actions to or from it..
>
>
> On Sun, Jul 4, 2010 at 9:19 PM, F.A.Pinkse <fapinkse at gmail.com
> <mailto:fapinkse at gmail.com>> wrote:
>
>     Hi All,
>
>     I want to add a menu at runtime to an already exsiting menubar.
>
>     How do I do that?
>
>
>     Tnanks
>
>     Frans.
>
>
>     _______________________________________________
>     PyQt mailing list PyQt at riverbankcomputing.com
>     <mailto:PyQt at riverbankcomputing.com>
>     http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
>
> --
> Nick Gaens
>




More information about the PyQt mailing list