Tkinter (IDLE) freeze when I try to use ttk
Hello, I just update my Python version to 2.7. I was doing some programs using Tkinter and ttk. By the way I have a Mac running 10.6.4. Well, after I install Python, I install ActivePython2.6.5--I try to install 2.7.0 but at the end of the installation it gave me an error message--and ActiveTcl, this 'cause I discover that if I didn't do that, Python will use Tcl and Tk 8.4, which doesn't allow me to use ttk. No my problem is that I can't use Python's IDLE. Well, I can only open one window at a time. If I try to open a new window to make a program, Python freeze. Some curios, if that if I don't have Python open, and double click on a program, Python opens the IDLE and the program in to separate windows without a problem, but when I try to run the program it freeze. I guess that this is a bug somewhere in the ttk implementation, or in Python. Do you guys have any idea how can I solve this? Or have anybody update Python to 2.7, and use ttk on a Mac? If so, please let me know how you manage to do it. Regards! Guido
-----Ursprüngliche Nachricht----- Von: Guido Carballo-Guerrero <charras@me.com>
No my problem is that I can't use Python's IDLE. Well, I can only open one window at a time. If I try to open a new window to make a program, Python freeze. Some curios, if that if I don't have Python open, and double click on a program, Python opens the IDLE and the program in to separate windows without a problem, but when I try to run the program it freeze.
I guess that this is a bug somewhere in the ttk implementation, or in Python. Do you guys have any idea how can I solve this? Or have anybody update Python to 2.7, and use ttk on a Mac? If so, please let me know how you manage to do it.
As far as I know this is just because IDLE is written in tkinter. So if you try to run another tkinter application from IDLE, the two mainloop() calls interfere with each other. You should be able to run console applications from IDLE, but with tkinter applications you can develop them using IDLE but run them from a console (or whatever is used as a console on a Mac). It's nothing to do with the Python version or with ttk and I doubt it can be called a bug. HTH Sibylle ___________________________________________________________ WEB.DE DSL ab 19,99 Euro/Monat. Bis zu 150,- Euro Startguthaben und 50,- Euro Geldprämie inklusive! https://freundschaftswerbung.web.de
Von: Guido Carballo-Guerrero <charras@me.com>
No my problem is that I can't use Python's IDLE. Well, I can only open one window at a time. If I try to open a new window to make a program, Python freeze. Some curios, if that if I don't have Python open, and double click on a program, Python opens the IDLE and the program in to separate windows without a problem, but when I try to run the program it freeze.
I guess that this is a bug somewhere in the ttk implementation, or in Python. Do you guys have any idea how can I solve this? Or have anybody update Python to 2.7, and use ttk on a Mac? If so, please let me know how you manage to do it.
As far as I know this is just because IDLE is written in tkinter. So if you try to run another tkinter application from IDLE, the two mainloop() calls interfere with each other. You should be able to run console applications from IDLE, but with tkinter applications you can develop them using IDLE but run them from a console (or whatever is used as a console on a Mac). It's nothing to do with the Python version or with ttk and I doubt it can be called a bug. . . . If one is clever and motivated, it's possible to code a Tkinter application in a way that permits it to be run (apparently) within IDLE. I don't think I've ever seen it documented well ... All that Sibylle Koczian writes is true, though, and, in
On Sun, Jul 11, 2010 at 10:07:30AM +0200, Sibylle Koczian wrote: . . . particular, a conventional Tkinter application simply is incom- patible with IDLE.
Hi all,
As far as I know this is just because IDLE is written in tkinter. So if you try to run another tkinter application from IDLE, the two mainloop() calls interfere with each other. You should be able to run console applications from IDLE, but with tkinter applications you can develop them using IDLE but run them from a console (or whatever is used as a console on a Mac). It's nothing to do with the Python version or with ttk and I doubt it can be called a bug.
I don't understand this, I have been running my tkinter based applications from within IDLE for years, on Mac, PC or Linux. Am I misunderstanding something? My biggest problems with IDLE on the Mac have been when python has been compiled against one version of the tcl/tk libraries but python is finding a different version of tcl/tk. Sometimes I have needed to recompile python from sources. Other times I have installed the asked-for version of tcl from ActiveState. Try running idle from a terminal window. That way you can see the error message when idle crashes. May suggest that the wrong tcl is installed. Mick On Sun, Jul 11, 2010 at 1:58 PM, Cameron Laird <Cameron@phaseit.net> wrote:
Von: Guido Carballo-Guerrero <charras@me.com>
No my problem is that I can't use Python's IDLE. Well, I can only open one window at a time. If I try to open a new window to make a program, Python freeze. Some curios, if that if I don't have Python open, and double click on a program, Python opens the IDLE and the program in to separate windows without a problem, but when I try to run the program it freeze.
I guess that this is a bug somewhere in the ttk implementation, or in Python. Do you guys have any idea how can I solve this? Or have anybody update Python to 2.7, and use ttk on a Mac? If so, please let me know how you manage to do it.
As far as I know this is just because IDLE is written in tkinter. So if you try to run another tkinter application from IDLE, the two mainloop() calls interfere with each other. You should be able to run console applications from IDLE, but with tkinter applications you can develop them using IDLE but run them from a console (or whatever is used as a console on a Mac). It's nothing to do with the Python version or with ttk and I doubt it can be called a bug. . . . If one is clever and motivated, it's possible to code a Tkinter application in a way that permits it to be run (apparently) within IDLE. I don't think I've ever seen it documented well ... All that Sibylle Koczian writes is true, though, and, in
On Sun, Jul 11, 2010 at 10:07:30AM +0200, Sibylle Koczian wrote: . . . particular, a conventional Tkinter application simply is incom- patible with IDLE. _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss
Sibylle Koczian wrote:
As far as I know this is just because IDLE is written in tkinter. So if you try to run another tkinter application from IDLE, the two mainloop() calls interfere with each other.
I thought IDLE had an option to run things in a separate process nowadays. -- Greg
On 2010-07-10, at 9:52 AM, Guido Carballo-Guerrero wrote:
Hello, I just update my Python version to 2.7. I was doing some programs using Tkinter and ttk. By the way I have a Mac running 10.6.4. Well, after I install Python, I install ActivePython2.6.5--I try to install 2.7.0 but at the end of the installation it gave me an error message--and ActiveTcl, this 'cause I discover that if I didn't do that, Python will use Tcl and Tk 8.4, which doesn't allow me to use ttk.
Hi there - Were you using ActivePython 2.7? It was not clear from your message. ActivePython 2.7 is built against Tcl/Tk 8.5; on Mac 10.6 it therefore uses Apple's Tcl/Tk (8.5) in /System/Library/Frameworks. ActiveTcl 8.5 (which does not have 64-bit support yet) need not be installed. cf. http://docs.activestate.com/activepython/2.7/faq.html#how-do-i-use-tkinter-o... -srid
participants (6)
-
Cameron Laird -
Greg Ewing -
Guido Carballo-Guerrero -
Michael O'Donnell -
Sibylle Koczian -
Sridhar Ratnakumar