Posts: 26,215
Joined: Oct 2003
Reputation:
187
There's a reason for that (no setID): The controlgroup holds a speedup mechanism in the form of an ID -> control* map for the constant "get control with id <foo>" that gets done. If you go and change the ID, then you'll need to update that map, which means that the child control needs public access to that function in the parent etc.
When you create a control from python, one of the things you provide is the ID, right? i.e. do you really need a way to set the ID from python?
Cheers,
Jonathan
Posts: 1,666
Joined: Jun 2011
Reputation:
119
I have finished the QuickStart Guide for those who would want to use PyXBMCt for their addons.
Also I've added a clickable button to close a PyXBMCt window with mouse, like in Confluence skin dialogs.
Links and a screenshot in the OP are updated.
Posts: 13
Joined: Aug 2013
Reputation:
0
Hi,
did you develop any "real" apps yet with the framework?
Sorry if its a dump question but i am just starting to school me on XBMC development and python:
Can i place graphic elements as well with your framework?
cheers,
Arnd
Posts: 1,666
Joined: Jun 2011
Reputation:
119
BTW, where should I report bugs found in some xbmcgui controls? XBMC.org does not have a link to Track anymore. Has it been deprecated?
Posts: 13
Joined: Oct 2013
Reputation:
0
This is one awesome UI for beginners like me, thank you very much!
I have a few questions. Is it python or php you're writing as code? And is there any way to access the GPIO pins through your plugin?
I'm doing a plugin to turn lights on/off with a relay board, and I need to know if I can turn the pins on/off to trigger the relay.
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
GPIO = General Purpose Input Output - probably referring to the GPIO headers on a Raspberry Pi.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 1,109
Joined: Feb 2011
Reputation:
39
The difficulty with accessing the Pi's GPIO pins is that they require root access and XBMCpython scripts don't run with superuser privileges.
If you want to use the pins to do something from a script I'd suggest starting a new thread as it's not particularly relevant to the PyXBMCt script. That way people can focus directly on helping you.
Posts: 26
Joined: Dec 2010
Reputation:
0
hpooni
Junior Member
Posts: 26
I would like to use this framework in a plugin I'm working on for notification popups. The xbmc build-in notification is limited to single line of text and images don't seem to display on full-screen (when video is playing). Do you have controls (windows) pre-build I could utilize for this purpose.
Thanks for your hard work on this framework,