From c1d4040807a11aa2fab6b0b668fa2c76e242f49e Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 3 Sep 2018 22:38:08 -0500 Subject: [PATCH] better catch tkinter import --- onionr/static-data/default-plugins/boards/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onionr/static-data/default-plugins/boards/main.py b/onionr/static-data/default-plugins/boards/main.py index 1b8b71b2..573e6237 100644 --- a/onionr/static-data/default-plugins/boards/main.py +++ b/onionr/static-data/default-plugins/boards/main.py @@ -37,7 +37,8 @@ class OnionrBoards: self.api = apiInst self.myCore = apiInst.get_core() - self.gui = tkinter.Tk() + if TK_ENABLED: + self.gui = tkinter.Tk() return