Home Download Buy Blog Forum Support

show_popup_menu examples?

show_popup_menu examples?

Postby cwrenniks on Sun Oct 20, 2013 6:20 am

Anyone have some code that shows proper use of the View.show_popup_menu() method?

Thanks!
cwrenniks
 
Posts: 2
Joined: Sun Oct 20, 2013 6:17 am

Re: show_popup_menu examples?

Postby iamntz on Sun Oct 20, 2013 6:49 am

Very basic example, tested in console:
Code: Select all
view.show_popup_menu( ['foo', 'bar'], None )

(None should be a callback though)

If this will allow disabled items, would be a great replacement for real tooltips ;)
iamntz
 
Posts: 918
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: show_popup_menu examples?

Postby cwrenniks on Sun Oct 20, 2013 6:51 am

Sweet, thanks for that!
cwrenniks
 
Posts: 2
Joined: Sun Oct 20, 2013 6:17 am


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests