Support for new Tk 8.4 widgets?
Torbjörn Lager
lager at ling.gu.se
Thu Apr 22 08:32:39 CEST 2004
Denys Duchier wrote:
> Torbjörn Lager <lager at ling.gu.se> writes:
>
>>In Tcl/Tk version 8.4 a couple of new widgets were added (spinbox,
>>labelframe, panedwindow, perhaps other things as well?). As far as I
>>can see, neither QTk nor the 'ordinary' Tk package supports them
>>yet. I think it would be nice if they could be officially
>>supported. Any plans for this?
>
> One cool thing about the Tk library is that it is user-extendable.
> For example, here is how to create a new SpinBox class for the new
> spinbox widget in tk8.4, and how to use it:
>
> declare
> SpinBox = {Tk.newWidgetClass noCommand spinbox}
> W={New Tk.toplevel tkInit(title:'Spin This')}
> S={New SpinBox tkInit(parent:W 'from':5 'to':11)}
> {Tk.send pack(S)}
Wow, yes that IS cool. Thanks!
But there's need for documentation though. (Ok, I know, I should have
read the sources :-)
Cheers,
Torbjörn
More information about the mozart-hackers
mailing list