From: Alan W. I. <ir...@be...> - 2002-09-27 17:54:54
|
The only limitation that I am aware of for the normal python build is we are not yet able to use the plframe widget with python/Tkinter. I would like to see this limitation removed. Geoffrey, this note is a reminder that our tkdemos.tcl and tcldemos.tcl examples now work under tclsh and wish using dynamic loading. In the past you have said that was a prerequisite for getting plframe to work with python/Tkinter. I just tried to get the old set of python scripts (pytkdemo, Plframe.py, and the old x??.py examples that are called by pytkdemo) to work. Obviously bit-rot has set in, but by doing some obvious hacks (pl --> plplot, etc.) I got this far using a test version of pytkdemo called test.py: ./test.py Building the Python Tk demo application main window. Traceback (most recent call last): File "./test.py", line 174, in ? demo = DemoApp() File "./test.py", line 18, in __init__ s.create_widgets() File "./test.py", line 27, in create_widgets s.plf = PlXframe(s, width="17c", height="17c" ) File "./Plframe.py", line 127, in __init__ s.plf = Plframe( s, kw ) File "./Plframe.py", line 37, in __init__ Widget.__init__( self, master, 'plframe', cnf, kw ) File "/usr/lib/python2.1/lib-tk/Tkinter.py", line 1756, in __init__ self.tk.call( TclError: invalid command name "plframe" So what is the next step (perhaps some additional special wrapper functions need to be written for plplot_widgetmodule.c?) to get the plframe widget working in an environment where anything from the plplplot libraries can be dynamically loaded into python/Tkinter? Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |