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