Hi, first time I'm posting here. I'm fairly new to using pylab, and I recently started using tkinter and the canvas widget, and I think I really messed something up!
I'm running a pdsoft version Python 2.6.2 (r262:71600, Sep 24 2009, 11:47:14) on UNIX (AFS system - not by choice)! Some background info, might be useful: A few weeks ago I could happily run my .py script, though knew I may have been doing something wrong (not opening/closing a loop as needed): Every time I would run my script, the 'canvas' with my images would pop up, and then when I'd edit my file and re-run the script, I'd simply close the 'old' canvas with the mouse when the new canvas would appear. I could not figure out how to elegantly exit using tkinter/canvas (tried Google searches but didn't find anything after a while). Here is an excerpt from the script that worked (comments deleted): === from Tkinter import * window=Tk() window.title('Canvas Window') evol=Canvas(window,width=500,height=1000,background='white') evol.pack() evol.create_oval(90,210,170,290,fill="light blue") evol.create_oval(350,230,390,270,fill="cyan") evol.create_text(130,250,text='He',font=('verdana',11)) evol.create_line(170,250,350,250,width=3) evol.create_polygon(350,250,340,240,340,260,fill="black") evol.create_text(255,230,text=' MT ',font=('verdana',11)) evol.create_text(50,240,text='t=102',font=('verdana',11)) evol.create_text(50,260,text='M1=0.96',font=('verdana',11)) evol.create_text(440,260,text='M2=6.62',font=('verdana',11)) evol.create_text(440,240,text='a=258',font=('verdana',11)) retval = evol.postscript(file="blah.eps", height=1000, width=500, colormode="color") === Anyway this all seemed to be working, until last week when I ran my script again, and now I receive the following message: === TclError Traceback (most recent call last) /MYDIR/<ipython console> in <module>() /MYDIR/evolgrid.py in <module>() 26 27 ## create a window: ---> 28 window=Tk() 29 ## change window's name to 'Canvas Window': 30 window.title('Canvas Window') /usr/common/pdsoft/appl/pyapps/lib/python2.6/lib-tk/Tkinter.pyc in __init__(self, screenName, baseName, className, useTk, sync, use) 1641 baseName = baseName + ext 1642 interactive = 0 -> 1643 self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) 1644 if useTk: 1645 self._loadtk() TclError: out of stack space (infinite loop?) === Also, since this problem, now whenever I start up with 'ipython -pylab', and type figure() (just as a test), I get the following message: === TclError Traceback (most recent call last) /MYDIR/<ipython console> in <module>() /usr/common/pdsoft/appl/pyapps/lib/python2.6/site-packages/matplotlib/pyplot.pyc in figure(num, figsize, dpi, facecolor, edgecolor, frameon, FigureClass, **kwargs) 268 frameon=frameon, 269 FigureClass=FigureClass, --> 270 **kwargs) 271 272 # make this figure current on button press event /usr/common/pdsoft/appl/pyapps/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.pyc in new_figure_manager(num, *args, **kwargs) 81 FigureClass = kwargs.pop('FigureClass', Figure) 82 figure = FigureClass(*args, **kwargs) ---> 83 window = Tk.Tk() 84 canvas = FigureCanvasTkAgg(figure, master=window) 85 figManager = FigureManagerTkAgg(canvas, num, window) /usr/common/pdsoft/appl/pyapps/lib/python2.6/lib-tk/Tkinter.pyc in __init__(self, screenName, baseName, className, useTk, sync, use) 1641 baseName = baseName + ext 1642 interactive = 0 -> 1643 self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) 1644 if useTk: 1645 self._loadtk() TclError: out of stack space (infinite loop?) === So, something is really messed up! Can someone help me? :-/ -- View this message in context: http://old.nabble.com/pylab-TclError%3A-out-of-stack-space---tkinter--tp33465359p33465359.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users