Skip to content

Commit

Permalink
Workaround for absence of ttk package.
Browse files Browse the repository at this point in the history
  • Loading branch information
swails committed Apr 9, 2015
1 parent da87c83 commit 7a5d653
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wanda
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env python2

from Tkinter import *
from ttk import Button, Scrollbar
try:
from ttk import Button, Scrollbar
except ImportError:
# If we don't have Themed Tk widgets, just fall back on the ones from
# Tkinter itself... won't be as pretty, but oh well.
pass
from subprocess import Popen, PIPE

class TextWindow(Frame):
Expand Down

0 comments on commit 7a5d653

Please sign in to comment.