blavejr / OrganiseDesktop

Python script that cleans up a messy desktop
MIT License
92 stars 77 forks source link

[Feature] Use modern-looking GUIs #101

Open ghost opened 1 year ago

ghost commented 1 year ago

Looking at the current GUI in organise_desktop/Clean.py, it's pretty simple and made with Tkinter.

I think the codebase could be converted to use Tkinter's ttk widgets which are a lot cleaner, modern-looking, and well designed. Another option is the customtkinter module, which too has modern widgets. I believe customtkinter, tkinter, and tkinter.ttk can all be used/combined together.

I am not affiliated with ClearCode on Youtube.

Swish78 commented 9 months ago

Hello,

I've taken a look at the current GUI in organise_desktop/Clean.py, and I'd like to suggest an enhancement. We can modernize the GUI by switching to Tkinter's ttk widgets. Here's a straightforward plan to start:

For checkboxes:

def make_checkbutton(self, text):
    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

For buttons:

def make_button(self, text, command):
    btn = ttk.Button(self, text=text, command=command)
    btn.pack(side='left')
    return btn

These changes will give the GUI a more modern and cleaner look. Please consider assigning this task to me, and I'll get started on the improvements.

blavejr commented 9 months ago

hey @Swish78 and @dishb guys you are always welcome to put in a pull request, I do not get much time to work on this project anymore but its still dear to my heart, please feel free to make improvements and put in a pull request and I will attend to it.