mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue *24750: Switch all scrollbars in IDLE to ttk versions.
Where needed, add minimal tests to cover changes.
This commit is contained in:
parent
96881cd621
commit
01e35754fb
17 changed files with 211 additions and 39 deletions
31
Lib/idlelib/idle_test/test_config_key.py
Normal file
31
Lib/idlelib/idle_test/test_config_key.py
Normal file
|
@ -0,0 +1,31 @@
|
|||
''' Test idlelib.config_key.
|
||||
|
||||
Coverage: 56%
|
||||
'''
|
||||
from idlelib import config_key
|
||||
from test.support import requires
|
||||
requires('gui')
|
||||
import unittest
|
||||
from tkinter import Tk, Text
|
||||
|
||||
|
||||
class GetKeysTest(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.root = Tk()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
cls.root.destroy()
|
||||
del cls.root
|
||||
|
||||
|
||||
def test_init(self):
|
||||
dia = config_key.GetKeysDialog(
|
||||
self.root, 'test', '<<Test>>', ['<Key-F12>'], _utest=True)
|
||||
dia.Cancel()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main(verbosity=2)
|
Loading…
Add table
Add a link
Reference in a new issue