mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Tkinter, step 2: adapt imports.
This commit is contained in:
parent
3302312383
commit
14fc4270da
50 changed files with 136 additions and 133 deletions
|
@ -127,9 +127,9 @@ def manage_socket(address):
|
|||
server.handle_request() # A single request only
|
||||
|
||||
def show_socket_error(err, address):
|
||||
import Tkinter
|
||||
import tkMessageBox
|
||||
root = Tkinter.Tk()
|
||||
import tkinter
|
||||
import tkinter.messagebox as tkMessageBox
|
||||
root = tkinter.Tk()
|
||||
root.withdraw()
|
||||
if err.args[0] == 61: # connection refused
|
||||
msg = "IDLE's subprocess can't connect to %s:%d. This may be due "\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue