kktix_status allow run on linux server without tkinter
parent
133c3c86c2
commit
e1884b9f2a
|
@ -8,10 +8,13 @@ try:
|
|||
from Tkinter import *
|
||||
except ImportError:
|
||||
# for Python3
|
||||
try:
|
||||
from tkinter import *
|
||||
from tkinter import ttk
|
||||
from tkinter import messagebox
|
||||
from tkinter import filedialog
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
import base64
|
||||
import json
|
||||
|
|
|
@ -9,10 +9,13 @@ try:
|
|||
from Tkinter import *
|
||||
except ImportError:
|
||||
# for Python3
|
||||
try:
|
||||
from tkinter import *
|
||||
from tkinter import ttk
|
||||
from tkinter import messagebox
|
||||
from tkinter import filedialog
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
import argparse
|
||||
import base64
|
||||
|
|
|
@ -7,11 +7,14 @@ try:
|
|||
from Tkinter import *
|
||||
except ImportError:
|
||||
# for Python3
|
||||
try:
|
||||
from tkinter import *
|
||||
from tkinter import ttk
|
||||
import tkinter.font as tkfont
|
||||
from tkinter import messagebox
|
||||
from tkinter.filedialog import asksaveasfilename
|
||||
except Exception as e:
|
||||
pass
|
||||
'''
|
||||
try:
|
||||
import customtkinter
|
||||
|
|
Loading…
Reference in New Issue