mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Eliminated the need to use ttk.__loadtk__ and the problems related it.
This commit is contained in:
parent
92c3b2190b
commit
8e5e438d21
2 changed files with 40 additions and 34 deletions
|
@ -4,15 +4,9 @@ import unittest
|
|||
import os
|
||||
import _tkinter
|
||||
from test import test_support
|
||||
from Tkinter import Tk, Tcl
|
||||
from Tkinter import Tcl
|
||||
from _tkinter import TclError
|
||||
|
||||
# Restore Tkinter.Tk._loadtk that may have been overridden by ttk.
|
||||
# If this is not done then this test may fail for reasons related
|
||||
# to ttk only (like failing to load the tile package).
|
||||
from ttk import __loadtk__
|
||||
Tk._loadtk = __loadtk__
|
||||
|
||||
|
||||
class TkinterTest(unittest.TestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue