Commit 679ea62f authored by Thomas Dowrick's avatar Thomas Dowrick

Merge branch...

Merge branch '37-remove-tkinter-from-default-generated-project-or-detect-if-not-installed' into 'master'

Resolve "Remove tkinter from default generated project (or detect if not installed)"

Closes #37

See merge request !15
parents f1649c71 22b885d1
......@@ -3,15 +3,21 @@
"""Hello world demo module"""
import six
# Check if tkinter is available
try:
from tkinter import Tk, Label
except ImportError:
tk_available = False
else:
tk_available = True
def run_demo(console, text):
"""Show message"""
"""Show message"""
six.print_(text)
if not console:
from tkinter import Tk, Label
if not console and tk_available:
root = Tk()
label = Label(root, text=text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment