Commit 22b885d1 authored by Thomas Dowrick's avatar Thomas Dowrick

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

parent f1649c71
......@@ -3,15 +3,21 @@
"""Hello world demo module"""
import six
# Check if tkinter is available
from tkinter import Tk, Label
except ImportError:
tk_available = False
tk_available = True
def run_demo(console, text):
"""Show message"""
"""Show message"""
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