diff -r fe55a36a335b Lib/idlelib/AutoCompleteWindow.py --- a/Lib/idlelib/AutoCompleteWindow.py Fri Jul 31 08:59:02 2015 +1200 +++ b/Lib/idlelib/AutoCompleteWindow.py Thu Jul 30 20:41:33 2015 -0400 @@ -2,6 +2,7 @@ An auto-completion window for IDLE, used by the AutoComplete extension """ from tkinter import * +from tkinter import ttk from idlelib.MultiCall import MC_SHIFT from idlelib.AutoComplete import COMPLETE_FILES, COMPLETE_ATTRIBUTES @@ -182,7 +183,7 @@ "help", "noActivates") except TclError: pass - self.scrollbar = scrollbar = Scrollbar(acw, orient=VERTICAL) + self.scrollbar = scrollbar = ttk.Scrollbar(acw, orient=VERTICAL) self.listbox = listbox = Listbox(acw, yscrollcommand=scrollbar.set, exportselection=False, bg="white") for item in self.completions: diff -r fe55a36a335b Lib/idlelib/Debugger.py --- a/Lib/idlelib/Debugger.py Fri Jul 31 08:59:02 2015 +1200 +++ b/Lib/idlelib/Debugger.py Thu Jul 30 20:41:33 2015 -0400 @@ -1,6 +1,7 @@ import os import bdb from tkinter import * +from tkinter import ttk from idlelib.WindowList import ListedToplevel from idlelib.ScrolledList import ScrolledList from idlelib import macosxSupport @@ -418,7 +419,7 @@ self.frame.pack(expand=1, fill="both") self.label = Label(frame, text=title, borderwidth=2, relief="groove") self.label.pack(fill="x") - self.vbar = vbar = Scrollbar(frame, name="vbar") + self.vbar = vbar = ttk.Scrollbar(frame, name="vbar") vbar.pack(side="right", fill="y") self.canvas = canvas = Canvas(frame, height=min(300, max(40, height)), diff -r fe55a36a335b Lib/idlelib/ScrolledList.py --- a/Lib/idlelib/ScrolledList.py Fri Jul 31 08:59:02 2015 +1200 +++ b/Lib/idlelib/ScrolledList.py Thu Jul 30 20:41:33 2015 -0400 @@ -1,4 +1,5 @@ from tkinter import * +from tkinter import ttk class ScrolledList: @@ -9,7 +10,7 @@ self.master = master self.frame = frame = Frame(master) self.frame.pack(fill="both", expand=1) - self.vbar = vbar = Scrollbar(frame, name="vbar") + self.vbar = vbar = ttk.Scrollbar(frame, name="vbar") self.vbar.pack(side="right", fill="y") self.listbox = listbox = Listbox(frame, exportselection=0, background="white") diff -r fe55a36a335b Lib/idlelib/TreeWidget.py --- a/Lib/idlelib/TreeWidget.py Fri Jul 31 08:59:02 2015 +1200 +++ b/Lib/idlelib/TreeWidget.py Thu Jul 30 20:41:33 2015 -0400 @@ -16,6 +16,7 @@ import os from tkinter import * +from tkinter import ttk from idlelib import ZoomHeight from idlelib.configHandler import idleConf @@ -417,9 +418,9 @@ self.frame.columnconfigure(0, weight=1) self.canvas = Canvas(self.frame, **opts) self.canvas.grid(row=0, column=0, sticky="nsew") - self.vbar = Scrollbar(self.frame, name="vbar") + self.vbar = ttk.Scrollbar(self.frame, name="vbar") self.vbar.grid(row=0, column=1, sticky="nse") - self.hbar = Scrollbar(self.frame, name="hbar", orient="horizontal") + self.hbar = ttk.Scrollbar(self.frame, name="hbar", orient="horizontal") self.hbar.grid(row=1, column=0, sticky="ews") self.canvas['yscrollcommand'] = self.vbar.set self.vbar['command'] = self.canvas.yview diff -r fe55a36a335b Lib/idlelib/configDialog.py --- a/Lib/idlelib/configDialog.py Fri Jul 31 08:59:02 2015 +1200 +++ b/Lib/idlelib/configDialog.py Thu Jul 30 20:41:33 2015 -0400 @@ -10,6 +10,7 @@ """ from tkinter import * +from tkinter import ttk import tkinter.messagebox as tkMessageBox import tkinter.colorchooser as tkColorChooser import tkinter.font as tkFont @@ -140,7 +141,7 @@ frameFontName, height=5, takefocus=FALSE, exportselection=FALSE) self.listFontName.bind( '', self.OnListFontButtonRelease) - scrollFont = Scrollbar(frameFontName) + scrollFont = ttk.Scrollbar(frameFontName) scrollFont.config(command=self.listFontName.yview) self.listFontName.config(yscrollcommand=scrollFont.set) labelFontSizeTitle = Label(frameFontParam, text='Size :') @@ -311,8 +312,8 @@ #frameCustom frameTarget = Frame(frameCustom) labelTargetTitle = Label(frameTarget, text='Action - Key(s)') - scrollTargetY = Scrollbar(frameTarget) - scrollTargetX = Scrollbar(frameTarget, orient=HORIZONTAL) + scrollTargetY = ttk.Scrollbar(frameTarget) + scrollTargetX = ttk.Scrollbar(frameTarget, orient=HORIZONTAL) self.listBindings = Listbox( frameTarget, takefocus=FALSE, exportselection=FALSE) self.listBindings.bind('', self.KeyBindingSelected) @@ -417,7 +418,7 @@ #frameHelp frameHelpList = Frame(frameHelp) frameHelpListButtons = Frame(frameHelpList) - scrollHelpList = Scrollbar(frameHelpList) + scrollHelpList = ttk.Scrollbar(frameHelpList) self.listHelp = Listbox( frameHelpList, height=5, takefocus=FALSE, exportselection=FALSE) @@ -1180,7 +1181,7 @@ Frame.__init__(self, parent, *args, **kw) # create a canvas object and a vertical scrollbar for scrolling it - vscrollbar = Scrollbar(self, orient=VERTICAL) + vscrollbar = ttk.Scrollbar(self, orient=VERTICAL) vscrollbar.pack(fill=Y, side=RIGHT, expand=FALSE) canvas = Canvas(self, bd=0, highlightthickness=0, yscrollcommand=vscrollbar.set) diff -r fe55a36a335b Lib/idlelib/idle_test/htest.py --- a/Lib/idlelib/idle_test/htest.py Fri Jul 31 08:59:02 2015 +1200 +++ b/Lib/idlelib/idle_test/htest.py Thu Jul 30 20:41:33 2015 -0400 @@ -68,6 +68,7 @@ from importlib import import_module from idlelib.macosxSupport import _initializeTkVariantTests import tkinter as tk +from tkinter import ttk AboutDialog_spec = { 'file': 'aboutDialog', @@ -347,7 +348,7 @@ frameLabel.pack() text = tk.Text(frameLabel, wrap='word') text.configure(bg=root.cget('bg'), relief='flat', height=4, width=70) - scrollbar = tk.Scrollbar(frameLabel, command=text.yview) + scrollbar = ttk.Scrollbar(frameLabel, command=text.yview) text.config(yscrollcommand=scrollbar.set) scrollbar.pack(side='right', fill='y', expand=False) text.pack(side='left', fill='both', expand=True) diff -r fe55a36a335b Lib/idlelib/keybindingDialog.py --- a/Lib/idlelib/keybindingDialog.py Fri Jul 31 08:59:02 2015 +1200 +++ b/Lib/idlelib/keybindingDialog.py Thu Jul 30 20:41:33 2015 -0400 @@ -2,6 +2,7 @@ Dialog for building Tkinter accelerator key bindings """ from tkinter import * +from tkinter import ttk import tkinter.messagebox as tkMessageBox import string import sys @@ -103,7 +104,7 @@ selectmode=SINGLE) self.listKeysFinal.bind('',self.FinalKeySelected) self.listKeysFinal.grid(row=0,column=4,rowspan=4,sticky=NS) - scrollKeysFinal=Scrollbar(self.frameControlsBasic,orient=VERTICAL, + scrollKeysFinal=ttk.Scrollbar(self.frameControlsBasic,orient=VERTICAL, command=self.listKeysFinal.yview) self.listKeysFinal.config(yscrollcommand=scrollKeysFinal.set) scrollKeysFinal.grid(row=0,column=5,rowspan=4,sticky=NS) diff -r fe55a36a335b Lib/idlelib/textView.py --- a/Lib/idlelib/textView.py Fri Jul 31 08:59:02 2015 +1200 +++ b/Lib/idlelib/textView.py Thu Jul 30 20:41:33 2015 -0400 @@ -3,6 +3,7 @@ """ from tkinter import * +from tkinter import ttk import tkinter.messagebox as tkMessageBox class TextViewer(Toplevel): @@ -49,8 +50,8 @@ frameButtons = Frame(self) self.buttonOk = Button(frameButtons, text='Close', command=self.Ok, takefocus=FALSE) - self.scrollbarView = Scrollbar(frameText, orient=VERTICAL, - takefocus=FALSE, highlightthickness=0) + self.scrollbarView = ttk.Scrollbar(frameText, orient=VERTICAL, + takefocus=FALSE) self.textView = Text(frameText, wrap=WORD, highlightthickness=0, fg=self.fg, bg=self.bg) self.scrollbarView.config(command=self.textView.yview)