projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bc1447
)
Python 2/3 compat: tkinter
author
Serge Guelton
<sguelton@redhat.com>
Mon, 25 Mar 2019 15:22:41 +0000
(15:22 +0000)
committer
Serge Guelton
<sguelton@redhat.com>
Mon, 25 Mar 2019 15:22:41 +0000
(15:22 +0000)
Differential Revision: https://reviews.llvm.org/D59586
llvm-svn: 356909
lldb/examples/python/lldbtk.py
patch
|
blob
|
history
diff --git
a/lldb/examples/python/lldbtk.py
b/lldb/examples/python/lldbtk.py
index cac969e665e6c2272ee1d8c6c6a10cfda14a1188..3734b14f95b24ac2cfae96b4aac2f364997b7da8 100644
(file)
--- 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):