From ae117944c09b99dd28c9a550a578241b85ffda67 Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sun, 29 Sep 2024 15:29:42 +0900 Subject: [PATCH] =?UTF-8?q?customtkinter=E3=81=8B=E3=82=89tkinter=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E3=81=88=E3=81=A6=E3=81=BF=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker_client_shutdown.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dislocker_client_shutdown.py b/dislocker_client_shutdown.py index 4082e15..a82839f 100644 --- a/dislocker_client_shutdown.py +++ b/dislocker_client_shutdown.py @@ -2,6 +2,7 @@ import os import json import tkinter.messagebox import customtkinter +import tkinter import subprocess import requests import tkinter @@ -44,7 +45,7 @@ def init(**kwargs): return 0 -class App(customtkinter.CTk): +class App(tkinter.Tk): def __init__(self): super().__init__() @@ -60,10 +61,10 @@ class App(customtkinter.CTk): 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.withdraw() + self.iconify() def delete_appdata(self, **kwargs): process_name = kwargs["process_name"]