customtkinterからtkinterに変えてみる
This commit is contained in:
parent
b835fe5a74
commit
ae117944c0
1 changed files with 4 additions and 3 deletions
|
@ -2,6 +2,7 @@ import os
|
||||||
import json
|
import json
|
||||||
import tkinter.messagebox
|
import tkinter.messagebox
|
||||||
import customtkinter
|
import customtkinter
|
||||||
|
import tkinter
|
||||||
import subprocess
|
import subprocess
|
||||||
import requests
|
import requests
|
||||||
import tkinter
|
import tkinter
|
||||||
|
@ -44,7 +45,7 @@ def init(**kwargs):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
class App(customtkinter.CTk):
|
class App(tkinter.Tk):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
|
@ -60,10 +61,10 @@ class App(customtkinter.CTk):
|
||||||
|
|
||||||
self.protocol("WM_DELETE_WINDOW", self.handler_close)
|
self.protocol("WM_DELETE_WINDOW", self.handler_close)
|
||||||
|
|
||||||
self.frame = customtkinter.CTkFrame(self, corner_radius=0, fg_color='transparent')
|
self.frame = tkinter.Frame(self)
|
||||||
self.frame.grid(row=0, column=0, sticky='nsew')
|
self.frame.grid(row=0, column=0, sticky='nsew')
|
||||||
|
|
||||||
self.withdraw()
|
self.iconify()
|
||||||
|
|
||||||
def delete_appdata(self, **kwargs):
|
def delete_appdata(self, **kwargs):
|
||||||
process_name = kwargs["process_name"]
|
process_name = kwargs["process_name"]
|
||||||
|
|
Loading…
Reference in a new issue