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
font = Font("Vera:24")
from kaa.candy.widgets.text import Text
color = (255, 255, 255, 255)
items = [ Text(None, None, "hello", font, color, None),
Text(None, None, "world", font, color, None) ]
grid = Grid(None, (100,500), (100, 100), "item", items, None,
SelectableGrid.VERTICAL)
self.stage.add(grid)
Also the doc string for Grid says that you can use None for size, but that
is wrong. It requires values because it calculates number of row and cols.
On Sat, Jul 19, 2008 at 12:36 PM, Jason Tackaberry <[EMAIL PROTECTED]> 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 0xffffff
>
> dischi: feature request above. :)
>
> Original canvas/candy did support colors specified as 0xrrggbbaa or
> 0xrrggbb (in which aa would default to 255).
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Freevo-devel mailing list
> Freevo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-devel
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel