[Product-Developers] Changing a widget size

johndoe johndoe.23.666 at googlemail.com
Mon Apr 4 09:47:35 UTC 2011

hi gil,

Am Montag, den 04.04.2011, 10:33 +0200 schrieb Gil Forcada:
> Is there any way to specify the size of a widget with form hints or I
> should subclass/create a form on my own?

you can set the size of the widget with updateWidgets, e.g.

class AddForm(dexterity.AddForm):

    def updateWidgets(self):
        super(AddForm, self).updateWidgets()
        self.widgets['the-widget'].size = 20


More information about the Product-Developers mailing list