On 23-Jan-09, at 8:56 AM, Michael Carman wrote:
Gisle Aas wrote:
The megawidget can set the class known by Tk by passing the -class
option when it creates its root widget.

When I tried that in Tkx::ROText (which is based on a text widget) I get

  unknown option "-class" ...

After looking at the Tk docs -class is listed as a widget-specific option for frames.

It would be easy enough to make Tkx::ROText frame-based, but should that be necessary?

Yes, it is necessary due to the limitation on widgets that accept - class. Note that using -class has more effect than just changing the response to g_winfo_class. It modifies the class bindings and those applied by Xdefaults and the option database.

Jeff

Reply via email to