By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,077 Members | 1,790 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,077 IT Pros & Developers. It's quick & easy.

Looking for examples of developing new Tkinter Widgets in Tcl/Tk

P: n/a
Hi,

Can anyone point me to any good examples of how to get started
developing new Tkinter widgets in Tcl/Tk?

I have read a number of the popular books on Python and Tkinter:

- Grayson, J.E., Python and Tkinter Programming, Manning Publications,
2000
- Lutz, M., Programming Python, O'Reilly, 1996.
- etc.

but all seem to sidestep the entire issue of developing new widgets in
Tk and then wrapping them for Tkinter.

I have a large number of unique widgets to implement and any help here
would be greatly appreciated. I prefer to work in Tkinter instead of
alternatives such as WxPython because I have a strong background in
Tcl/Tk.

Thanks!

--Jon

Dec 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
jh*****@neotopica.com wrote:
Hi,

Can anyone point me to any good examples of how to get started
developing new Tkinter widgets in Tcl/Tk?

I have read a number of the popular books on Python and Tkinter:

- Grayson, J.E., Python and Tkinter Programming, Manning Publications,
2000
- Lutz, M., Programming Python, O'Reilly, 1996.
- etc.

but all seem to sidestep the entire issue of developing new widgets in
Tk and then wrapping them for Tkinter.

I have a large number of unique widgets to implement and any help here
would be greatly appreciated. I prefer to work in Tkinter instead of
alternatives such as WxPython because I have a strong background in
Tcl/Tk.

You could do worse than look at the Python Megawidgets code from

http://pmw.sourceforge.net/

although there is probably some code in there that's more for framework
reasons that is strictly needed for a single extension widget.

As usual the effbot is ahead of the game with the Widget Construction
Kit, see

http://effbot.org/zone/wck.htm

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/

Dec 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.