473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Can't restart Tkinter after a quit

4
In my button handler I mistakenly typed quit() instead of root.quit() (where root is the window). This caused Idle to shut down (as one might expect). What I don't understand is that when I restart Idle Tkinter no longer will display windows. I have to reboot to clear whatever is wrong. I'm guessing I've orphaned some process related to Tkinter that Idle isn't connecting to, or some such.

How do I clear this state?
I'm running Idle on Windows Vista.

Thanks.
Jul 24 '10 #1
5 2434
bvdet
2,851 Expert Mod 2GB
Check to see if the process is still running in the background. If so, end the process with Task Manager and it should start again properly.
Jul 24 '10 #2
llaves
4
I couldn't find a process or service with python or Tk in the process name. Could it have some oddball name I wouldn't recognize?
Jul 24 '10 #3
bvdet
2,851 Expert Mod 2GB
pythonw.exe is the process that runs Idle. I was guessing what the problem might be. I can't duplicate the problem on my system. I am using a old version on XP though. Are you receiving any error message when Idle shuts down?
Jul 24 '10 #4
llaves
4
no error msgs, nothing. All the Idle windows close down, as well as the Tkinter window I created. In a sense, this is presumably the correct behavior on encountering a quit, except for the part about not being able to open a new window in a new session.
Jul 24 '10 #5
llaves
4
Apparently the problem has something to do with the subprocess that Idle connects to. If I try to run the program by opening Idle, then editing the file and running it, I get nothing. However, if I right-click the file in the Explorer window and click Edit with Idle, my program can create and manage Tkinter windows. From what I read, this method launches Idle without a subprocess, hence my conjecture that I've done something to wreck Idle's ability to communicate with some essential subprocess.
Jul 25 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: anr | last post by:
Hi everyone, I have made a solution where a user is added to the system and a folder is set up for him. In order to make the folder webDAV accessible for him I have to add some lines to the...
0
by: j_mckitrick | last post by:
I'm considering phasing out tkinter and moving to pygtk, but I can't rewrite the entire app. Can I just rewrite one dialog at a time? jonathon
13
by: TrintCSD | last post by:
How can I reset the collections within a foreach to be read as a change from within the foreach loop then restart the foreach after collections has been changed? foreach(string invoice in...
0
by: ad | last post by:
want to renew all values of Application and Session. How can I restart application in program?
1
by: Mamatha | last post by:
Hi I have one doubt regarding threads in my application. If i aborted one thread ,then i want to restart the same thread again.How can i restart that one. Is it possible to restart a thred...
1
by: slomo | last post by:
I'm working on linux Fedora Core 3 with Python 2.3. I can't "from Tkinter import *" . And see only "No modlue named Tkiner" error. Of course I have tk/tcl 8.4. They works perfectly. Certainly, I...
1
by: DataSprings | last post by:
Hi. I am wondering if its possible to restart IIS or my web server simply from an IIS page? Not sure what code I would need and maybe impersonation? Any thoughts or ideas anyone? -Chad
1
by: many_years_after | last post by:
class mythread(threading.Thread): def __init__(self, threadname): threading.Thread.__init__(self, name = threadname) def run(self): print 'i am running' print 'i quit run()' thread =...
4
by: =?Utf-8?B?bWFzbWl0aA==?= | last post by:
Can you restart an ASP.NET application in the Application_Start event when an error occurs so the next request for the application will fire the Application_Start event again? This would allow...
0
by: Romain FEUILLETTE | last post by:
Hello, I'have just install Python 2.5.1 on Linux and the IDLE doesn't seem to works because it didn't find Tcl/Tk Is there someone to explain how to modify the file "setup.py" to tell the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.