Sujet : Re: My hang-up about OOP (snit)
De : luc (at) *nospam* sep.invalid (Luc)
Groupes : comp.lang.tclDate : 28. Jun 2024, 04:06:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240628000629.61e6f107@lud1.home>
References : 1 2 3 4 5 6 7 8
On Fri, 28 Jun 2024 02:24:19 +0000, Robert Heller wrote:
Did you read the man pages for *Tk* itself?
>
snit::widget and snit::widgetadaptor create widget constructors that
behave *EXACTLY* like native Tk widgets.
I think I understand, but it took me a long time to grasp because I
think I was lured into something else.
snit::type dog {
# ....
}
::dog
% dog create spot
::spot
spot execute method
So I thought,
snit::widget textbox {
# ....
text -options blahblahblah
}
textbox create textbox1
textbox1 -otheroptions blahblahblah
But it's nothing like that! I thought I was going to create and refer
to widgets by some fancy name of my own choosing, but I'm not.
I was disappointed.
-- Luc>