Re: reusing "code entities" without oop
- From: "Gerald W. Lester" <Gerald.Lester@xxxxxxx>
- Date: Thu, 29 Mar 2007 11:16:59 -0500
Aric Bills wrote:
There are ways to do this in pure Tcl. However, if your primary purpose
is to create re-useable Tk components, then I'd recommend using Snit
(http://wiki.tcl.tk/snit). It is itself pure Tcl code, and is very well
polished for this kind of work.
-- Neil
I second this suggestion. Snit is all of 376K (compare to the size of
Python + Tkinter - Tcl/Tk itself), and was designed with Tk GUI
components in mind. It also feels very "tcl-ish" (rather than C+
+ish), which I consider to be a strength.
Here's an example of a (useless) component coded in Snit. It's an
entry widget with a history feature. Hopefully it gives you a feel
for what it's like to write Tk code with Snit.
And I have heard that once the OO support makes it into the core that Snit will be lighting fast.
--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.
- References:
- reusing "code entities" without oop
- From: Stephen M. Gava
- Re: reusing "code entities" without oop
- From: Neil Madden
- Re: reusing "code entities" without oop
- From: Aric Bills
- reusing "code entities" without oop
- Prev by Date: OPPORTUNITY FOR EXPERT Tcl/Tk DEVELOPER
- Next by Date: Re: scrollbar question
- Previous by thread: Re: reusing "code entities" without oop
- Next by thread: Re: reusing "code entities" without oop
- Index(es):
Relevant Pages
|