Python Scripts Development - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Python Scripts Development (/showthread.php?tid=2045) |
- darkie - 2004-01-23 playing a file one after one is not possible atm. you would need access to the xbmc playlist from within python for that, which is not possible yet. - XDX - 2004-01-25 thanks for the idea... i made a simple python script to download current weather conditions and display them on your screen. the ui isn't great, but it works. Quote:#display weather forecast on your xbox - san - 2004-01-25 there is something called superkaramba for unix flavored os-es. it allows tiny (scripted) programs make your desktop more beautifull by adding things like clocks, systeminfo and weatherinfo on your desktop. i'm not a python guru but i use this "liquid weather ++" script for superkaramba on my freebsd machine and it works great. it displays the weather in you own location (it's configurable through a gui) and it lools very nice. i don't have the time or the python knowledge to pick this up but perhaps someone else will. check this url for screenshots and the files: http://www.kde-look.org/content/show.php?content=6384 - alx5962 - 2004-01-29 hi! i tried to use the onaction def out of a class (as the only way to interact is using the pad) but it crashed xbmc. so i'm not sure what's the problem and any help would be welcome. thanks alex - alx5962 - 2004-02-02 here is the code for my meteo script for france. i dedicate it to darkie as he was a huge help for me Quote:import sys, urllib, re, xbmcgui, xbmc, os - alx5962 - 2004-02-03 one more question darkie, i know i'm harrassing you :lol: i just noticed only font13 and font14 works (i tried smaller ones but nothing on the screen then). how can i use smaller fonts so? thank you again ! alex - darkie - 2004-02-03 only fonts in cvs\skin\mediadir\fonts are supported that is, font13, font14 and font64. - alx5962 - 2004-02-03 (darkie @ feb. 03 2004,20:08 Wrote:only fonts in cvs\skin\mediadir\fonts are supportedthank u for the reply darkie! - darkie - 2004-02-08 you can't load external dll's (.pyd) yet. i'm busy with that atm. only problem is that the dll has to be compiled for the xbox, and _sqllite.pyd is probably not. - darkie - 2004-02-08 Quote:darkie are you interested to see the scripts written using your python port?sure, if you upload them to www.xboxmediaplayer.it/upload i will add them into cvs. this is the only way, cause there isn't a webpage for python scripts yet. Quote:is there a tutorial to compile our own pyd for the xbox? as i really wish to see the pil library ported to our nice consolefirst i need to create some working examples myself before i can create a tutorial . another problem is that pil has to be ported to the xbox first (if it is needed) before you can create a pyd at all - alx5962 - 2004-02-10 hi darkie! i need your help again i'd like to create a 'pop-up' like window and being able to close it to easily. but i have no idea if we are able to do it using xbmc and also how to do it thank you again for your patience with me darkie - alx5962 - 2004-02-13 i guess you have no time to reply to my previous post darkie... i just noticed settext has to be named setlabel in the new cvs compile. the buttons are a great feature so i really have to include them in thefuture. if you want to see of one my scripts, check the french tv guide here: tv guide france - darkie - 2004-02-14 you can't create custom dialogs (if that is what you mean?) what you can do is create a new window and close it after pressing "ok?". after pressing ok the window will be destroyed and you will automaticly return to the old window. just tried your script, very nice.. to bad it is only useful for france - alx5962 - 2004-02-15 thank you darkie, without your help i wwould never have started to work on scripts and even learnt python in fact. so thank you again for all! your idea about the dialog window is very nice, i was more on a new window idea but the dialog could fit well for my need :d - alx5962 - 2004-02-15 darkie, i just noticed sometimes when a python script crash, xbmc is totally frozen and so i need to restart the xbox. is this a known bug? and what do you think about adding a debug log for python? so it would be easier to know where is the problem when the script crashes the xbox. |