Re: [Freevo-devel] How to add an image to candy

2008-07-23 Thread Hans Meine
Am Dienstag, 22. Juli 2008 18:22:05 schrieb Dan Sully: > * Dirk Meyer shaped the electrons to say... > > >"Chandan Pitta" wrote: > >> Sorry for hijacking this thread again, but I found out that the setup.py > >> in kaa does not install candy by default. Was that intentional? > > > >Yes, because kaa

Re: [Freevo-devel] How to add an image to candy

2008-07-22 Thread Dan Sully
* Jason Tackaberry shaped the electrons to say... >Dan Sully wrote on 22/07/08 12:22 PM: >> Why not just svn delete it? It's very confusing to have stuff that's not used >> anymore in the svn repo. The whole point of source control is that one can go >> back to the revision where something existed

Re: [Freevo-devel] How to add an image to candy

2008-07-22 Thread Jason Tackaberry
Dan Sully wrote on 22/07/08 12:22 PM: > Why not just svn delete it? It's very confusing to have stuff that's not used > anymore in the svn repo. The whole point of source control is that one can go > back to the revision where something existed if you need it again. I can't believe anyone would be

Re: [Freevo-devel] How to add an image to candy

2008-07-22 Thread Dan Sully
* Dirk Meyer shaped the electrons to say... >"Chandan Pitta" wrote: >> Sorry for hijacking this thread again, but I found out that the setup.py in >> kaa does not install candy by default. Was that intentional? > >Yes, because kaa.candy is more or less just added from WIP. Sometime >the next weeks

Re: [Freevo-devel] How to add an image to candy

2008-07-22 Thread Dirk Meyer
"Chandan Pitta" wrote: > Sorry for hijacking this thread again, but I found out that the setup.py in > kaa does not install candy by default. Was that intentional? Yes, because kaa.candy is more or less just added from WIP. Sometime the next weeks I will move kaa.canvas to DEPRECATED (maybe also k

Re: [Freevo-devel] How to add an image to candy

2008-07-22 Thread Chandan Pitta
Sorry for hijacking this thread again, but I found out that the setup.py in kaa does not install candy by default. Was that intentional? On Sun, Jul 20, 2008 at 8:10 AM, Dirk Meyer <[EMAIL PROTECTED]> wrote: > "Chandan Pitta" wrote: > > On Sun, Jul 20, 2008 at 2:02 AM, Dirk Meyer <[EMAIL PROTECT

Re: [Freevo-devel] How to add an image to candy

2008-07-20 Thread Dirk Meyer
"Chandan Pitta" wrote: > On Sun, Jul 20, 2008 at 2:02 AM, Dirk Meyer <[EMAIL PROTECTED]> wrote: > >> "Chandan Pitta" wrote: >> > More questions (sorry I decided to use my weekend to understand candy). I >> am >> > trying to create a grid of Text widgets, but Grid requries a template. >> What >> > i

Re: [Freevo-devel] How to add an image to candy

2008-07-20 Thread Chandan Pitta
On Sun, Jul 20, 2008 at 2:02 AM, Dirk Meyer <[EMAIL PROTECTED]> wrote: > "Chandan Pitta" wrote: > > More questions (sorry I decided to use my weekend to understand candy). I > am > > trying to create a grid of Text widgets, but Grid requries a template. > What > > is that? Can't I simply pass None

Re: [Freevo-devel] How to add an image to candy

2008-07-20 Thread Dirk Meyer
Jason Tackaberry wrote: > On Sat, 2008-07-19 at 12:32 -0700, Chandan Pitta wrote: >> Never mind I got it. Use (255, 255, 255, 255) instead of 0xff > > dischi: feature request above. :) Done. I need a kaa.candy.Color object and in case it is none, I transform it into one. kaa.candy.Color accept

Re: [Freevo-devel] How to add an image to candy

2008-07-20 Thread Dirk Meyer
"Chandan Pitta" wrote: > More questions (sorry I decided to use my weekend to understand candy). I am > trying to create a grid of Text widgets, but Grid requries a template. What > is that? Can't I simply pass None? A grid _does_not_ take a list of widgets to be shown, it gets a list of somethin

Re: [Freevo-devel] How to add an image to candy

2008-07-19 Thread Chandan Pitta
More questions (sorry I decided to use my weekend to understand candy). I am trying to create a grid of Text widgets, but Grid requries a template. What is that? Can't I simply pass None? I tried this and it did not work. By the way how do you create templates? from kaa.candy import Font

Re: [Freevo-devel] How to add an image to candy

2008-07-19 Thread Jason Tackaberry
On Sat, 2008-07-19 at 12:32 -0700, Chandan Pitta wrote: > Never mind I got it. Use (255, 255, 255, 255) instead of 0xff dischi: feature request above. :) Original canvas/candy did support colors specified as 0xrrggbbaa or 0xrrggbb (in which aa would default to 255). ---

Re: [Freevo-devel] How to add an image to candy

2008-07-19 Thread Chandan Pitta
Never mind I got it. Use (255, 255, 255, 255) instead of 0xff On Sat, Jul 19, 2008 at 12:27 PM, Chandan Pitta <[EMAIL PROTECTED]> wrote: > Another quick question. I am trying to create a Text widget in candy like > so: > Text(None, None, "hello world", font, 0xff, None) > > and I get thi

Re: [Freevo-devel] How to add an image to candy

2008-07-19 Thread Chandan Pitta
Another quick question. I am trying to create a Text widget in candy like so: Text(None, None, "hello world", font, 0xff, None) and I get this exception: File "/home/chandanp/workspace/usr/local/lib/python2.5/site-packages/kaa/candy/widgets/text.py", line 84, in set_color super(Text, sel

Re: [Freevo-devel] How to add an image to candy

2008-07-19 Thread Chandan Pitta
On Sat, Jul 19, 2008 at 11:12 AM, Dirk Meyer <[EMAIL PROTECTED]> wrote: > "Chandan Pitta" wrote: > > This is so silly, but I am not able to understand how to add an image to > a > > candy stage. Here is the code I used: > > > > kaa.candy.init() > > window_size = (1360, 768) > > stage = kaa.candy.S

Re: [Freevo-devel] How to add an image to candy

2008-07-19 Thread Dirk Meyer
"Chandan Pitta" wrote: > This is so silly, but I am not able to understand how to add an image to a > candy stage. Here is the code I used: > > kaa.candy.init() > window_size = (1360, 768) > stage = kaa.candy.Stage(window_size) > img = kaa.candy.widgets.Image(None, None, skin.get_background_image()

[Freevo-devel] How to add an image to candy

2008-07-19 Thread Chandan Pitta
This is so silly, but I am not able to understand how to add an image to a candy stage. Here is the code I used: kaa.candy.init() window_size = (1360, 768) stage = kaa.candy.Stage(window_size) img = kaa.candy.widgets.Image(None, None, skin.get_background_image()) stage.add(img) And here is what I