Hi
I began to write some python plugins for QGIS. During the initialisation
of the plugin I add a menu with:
 
self.fileMenu =
self.iface.getMainWindow().menuBar().addMenu("&DM01-Verifikation")
self.fileMenu.addAction(self.action1)
self.fileMenu.addAction(self.action2)
 
But how do I unload/remove it from the menubar? I tried:
 
self.fileMenu.close()
 
But that's not working... 
 
Thanks for any help.
Stefan

 

 

Mit freundlichem Gruss 
Stefan Ziegler 
Leiter Aufsicht 

Kanton Solothurn 
Bau- und Justizdepartement 
Amt für Geoinformation 
Rötistrasse 4 
4501 Solothurn 
Telefon 032 627 75 96 
Telefax 032 627 75 98 
[EMAIL PROTECTED] 
http://www.so.ch 

 

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to