[Tkinter-discuss] Re: Hooking into custom Tcl/Tk Widgets

Fredrik Lundh fredrik at pythonware.com
Wed Apr 27 18:54:27 CEST 2005


David King wrote:

> I am looking to make a custom Tcl/Tk widget available in Tkinter.  It is 
> written in C/C++ and does graphics rendering of some custom astronomical 
> data formats.  It has previously been driven stand-alone from a C++ program, 
> without benefit of python (i.e., the Tcl/Tk interpreter and its event loop 
> are currently created / run from the top level of a C++ program).

are you migrating from C++ to Python, and have full control over the code
base (including the widget)?  if so, the approach outlined here might be less
work:

    http://effbot.org/zone/tkinter3000-embed.htm

for configuration and custom events, use standard Python extension techniques:

    http://docs.python.org/ext/simpleExample.html
    http://docs.python.org/ext/callingPython.html

</F>



More information about the Tkinter-discuss mailing list