• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 10
Python Inside
#61
hi
first thank you for this wonderful port of python.
so i wanted to know if support for image files other than png is possible as i'm working on a program that retrieves a gif image on a website and so i cannot display it. otherwise how to convert a gif file to png?

thanks

alex
#62
python uses the image library from xbmc which does support gif and other formats
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#63
(darkie @ jan. 11 2004,18:48 Wrote:python uses the image library from xbmc which does support gif and other formats
sorry but i tried to load a gif image, but nothing came on screen. i used the windowexample.py code and replaced it with a gif  image at first to try if gif worked.but it didn't...

update: it works with jpg too so maybe there's a bug here ?
so if it's one i hope it will be fixed soon.
anyway, i'm very happy for now to be able to be able to use python on my xbox !
#64
is it possible to call picture show or picture slideshow with python script?

cheers, Smile
#65
so i decided to bypass the gif file for now and choose a jpg one.

do you plan to make a documentation available about the xmbc and xbmcgui librairies soon?

also, i'd like to know how to change font colours and if special effects on it are possible?

last question : it's not possible for now to add a button? from what i read here it was planned but not yet added but i may be wrong...

keep the good work!
#66
there is a small txt file called python.txt in cvs\docs\ with some library information. and no, buttons are not supported yet.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#67
(darkie @ jan. 13 2004,18:58 Wrote:there is a small txt file called python.txt in cvs\docs\ with some library information. and no, buttons are not supported yet.
thank you very much for the info!

i'm very impatient to see buttons supported!
i've started to work hard on a meteo script but as i'm new to python it takes me a long time!

anyway, thank you again for your great work!
#68
is playing an m3u file supported or am i doing something wrong
with mediaplay()

regards,
fonzi
#69
mediaplay can only be used to play a media file, you can't use it to open a playlist
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#70
but you should be able to get the infos you need out of the m3u file with python i think.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
#71
Quote:but you should be able to get the infos you need out of the m3u file with python i think.
that is what i suggested before Smile
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#72
hi darkie!
how do you type the colour hexstring for text? i tried '#ffffff' and without # too but no colour change, just no more text on screen Huh
also i tried to use the black joypad button and so i i looked for the code in the keymal.xml file but it doesn't work, and i think i need a special label (like the show_more_info for the white button in windowexample). so tell me if i'm wrong or not Image

thanks

alex
#73
what (python) libraries are available (i'm thinking specifically of xml parsers and xpath processors)?

if they are unavailible, what are my options as far as getting them included? ie write myself, import current libraries...etc

thanks for the great work, also i would like to help get some documentation up about xbmc as well as the python support. maybe a wiki? let me know.

cp
#74
try 0xffffffff for white text, and 0xffff0000 for red text.
the first ff is for alpha and the next are for rgb.

as for the black joypad button. you could try the next.
Quote:  def onaction(self, action):
   print('recieved action with number:' + str(action))
when you use the black button python will now print the action number to "scripts output". now, when you have that number you could use that to create your "label".

to cyberplague: a list of all python libraries avaiable is somewhere at http://www.python.org
the only library that is not supported by xbmc is the tk inter lib, which is used for drawing on screen.
if you need some other libraries, use google or something to find them. there are a lot of extra libraries available on the net.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#75
Thumbs Up 
thank you very much darkie!

your help is really appreciated!
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 10

Logout Mark Read Team Forum Stats Members Help
Python Inside0