Open ghost opened 1 year 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.
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.
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 thecustomtkinter
module, which too has modern widgets. I believecustomtkinter
,tkinter
, andtkinter.ttk
can all be used/combined together.customtkinter
is open source.ttk
andcustomtkinter
can be found here.I am not affiliated with ClearCode on Youtube.