Hello,

 

I wrote the python script below usind word editor.

1. How can I run it as a python script? It seems to be opened as a word
document!

2. Where do I find the xbmc and xbmcgui libraries.

 

 

 

 

 

import xbmc, xbmcgui

#After that we create a class including some functions (defined by def) 

class MyClass(xbmcgui.Window):

  print 'hello world'

#So after that we initialize the class object and doModal() allows to always
display the graphical window until we exit it. The del is here to have a
#clean code and delete the class instance. 

mydisplay = MyClass()

mydisplay .doModal()

 

 

Regards, Eli Cohen

בברכה, אלי כהן

 

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to