A question

=?windows-1255?B?4Ozp?= <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <BF5B459CD0BA453CA28F176C0C39C71D@COHEN>
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  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.