On Thu, 15 Dec 2005 11:19:12 +0100 "Essien Ita Essien" <[EMAIL PROTECTED]> babbled:
you are CRAZY! :):) - keep up the crazy work! :) > [http://datavibe.net/~essiene/downloads/pydje-0.2.0.tar.gz] > > I have a confession to make... I've been *green* with envy about Tilman > using R17 ;). Therefore, in the innermost eveeeeel core of my mind, I > hatched a master plan... or actually, I hatched an egg :P, a python egg... > ladies and gentl.... > > [Mehh!!! ^^^that would be a great monologue for a bad guy in some cheesy > movie somewhere tho] > > PYDJE is well... a python wrapper for creating edcs (its not a wrapper > around the edje library - I'm thinking of renaming it to pyedc or pydc). > Basically... instead of writing the raw edcs yourself, and making silly > mistakes, you can think along the lines of edc object, write them up in > python, and when you call the render() method, an edc file is spat out to > stdout for you. > > An example pydje file looks like: > > #! /usr/bin/python > > import edc > import image > import group > import parts > import descriptions > > bg_normal = descriptions.image("default") > bg_normal.object.normal = "image1.png" > bg_normal.object.border = (10,10,10,10) > bg_normal.rel1.relative = (0.0, 0.0) > bg_normal.rel1.offset = (0,0) > bg_normal.rel2.relative = (1.0, 1.0) > bg_normal.rel2.offset = (-1,-1) > > imagepart1 = parts.image("background") > imagepart1.add_description(bg_normal) > > group1 = group.group("desktop/background") > group1.min = (50,50) > group1.max = (1024,768) > > group1.add_part(imagepart1) > > default_edc = edc.edc('default1.edc') > default_edc.add_image(image.image('image1.png')) > default_edc.add_group(group1) > > default_edc.render() > > If you know edje already, I'm sure you'll see the parallels here. If you > don't I *reckon* its also easy to teach what's going on here. > > Anyways, pythonistas wanna poke? Infact... ANYBODY wanna poke? Grab this > tarball: http://datavibe.net/~essiene/downloads/pydje-0.2.0.tar.gz > > The included pydje_test.py actually creates a working Desktop Edc with an > image of the incredibles ;) > > You'll have to ./pydje_test.py > incredibles.edc && edje_cc incredibles.edc > to get the incredibles.edj which you can use as an e background :) > > Further more, I've been thinking of patching edje_cc to receive from stdin > (so far, it doesn't do this I think), so I can easily do: > > ./pydje_test.py | edje_cc > incredibles.edj > > Anyways, I'd started work on this project a LONG time ago, and dropped it > for time reasons, yesterday, on a whim, I went back to looking at edjebook, > and decided to move this to a working prototype. > > There's still quite a lot to be done (I've not even written out a TODO :) ), > but off the top of my head. Complete support for different description > objects, implement programs, then make it EDC API complete. > > Wow!!! That was a long one... feedback!! Feedback!! Feedback!! > > *hint* I'm looking for a real home for the project *hint* > > Essien Ita Essien > ----------------------------- > http://essiene.blogspot.com > http://datavibe.net/~essiene > http://datavibe.net/~essiene/pysystray > ---------------------------------------------- > ...the future is open. > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel