Welcome to boxee, have a look here:
http://jira.boxee.tv/browse/BOXEE-10097
http://jira.boxee.tv/browse/BOXEE-10098
If I read your problem my advice would be to stay away from python commands to control the gui, but use some of the smart xml controls. You can pass extra paramters to a list using the SetProperty function. These paramters can be related to you gui or whatever you want. From the xml you can read this data
Here an example, say you have using the param 'active' to set a list or whatever
Code:
<visible>StringCompare(Container(10).ListItem.property(custom:active),sidelist)</visible>
This way if the param is sidelist it will enable your control, you can even enhance with with multiple statements like so
Code:
<visible>!StringCompare(Container(10).ListItem.property(custom:active),)+ ControlGroup(1001).HasFocus</visible>
Bookmarks