Python + xLabel - dynamic event setting Thread last updated on 2006-02-12 05:41:58

Posted by member 304423 on 2006-02-12 04:34:48

Hi, I'm relatively new to Litestep, but I think I've learnt quite a lot while playing with it this weekend. I've already created my own simple minimalistic theme and now I'm experimenting with Python for Litestep, because I like the language.

I want to create a file browser with radial menu on the desktop. I already managed to code a bang command for showing the contents of a directory by dynamically creating some xLabels, but what I need to do now is assign actions to the mouse events of those xLabels, so that I can click them and explore another directory, open a file, etc... This will probably need to be done via Bangs, because I will have to call it from my Python script.

Any idea how this can be done? Anyone did something similar in the past?

Posted by member 304423 on 2006-02-12 04:49:50 link

OK, next time, I'm gonna put similar threads here. Sorry, admins. :)

Posted by member 212670 on 2006-02-12 04:56:31 link

Python seems to not have much support from themers. I only know of one theme released that uses it. You can check it out here. If you're looking for a more popular "real code" type of scripting language for Litestep, you may want to also consider LSLua. That seems to be better documented.

Posted by member 304423 on 2006-02-12 05:40:48 link

Thanks, man. Seems like I'll have to leave my favorite Python. How sad...

Posted by member 304423 on 2006-02-12 05:41:58 link

Wow! Nice manual, for this LSLua!