2014-09-17, 12:58
Hello everyone
I'm trying to dynamically position a WindowXmlDialog
I tried with
but does not work.
I also tried to use the origin tag
What am I doing wrong?
It's possible to place dynamically a window?
thx everyone
I'm trying to dynamically position a WindowXmlDialog
I tried with
Quote:<window>
<coordinates>
<posx> 640 </ posx>
<posy> $ INFO [Window.Property (myPosY)] </ posy>
...
Code:class MyDialog(xbmcgui.WindowXMLDialog):
def onInit(self):
w = xbmcgui.Window(xbmcgui.getCurrentWindowDialogId())
w.setProperty("myPosY", "10")
but does not work.
I also tried to use the origin tag
Quote:<window>
<coordinates>
<posx> 640 </ posx>
<posy>200</ posy>
<origin x="640" y="10">StringCompare($INFO[Window.Property(originTag1)],test)</origin>
...
Code:class MyDialog(xbmcgui.WindowXMLDialog):
def onInit(self):
w = xbmcgui.Window(xbmcgui.getCurrentWindowDialogId())
w.setProperty("originTag1", "test")
What am I doing wrong?
It's possible to place dynamically a window?
thx everyone