I need to make a separate module to the toolbar(python).
|
closed as not a real question by iant♦, Aragon, Get Spatial, RyanDalton, djq Oct 1 '12 at 21:55
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
|
Cathrin, using the Plugin Installer install the CadTools plugin. In the file:
you can use the CadTools class's initGui() method as an example to do this. You will need to instantiate a QMenu then add it to QGIS's menubar. The best position for plugin menus is just before the Help menu (or Window menu on Mac). The 'add to menubar' code in CadTools does not handle the Mac use case, but can be changed to the following to work:
self.menu in the above example is the menu that you would have already created. |
|||||||||||
|