Hi Carlos, I am using the latest anaconda release, and I have the same problem. I can launch a tkinter window, and everything works just fine, EXCEPT while the window is open I can not type anything into the ipython console. It would be so helpful to have access to the console for debugging and development.
I can't find comparable preferences to the ones you talk about, nor do I know anaconda well enough to find the command line that they launch ipython from. Any help, or should I switch out of anaconda? -Rob On Thursday, December 16, 2010 at 2:35:54 PM UTC-8, Carlos Córdoba wrote: > > Hi Chris, > > After a couple of hours searching for a solution to your problem, I > found that IPython solves it in a really simple way. > > Please go to "Tools/Preferences", then select the "Console" section and > then go to the "External Modules" tab. In the IPYTHON section change the > options that appear there to these ones: > > -pylab -tk -colors LightBG -xmode Plain > > Preserve the exact order that I'm giving to you, else it won't work. > These options are passed to the Ipython interpreter. In particular -tk > (after -pylab) takes care of the interactive use of Tkinter. If you want > to know more, please read the Ipython help running in a shell: > > ipython --help > > If you have more problems, please report them on this thread. > > Carlos > > El 15/12/10 16:56, Chris Ball escribió: > > Hi, > > > > First, thanks for Spyder and all your hard work on it! I think it's > > really great. > > > > We would love people to be able to use our simulator software with > > Spyder. Unfortunately, it does not seem to be possible to use Spyder > > effectively when running our simulator's GUI, which is written in > > Tkinter. The GUI works fine with IEP (http://code.google.com/p/iep/), > > which appears to include special code to support the event loops of > > various GUI toolkits. > > > > In an ordinary Python 2 interpreter, one can use Tkinter interactively > > (I have never used Python 3). For instance, the following code causes > > a Tkinter window to appear: > > import Tkinter > > t = Tkinter.Tk() > > > > In a Spyder 2 shell (both IPython and regular), the code above causes > > a window to be created, but it is not displayed properly (apparently > > Tkinter events are not being processed). Calling t.mainloop() causes > > the window to display correctly, but then the console can no longer > > accept input (until the Tk mainloop is finished, usually by destroying > > the window). I believe that the ordinary Python 2 interpreter includes > > special support for having Tkinter process events without calling its > > mainloop, and apparently IEP also includes special support (I haven't > > investigated this support in either case). > > > > I searched this mailing list and the issue tracker for issues relating > > to Tkinter, but I didn't see anything relevant. I hope I didn't miss > > something! If you agree this is a missing feature from Spyder, I could > > file an issue and then try to help out with it (although I don't > > currently know anything more than I have described here, > > unfortunately...). > > > > Thanks, > > > > Chris > > (http://topographica.org/) > > > > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/d/optout.
