Are there any examples around of how to write a compound widget in ltk? In particular, I'd like to try to write something like the Notebook widget that's available in perl/tk. -russ
Russell McManus wrote:
Are there any examples around of how to write a compound widget in ltk? In particular, I'd like to try to write something like the Notebook widget that's available in perl/tk.
Tcl/Tk has several different notebooks, widgets, why just not using BLT's one (which is the best, to my taste)? More commonly, I would advise to implement compound widget in Tcl/Tk (for example via snit, or whatever package) and then use it from ltk (perl/Tk do not allow this powerful approach, BTW, and ltk seemingly do) Best regards, Vadim.
Vadim <vadim@vkonovalov.ru> writes:
Russell McManus wrote:
Are there any examples around of how to write a compound widget in ltk? In particular, I'd like to try to write something like the Notebook widget that's available in perl/tk.
Tcl/Tk has several different notebooks, widgets, why just not using BLT's one (which is the best, to my taste)?
How does one use the BLT widgets? -russ
Russell McManus wrote:
Vadim <vadim@vkonovalov.ru> writes:
Russell McManus wrote:
Are there any examples around of how to write a compound widget in ltk? In particular, I'd like to try to write something like the Notebook widget that's available in perl/tk.
Tcl/Tk has several different notebooks, widgets, why just not using BLT's one (which is the best, to my taste)?
How does one use the BLT widgets?
first look at BLT samples at http://wiki.tcl.tk/199 http://blt.sf.net then you can manipulate widget creation with (format-wish ......) Look at samples within ltk. Just noticed - I saw BWidget.lisp within ltk, BWidget is another Tcl/Tk package, and it also contains notebook widget, btw. Best regards, Vadim.
Several months ago I attempted something similar and created a "fully" functional note taking program with a text-editing pane built up with compound components from the basic TK components. You can grab a copy of the source at http://www.willarson.com/code/DulyNoted.zip The code is not well documented at all (it was a pet project), but the Ltk-TextEditor.lisp file should be exactly what you need. Feel free to do anything you want with the code. Will On Jun 13, 2007, at 1:32 PM, Russell McManus wrote:
Vadim <vadim@vkonovalov.ru> writes:
Russell McManus wrote:
Are there any examples around of how to write a compound widget in ltk? In particular, I'd like to try to write something like the Notebook widget that's available in perl/tk.
Tcl/Tk has several different notebooks, widgets, why just not using BLT's one (which is the best, to my taste)?
How does one use the BLT widgets?
-russ _______________________________________________ ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user
The file ltk-mw.lisp has a couple of widgets written in lisp, so you can see how you can build new widgets from existing ones (the treelist widget would be close to what you want) Peter On 6/13/07, Russell McManus <russell_mcmanus@yahoo.com> wrote:
Are there any examples around of how to write a compound widget in ltk? In particular, I'd like to try to write something like the Notebook widget that's available in perl/tk.
-russ _______________________________________________ ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user
participants (4)
-
Peter Herth
-
Russell McManus
-
Vadim
-
Will Larson