Updated widget browser - new way to declare widgets for it

0 views
Skip to first unread message

Kevin Dangoor

unread,
Feb 9, 2006, 5:58:29 PM2/9/06
to turbo...@googlegroups.com
The widget browser is with us again. There is a new WidgetDescription
class which can be used to customize how a widget is displayed. This
new setup allows for much more complex samples (and the widget browser
itself will be able to show more and better information).

You'll see, for example, that the AutoCompleteField now has a sample.
That's because the WidgetDescriptions act both as widgets and
controllers... you can expose methods on them.

That's all I have time to write at the moment, but check it out in
widgets.base, widgets.forms and widgets.big_widgets. (Note that not
all of the widgets have WidgetDescriptions yet.)

Kevin

--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: k...@blazingthings.com
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Alberto Valverde

unread,
Feb 9, 2006, 6:05:48 PM2/9/06
to turbo...@googlegroups.com
Cool! The AutoComplete widget is not working for me... I'll take a
better look tomorrow. I'ts over for today for me, beditime.

Alberto

Alberto Valverde

unread,
Feb 9, 2006, 6:08:32 PM2/9/06
to turbo...@googlegroups.com
Weird... now it does :/ Didn't touch anything... i need some sleep

Michele Cella

unread,
Feb 9, 2006, 6:55:09 PM2/9/06
to TurboGears
Kevin Dangoor wrote:
> The widget browser is with us again. There is a new WidgetDescription
> class which can be used to customize how a widget is displayed. This
> new setup allows for much more complex samples (and the widget browser
> itself will be able to show more and better information).
>
> You'll see, for example, that the AutoCompleteField now has a sample.
> That's because the WidgetDescriptions act both as widgets and
> controllers... you can expose methods on them.
>
> That's all I have time to write at the moment, but check it out in
> widgets.base, widgets.forms and widgets.big_widgets. (Note that not
> all of the widgets have WidgetDescriptions yet.)
>

Wow, very cool and helpful.
It would be nice to click on a detail link (or whatever) to show the
source code used for the sample (for example for the AutoCompleteField,
how the search method works).

Great work.

Ciao
Michele

Kevin Dangoor

unread,
Feb 10, 2006, 7:00:16 AM2/10/06
to turbo...@googlegroups.com
On 2/9/06, Michele Cella <michel...@gmail.com> wrote:
> Wow, very cool and helpful.

Thanks!

> It would be nice to click on a detail link (or whatever) to show the
> source code used for the sample (for example for the AutoCompleteField,
> how the search method works).

There are a bunch of features ideally needed for the widget browser:

- source of the template (for easy overriding)
- generated documentation describing what all of the widget's template
vars are for
- possibly more examples for some widgets to show off different features
- alphabetized list :)
- better presentation, possibly with a tab-like interface (a new
widget for that?)

Kevin

Reply all
Reply to author
Forward
0 new messages