Skip to content

Commit c185b9b

Browse files
committed
Docs: add tkinter.ttk to Py2/3 cheatsheet
1 parent 9bc3ac3 commit c185b9b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/compatible_idioms.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ Tkinter
13671367
import tkFont
13681368
import tkMessageBox
13691369
import tkSimpleDialog
1370+
import ttk
13701371
13711372
# Python 2 and 3 (after ``pip install future``):
13721373
import tkinter
@@ -1383,6 +1384,7 @@ Tkinter
13831384
import tkinter.font
13841385
import tkinter.messagebox
13851386
import tkinter.simpledialog
1387+
import tkinter.ttk
13861388
socketserver
13871389
~~~~~~~~~~~~
13881390

docs/notebooks/Writing Python 2-3 compatible code.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2944,6 +2944,7 @@
29442944
"import tkFont\n",
29452945
"import tkMessageBox\n",
29462946
"import tkSimpleDialog\n",
2947+
"import ttk\n",
29472948
"\n",
29482949
"# Python 2 and 3 (after ``pip install future``):\n",
29492950
"import tkinter\n",

0 commit comments

Comments
 (0)