Syntext Forums - Serna Enterprise XML Editor, Serna Free XML Editor
(#1 (permalink))
Old
Junior Member
 
Posts: 26
Join Date: Jul 2009
Default ? How to get menu items from a Python plugin? - 11-30-2009, 03:55 PM

Hi,
Is there a quick and easy way to get menu items loaded for a plugin from its spd-file from Python? I'm trying to get QApplication's widgets, and analyze its QMenu, QAction, etc., but it looks ugly...
Thanks,
Alex
Reply With Quote
(#2 (permalink))
Old
Junior Member
 
Posts: 26
Join Date: Jul 2009
Default 11-30-2009, 07:11 PM

Menu items represented by actions could be achieved using the following chain:
activeDocument -> actionSet -> findAction. If there is a better way please correct me.
Thanks, Alex
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.1
vBulletin Skin developed by: vBStyles.com