Release PyXBMCt: a Python framework for simple creating UI for XBMC addons - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Release PyXBMCt: a Python framework for simple creating UI for XBMC addons (/showthread.php?tid=174859) |
RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - Roman_V_M - 2016-07-19 (2016-07-19, 17:39)ptom Wrote: one other thing i was going to ask as well is there a way to tie functions into a hover over a button? having a look around and can't see anything that would allow this Unfortunately, Kodi does not expose such event to Python API. There is Window.onFocus method but it does not work for Python-based Window containers. RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - ptom - 2016-07-19 is there no way to use the xmbcgui onFocus(self, Control control) method? RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - Roman_V_M - 2016-07-19 (2016-07-19, 18:22)ptom Wrote: is there no way to use the xmbcgui onFocus(self, Control control) method? I guess my post above answers your question. Maybe it works for XML-based windows, but I'm not familiar with those. RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - gedisony - 2016-07-27 Hi Roman, I how do I set animation to an image control? I tried the code below but the animation does not trigger. Code: import resources.pyxbmct as pyxbmct I hit a dead end with this issue with xbmcgui.WindowXML so I thought I'd give xbmcgui.Window a try. I'm trying to display a long image like this taaall infograpgic. I couldn't find a way to dynamically change the animation parameters with WindowXML. RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - Roman_V_M - 2016-07-27 I've never used advanced animation myself, but what I know for sure that all changes to a Control's properties must be done after it has been added to a Window. RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - gedisony - 2016-07-28 Thanks, I still couldn't get it to work but there is somewhat of a reaction when I added the animation after it has been added to the window. I'll get back to it later. RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - el_Paraguayo - 2016-08-10 Roman, I'm currently using a List to provide scrollable content in a Dialog window. My issue is that I can only provide a list of text to populate the List which makes the presentation a bit messy as I essentially have columns of text, as well as rows. Is there a way to have a list where I can add, say, multiple labels in each row so I can preserve my alignment? Thanks, el_P RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - Roman_V_M - 2016-08-10 (2016-08-10, 20:20)el_Paraguayo Wrote: Roman, Currently there is no Python (or rather C++ SWIG-wprapped) Grid or Table Control in Kodi. Maybe something like this can be implemented in a XML-based (skinned) GUI. I really don't know, my knowledge of Kodi skinning is rather rudimentary. RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - el_Paraguayo - 2016-08-10 Thanks for the quick answer. That's also beyond my skillset too! RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - el_Paraguayo - 2016-08-14 Roman, next question! How do I override the texture for a Dialog window? Basically, I just want to have a different ContentPanel.png which I could package with my addon. Is that possible? Thanks, el_P EDIT: Actually, that may the wrong file - I'm just looking to reduce overall transparency in the simplest way possible! RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - Roman_V_M - 2016-08-15 (2016-08-14, 15:06)el_Paraguayo Wrote: Roman, next question! I'm afraid there is no simple way to do that -- I haven't thought about such possibility and nobody has asked to implement it so far. Currently, I'm working (slowly) on Estuary-based design which will be standard for Krypton and above, and I'll think about adding such feature. I don't like semi-transparent ContentPanel.png either, but I borrowed design elements from Confluence "as is". BTW, in Estuary the dialog background is not transparent. RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - el_Paraguayo - 2016-08-15 Ok. That makes sense. Thanks for letting me know. RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - selli69 - 2016-08-22 Hi Roman! First of all: Thanks for the really cool framework that probably will save me lots of time developing my Addon. My Problem: By the moment, I play around with your "Example with interactive controls". I changed from Dialog window to the blank full screen. Now, the buttons wont work anymore Here is the code: Code: class MyAddon(pyxbmct.BlankFullWindow): Whats the matter with this? Backspace closes the window without any problems. I also read your docs, but cant find anything about this behaviour. Thanks forward for your answer! selli RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - Roman_V_M - 2016-08-22 (2016-08-22, 15:29)selli69 Wrote: My Problem: Which "buttons" exactly? The example includes only one button in the bottom right corner ('Close') and it does work as all the other interactive controls. I cannot reproduce any problem with BlankFullWindow - it works as supposed. RE: PyXBMCt: a Python framework for simple creating UI for XBMC addons - selli69 - 2016-08-22 Thanks for your quick reply! As you can see in the code, there are TWO buttons: one hello and one close button. both of them dont work. Look at the code I posted, i promise by my mothers life, there are two buttons.. I used this code from your doc One further problem: As playing around a little more, i added a discrete running thread, which should update the text of a label in the gui. The update works, but it seems to "overwrite" the label in graphics without clearing the previous content, so there is a mashup with all the updated texts. Is it possible to "clear" a control? My actual code: Code: class MyAddon(pyxbmct.BlankFullWindow): i have seen, that following message is in the logfile: Code: 16:09:59 T:140716885931776 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- |