From 4afe7e45c36338275b0b072c060dfeea14d3a6e0 Mon Sep 17 00:00:00 2001 From: Arinerron Date: Sun, 22 Apr 2018 21:50:07 -0700 Subject: [PATCH] suppress tkinter --- onionr/default-plugins/gui/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/onionr/default-plugins/gui/main.py b/onionr/default-plugins/gui/main.py index c7dc0453..eb8f5a6c 100644 --- a/onionr/default-plugins/gui/main.py +++ b/onionr/default-plugins/gui/main.py @@ -17,6 +17,10 @@ # Imports some useful libraries import logger, config +try: + from tkinter import * +except: + pass import os, sqlite3, core def sendMessage(): @@ -55,8 +59,6 @@ def update(): def openGUI(): - from tkinter import * - global root, runningCheckDelay, runningCheckDelayCount, scrollbar, listedBlocks, nodeInfo, keyInfo, idText, idEntry, pubKeyEntry, listbox, daemonStatus, sendEntry root = Tk()