Home Download Buy Blog Forum Support

Populating a menu dynamically

Populating a menu dynamically

Postby virgil_disgr4ce on Wed Mar 07, 2012 7:43 pm

Greetings! I need to populate a menu with a list of serial ports. I can generate the list in python no problem, but how can I get that information to the menu?

Thanks for any help. I've got a very exciting build plugin in the works!
virgil_disgr4ce
 
Posts: 3
Joined: Wed Mar 07, 2012 7:41 pm

Re: Populating a menu dynamically

Postby virgil_disgr4ce on Wed Mar 07, 2012 8:24 pm

OK, I realized that I could put a list of dummy items in the sublime-menu file then use is_visible() / description() to control what shows up. Is there a better way? Thanks!
virgil_disgr4ce
 
Posts: 3
Joined: Wed Mar 07, 2012 7:41 pm


Return to Plugin Development

Who is online

Users browsing this forum: Majestic-12 [Bot] and 6 guests