summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/examples/python/lldbtk.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/examples/python/lldbtk.py b/lldb/examples/python/lldbtk.py
index cac969e665e..3734b14f95b 100644
--- a/lldb/examples/python/lldbtk.py
+++ b/lldb/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):
OpenPOWER on IntegriCloud