This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB356909: Python 2/3 compat: tkinter (authored by serge_sans_paille, committed by ).
Changed prior to commit: https://reviews.llvm.org/D59586?vs=191448&id=192113#toc Repository: rLLDB LLDB CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59586/new/ https://reviews.llvm.org/D59586 Files: examples/python/lldbtk.py Index: examples/python/lldbtk.py =================================================================== --- examples/python/lldbtk.py +++ examples/python/lldbtk.py @@ -1,10 +1,15 @@ #!/usr/bin/python +from __future__ import print_function import lldb import shlex import sys -from Tkinter import * -import ttk +try: + from tkinter import * + import tkinter.ttk as ttk +except ImportError: + from Tkinter import * + import ttk class ValueTreeItemDelegate(object):
Index: examples/python/lldbtk.py =================================================================== --- examples/python/lldbtk.py +++ examples/python/lldbtk.py @@ -1,10 +1,15 @@ #!/usr/bin/python +from __future__ import print_function import lldb import shlex import sys -from Tkinter import * -import ttk +try: + from tkinter import * + import tkinter.ttk as ttk +except ImportError: + from Tkinter import * + import ttk class ValueTreeItemDelegate(object):
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits