op some code
parent
8149cdd59e
commit
80a1091189
7
tool.py
7
tool.py
|
@ -120,16 +120,15 @@ class Tool(Tk):
|
|||
def __init__(self):
|
||||
super().__init__()
|
||||
self.title('MIO-KITCHEN')
|
||||
if os.name == "posix":
|
||||
if os.geteuid() != 0:
|
||||
print(lang.warn13)
|
||||
else:
|
||||
if os.name != "posix":
|
||||
self.iconphoto(True,
|
||||
tk.PhotoImage(
|
||||
file="".join([os.getcwd(), os.sep, "bin", os.sep, "images", os.sep, "icon.png"])))
|
||||
sys.stdout = dev_null()
|
||||
|
||||
def gui(self):
|
||||
if os.name == 'posix' and os.geteuid() != 0:
|
||||
print(lang.warn13)
|
||||
self.subwin2 = ttk.LabelFrame(self, text=lang.text9)
|
||||
self.subwin3 = ttk.LabelFrame(self, text=lang.text10)
|
||||
self.subwin3.pack(fill=BOTH, side=LEFT, expand=True, padx=5)
|
||||
|
|
Loading…
Reference in New Issue