Posts: 7
Joined: Jun 2016
Reputation:
0
2016-10-02, 18:34
(This post was last modified: 2016-10-02, 19:48 by unreal.)
You mean the tutorials from zag?
Posts: 3
Joined: Jun 2015
Reputation:
0
Hi There
I am trying to adjust the font size of controls such as list items , buttons , labels ect and can not seem to figure it out.
Also there a way to remove controls from the gui and then replace with another control so in other words remove a set of controls to make room for another set of controls
Any help would be much appreciated and great work thank you
Posts: 3
Joined: Jun 2015
Reputation:
0
Hi Roman
Thank you for your quick response it is much appreciated
so i have tried what you set by using the setVisible() on the control but i get the following error in the kodi log: AttributeError: 'List' object has no attribute 'setVisbile'
This is the line of code i used - self.liveTVList.setVisbile(False)
I am also struggling to get the s[/code]et text from and edit input i have tried the following but with no luck :
[code]
def setCredentials(self):
username = self.usernameINP.getText()
password = self.passwordINP.getText()
print '********\nUSERNAME: ' + username + '\nPassword: ' + password + '*********************'
Any Help would be appreciated
Posts: 1,662
Joined: Jun 2011
Reputation:
119
2 chris.jones1989
Sorry, but your description is very vague. setVisible method (sorry for a typo in my post above, but you have figured it yourself) does exist and it does work. Please provide your full code and detailed descriptions of errors your are getting, not just "no luck". For large code samples it's better to use some external pastebin site with proper syntax highlighting and all.
Posts: 11
Joined: Apr 2014
Reputation:
0
Button executes script on plugin load not when the button is pushed/clicked why?
button1 = pyxbmct.Button('MYLIGHT')
window.placeControl(button1, 0)
window.connect(button1, subprocess.Popen(["c:\curl.exe", "http://MYTESTURL.COM:80/lights.php?onoff1"]))
Maybe another better way to do it?
Posts: 3
Joined: Jun 2015
Reputation:
0
2017-01-04, 01:57
(This post was last modified: 2017-01-04, 01:58 by chris.jones1989.)
Hi
Just wondering if you could tell me if it is possible to add an image to a button using this framework. If so could you point me in the right direction.
Example:
I would like to use an image with a maintenance logo on it and use this as a button so i can have my own custom buttons.
Any help is much appreciated
Posts: 180
Joined: Aug 2016
(2017-01-04, 13:58)Roman_V_M Wrote: (2017-01-04, 01:57)chris.jones1989 Wrote: Hi
Just wondering if you could tell me if it is possible to add an image to a button using this framework. If so could you point me in the right direction.
Example:
I would like to use an image with a maintenance logo on it and use this as a button so i can have my own custom buttons.
Any help is much appreciated
pyxbmct.Button that is a thin wrapper around xbmcgui.ControlButton uses 2 image files that define its appearance (a text label is optional):
noFocusTexture: displayed when a Button is not focused
focusTexture: displayed when a Button is focused, that is when you navigate to it with a keyboard/remote or hover a mouse pointer over it.
PyXBMCt provides its own default textures but you can override them using these keyword arguments to the class constructor.
Hi Roman_V, I noticed a typo in your documentation at line 473 if you view the source code.
After you create the control, you need to add it to the window with <code class="docutils literal"><span class="pre">
palceControl()</span></code>.</p> Just giving you a heads up in case someone were to try to use it and get an exception,
Posts: 1,662
Joined: Jun 2011
Reputation:
119
@Protocol-X, thanks for noticing that!