Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Clean.py #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions organise_desktop/Clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down