I used the same variable names as found in the GtkPacker header files. I
am not sure if it is better to be compatible with GTK or TK. Probably
GTK.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On 19 Jan 1999, Christian Egli wrote:
> "David M. Cook" <[EMAIL PROTECTED]> writes:
>
> > GtkPacker.add() has 10 parameters, so keywords would make it a little easier
> > to use.
> >
> > def add(self, child, side=SIDE_TOP, anchor=ANCHOR_CENTER, options=0,
> > border_width=1, pad_x=0, pad_y=0, i_pad_x=0, i_pad_y=0):
> > _gtk.gtk_packer_add(self._o, child._o, side, anchor, options,
> > border_width, pad_x, pad_y, i_pad_x, i_pad_y)
> >
> >
> > And similarly for some of the other methods. The defaults are from the Tk
> > man pages, so I don't know if they are the right ones for Gtk.
>
> I know this is very much a matter of taste but I'd like to say that I
> prefer those parameters to be called borderwidth, padx, pady, ipadx,
> ipady (without the underscore).
>
> This is how they are actually specified in the Tk man pages.
>
>
> --
> Christian Egli
> Phone: +41 1 454-6728, Fax: +41 1 454-6612, http://www.stest.com
> Wavetek Wandel & Goltermann, Friesenbergstr. 75, CH-8055 Zuerich
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]