Merge with 3.4

This commit is contained in:
Terry Jan Reedy 2015-05-14 18:11:14 -04:00
commit 8aad7f27a4
8 changed files with 5 additions and 12 deletions

View File

@ -5,7 +5,6 @@ import sys
from tkinter import StringVar, BooleanVar, Checkbutton # for GrepDialog
from tkinter import Tk, Text, Button, SEL, END # for htest
from idlelib import SearchEngine
import itertools
from idlelib.SearchDialogBase import SearchDialogBase
# Importing OutputWindow fails due to import loop
# EditorWindow -> GrepDialop -> OutputWindow -> EditorWindow

View File

@ -1,5 +1,4 @@
import os
import types
import shlex
import sys
import codecs
@ -525,7 +524,7 @@ class IOBinding:
if self.editwin.flist:
self.editwin.update_recent_files_list(filename)
def _io_binding(parent):
def _io_binding(parent): # htest #
root = Tk()
root.title("Test IOBinding")
width, height, x, y = list(map(int, re.split('[x+]', parent.geometry())))
@ -548,7 +547,7 @@ def _io_binding(parent):
text.pack()
text.focus_set()
editwin = MyEditWin(text)
io = IOBinding(editwin)
IOBinding(editwin)
if __name__ == "__main__":
from idlelib.idle_test.htest import run

View File

@ -1,7 +1,6 @@
import re
import sys
from collections import Mapping
from functools import partial
# Reason last stmt is continued (or C_NONE if it's not).
(C_NONE, C_BACKSLASH, C_STRING_FIRST_LINE,

View File

@ -21,7 +21,6 @@ barrier, in particular frame and traceback objects.
"""
import types
from idlelib import rpc
from idlelib import Debugger
debugging = 0

View File

@ -18,13 +18,11 @@ XXX GvR Redesign this interface (yet again) as follows:
"""
import os
import re
import string
import tabnanny
import tokenize
import tkinter.messagebox as tkMessageBox
from idlelib.EditorWindow import EditorWindow
from idlelib import PyShell, IOBinding
from idlelib import PyShell
from idlelib.configHandler import idleConf
from idlelib import macosxSupport

View File

@ -23,7 +23,7 @@ def find_selection(text):
class SearchDialog(SearchDialogBase):
def create_widgets(self):
f = SearchDialogBase.create_widgets(self)
SearchDialogBase.create_widgets(self)
self.make_button("Find Next", self.default_command, 1)
def default_command(self, event=None):

View File

@ -245,7 +245,7 @@ class TreeNode:
else:
self.edit_finish()
try:
label = self.label
self.label
except AttributeError:
# padding carefully selected (on Windows) to match Entry widget:
self.label = Label(self.canvas, text=text, bd=0, padx=2, pady=2)

View File

@ -16,7 +16,6 @@ import tkinter.font as tkFont
from idlelib.configHandler import idleConf
from idlelib.dynOptionMenuWidget import DynOptionMenu
from idlelib.tabbedpages import TabbedPageSet
from idlelib.keybindingDialog import GetKeysDialog
from idlelib.configSectionNameDialog import GetCfgSectionNameDialog
from idlelib.configHelpSourceEdit import GetHelpSourceDialog