473,414 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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

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
1 1998
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: srijit | last post by:
Hello, Any idea - why the following code crashes on my Win 98 machine with Python 2.3? Everytime I run this code, I have to reboot my machine. I also have Win32all-157 installed. from Tkinter...
1
by: Dean | last post by:
Hi All, I was checking out the demos for tk 8.4.4.0 and noticed that alot of them (e.g. the scrollbar) have the XP style. I also noticed that when I use Python 2.3 and a seperately installed...
2
by: Thomas | last post by:
I was used to pass Unicode strings to Tk widgets. IIRC, Tcl/Tk expects UTF-8 encoded strings, but Tkinter took care of that. This worked, as long as I was using Python/Tk on Red Hat 9 Linux (and...
3
by: rick.lawson | last post by:
I, like a lot of developers, have collected a homegrown set of widgets for Tkinter. Any thoughts on a central repository for Tkinter widgets or widget extensions? Stuff that's not in Tkinter or...
2
by: Adonis | last post by:
I am creating some widgets by inheriting from Tkinter.Frame and populating the frame with whatever the widget will be then creating certain attributes/methods to be accessed later. My question is,...
25
by: BJörn Lindqvist | last post by:
See: http://www.wxpython.org/quotes.php. especially: "wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard...
32
by: Kevin Walzer | last post by:
I'm a Tcl/Tk developer who has been working, slowly, at learning Python, in part because Python has better support for certain kinds of applications that I want to develop than Tcl/Tk does....
44
by: bg_ie | last post by:
Hi, I'm in the process of writing some code and noticed a strange problem while doing so. I'm working with PythonWin 210 built for Python 2.5. I noticed the problem for the last py file...
0
by: Guilherme Polo | last post by:
On 10/29/08, Olrik Lenstra <o.lenstra@gmail.comwrote: It will be a combination of commands, not a single one. Initially I considered this as "probably without solution", since tcl acquired a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.