durusmail: quixote-users: Controlled display of forms & widgets.
Controlled display of forms & widgets.
2003-04-25
2003-04-28
Controlled display of forms & widgets.
Bud P. Bruegger
2003-04-28
On Thu, 24 Apr 2003 21:11:57 -0400
Benjamin Scherrey  wrote:

>       I've got a fairly functional system going now with my
>       medusa/quixote/postgres app and
> its time for me to start making the interface more useful and user-friendly.
> However, I'm now having a bit of difficulty figuring out how to place widgets
> side-by-side, in groups (tables?), or control which widgets are editable vs.
> read-only when in an update mode, for example. The forms and widgets seem
> pretty powerful in their ease of getting stuff on screen but is there a price
> of flexibility to be paid or am I just missing the obvious method of extending
> this? I'd appreciate and advice or example code on how to best approach this
> within the Quixote framework. Is this outside the scope of Quixote? What have
> the rest of you done for your layout development?
>
>       thanx & later,
>
>               Ben Scherrey

Ben,

I've played around with laying out widgets some time
ago--independently of Quixote and the first time I used Python.  You
find some of it at http://www.sistema.it/widgets/.
http://www.sistema.it/widgets/abaAnalysis.html shows a sample html
form and widgets.py contains some widgets as well as a TableLayout
class.  While everything surely needs a good cleanup, maybe it looking
at it can be useful.

While it is not integrated in quixote, I believe you could easily do
it by overwriting render methods of widgets and form.  I'll probably
do it sometime soon on a project...

hope this is helpful

--b




reply