On Jan 24, 2009, at 2:44 , E.R. Uber wrote:
Gisle,
Should you also make the string passed to _Mega "Tkx_LabEntry" as
well?
I don't think so. It's similar to how the Tcl command 'button'
creates a widget that has class 'Button'.
$mw->new_button(....)->g_winfo_class eq "Button"
$mw->new_tkx_LabEntry(...)->g_winfo_class eq "Tkx_LabEntry"
This symmetry might not be very important but I like to keep it.
--Gisle
-eru
On Fri, Jan 23, 2009 at 9:17 AM, Gisle Aas <gi...@activestate.com>
wrote:
On Jan 23, 2009, at 17:03 , Gisle Aas wrote:
The megawidget can set the class known by Tk by passing the -class
option when it creates its root widget. That's probably a good idea
to do. There seems to be a convention that class names start with a
capital letter. That means that your megawidget ought to set the
class name to be something like "Tkx_ROText".
I've now made the Tkx::LabEntry example do this.
http://github.com/gisle/tkx/commit/ac702693dac94393dd531a28594c41630a613584