Python XBMC Emulator for PC
#1
forgive me i'm just now learning this stuff...

using the emulator i want to use xbmcgui.controlcheckmark but it looks like it does not exist in the emulators xbmcgui.py

can i update the .py files to get the newer functions? how do i extract them from the zlib?

thanks!
I'm not an expert but I play one at work.
Reply
#2
try adding this to xbmcgui.py

Quote:class controlcheckmark(control):
def (self, top, left, width, height, label, focus = '0xffffffff', nofocus = '0xffffffff'):
type = "checkmark"
width = int(width / 9)
height = int(height / 17)
control.(self, type, top, left, width, height)
self.text = label
self.tkobj = none
self.selected = true

def create(self, win):
self.tkobj = button(win.canvas, text = self.text, command = (lambda: win.oncontrol(self)))
self.tkobj.config(font = ('arial', 10, 'normal'), width = self.width, height = self.height)
self.tkobj.pack()

def setlabel(self, txt):
self.text = txt
if self.selected:
text = txt + ' [x]'
else:
text = txt + ' [ ]'
self.tkobj.config(text = text)

def setselected(self, state):
self.selected = state
self.setlabel(self.text)

def getselected(self):
return self.selected

you'll have to re-indent it.
Reply
#3
thanks

are there any updates to the emulator?
I'm not an expert but I play one at work.
Reply
#4
yes, only recently as it happens. i've tweaked it for my own purposes thou, which gives it enough extra funcs & params to run mytv.
pm me you email and i'll send you it ?

bbb
Reply

Logout Mark Read Team Forum Stats Members Help
Python XBMC Emulator for PC0