Select IconListFileChooser element from code

MakeHuman python API, python plugins, etc

Moderator: joepal

Select IconListFileChooser element from code

Postby tylernm » Sun Mar 23, 2014 8:41 am

Can someone please tell me how to select UI elements from code. In particular I am tyring to select an element from an IconListFileChooser. The class "IconListFileChooser" is under makehuman/lib/ in filechooser.py. Unfortunately I'm not a python expert yet and I can't figure out how to select one of these elements from code instead of a mouse click. My goal is to select a default entry in the IconListFileChooser upon loading of my module/plugin.

Thanks
tylernm
 
Posts: 1
Joined: Fri Mar 07, 2014 11:02 pm
Location: United States

Re: Select IconListFileChooser element from code

Postby duststorm » Sun Mar 23, 2014 6:41 pm

Have a look at ListFileChooser.selectItem()
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium


Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest