From 70a358321fe92592f347f30837cbc91860505ba7 Mon Sep 17 00:00:00 2001 From: swayam patil Date: Thu, 26 Oct 2023 19:11:09 +0530 Subject: [PATCH] Update Clean.py --- organise_desktop/Clean.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/organise_desktop/Clean.py b/organise_desktop/Clean.py index f5dcdee..e8e944b 100644 --- a/organise_desktop/Clean.py +++ b/organise_desktop/Clean.py @@ -3,7 +3,7 @@ import os from .cronController import schedule_end, schedule_start from .organiseDesktop import undo, organise_desktop - +from tkinter import ttk if sys.version_info >= (3,): from tkinter import * from tkinter import messagebox as tkMessageBox @@ -38,14 +38,15 @@ def on_schedule_start(self): schedule_start(folders) def make_checkbutton(self, text): - cb = Checkbutton(self, text=text, command=lambda: self.check(text)) - cb.select() - cb.pack({'side': 'top'}) + cb = ttk.Checkbutton(self, text=text, command=lambda: self.check(text)) + cb.state(['!alternate']) + cb.state(['selected']) + cb.pack(side='top', fill='x') return cb def make_button(self, text, command): - btn = Button(self, text=text, command=command) - btn.pack({'side': 'left'}) + btn = ttk.Button(self, text=text, command=command) + btn.pack(side='left') return btn def create(self):