"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
>> > 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 something (e.g. in Freevo a Menu object) and iterates over this
>> list and creates the widgets. To do that it need a template how to
>> create widgets from it. Look at flickr.py, the list of of type
>> Image(object) with a title and a thumbnail attribute.
>>
>
> I see. This makes sense. I guess I will have to do a paradigm shift in the
> way I think about graphics :). 

Yes :) It was not designed to be a universal GUI module, it was
designed with an application like Freevo in mind.

> One thing I thought was odd is that the grid has its own
> animation. Is it possible to make the animation read from xml? I
> mean we could have a default animation, but what if a theme wants to
> animate the scrolling differently? Say change the duration of
> animation or make the animation bounce (view slightly overshoots the
> destination and snaps back).

All possible. It could be enhanced to read that from the XML file as
well, but my first task was to make it work in the first place :)

It has its own animation because you can also animate the grid itself
moving it around without conflicts with the internal animations. But
the internal animations could get some additional paramater in the
future like bounce or to set the alpha function for clutter.


Dischi

-- 
A bad random number generator: 1, 1, 1, 1, 1, 4.33e+67, 1, 1, 1...

-------------------------------------------------------------------------
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

Reply via email to