diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-10-30 06:47:48 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-10-30 06:47:48 (GMT) |
| commit | c6d17c04bc94c690e9636cd6eb9b7a16f0496836 (patch) | |
| tree | 85c4cdeb1ea299018f84ee8ec9b61823a2191418 /Lib/idlelib/IOBinding.py | |
| parent | e448066268973fdc04328ec8d0c32ebd6becc692 (diff) | |
| parent | dc22031a61184009f4a3bd030d7042fb0c259569 (diff) | |
| download | cpython-c6d17c04bc94c690e9636cd6eb9b7a16f0496836.zip cpython-c6d17c04bc94c690e9636cd6eb9b7a16f0496836.tar.gz cpython-c6d17c04bc94c690e9636cd6eb9b7a16f0496836.tar.bz2 | |
Merge with 3.5
Diffstat (limited to 'Lib/idlelib/IOBinding.py')
| -rw-r--r-- | Lib/idlelib/IOBinding.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 1e93987..5ec9d54 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -1,17 +1,16 @@ +import codecs +from codecs import BOM_UTF8 import os +import re import shlex import sys -import codecs import tempfile + import tkinter.filedialog as tkFileDialog import tkinter.messagebox as tkMessageBox -import re -from tkinter import * from tkinter.simpledialog import askstring -from idlelib.configHandler import idleConf -from codecs import BOM_UTF8 # Try setting the locale, so that we can find out # what encoding to use @@ -525,7 +524,10 @@ class IOBinding: self.editwin.update_recent_files_list(filename) def _io_binding(parent): # htest # - root = Tk() + from tkinter import Toplevel, Text + from idlelib.configHandler import idleConf + + root = Toplevel(parent) root.title("Test IOBinding") width, height, x, y = list(map(int, re.split('[x+]', parent.geometry()))) root.geometry("+%d+%d"%(x, y + 150)) |
