TkinterEP / ttkwidgets

A collection of widgets for Tkinter's ttk extensions by various authors
GNU General Public License v3.0
136 stars 28 forks source link

Improvement ideas for ttkwidgets #74

Open rdbende opened 3 years ago

rdbende commented 3 years ago

So I've been using the ttkwidgets library for a quite a long time, and I have some improvement, and modification ideas I'd like to share here. Unfortunately(?), it got a bit long.

Improvement ideas:

FontChooser:

image

ColorChooser:

image

Calendar:

image

If you don't delete it:

LinkLabel:

image

ItemsCanvas:

image

ToolTip:

image I agree with @Dogeek (Merge Tooltip from tkinterpp) tooltips usually have no title, and images. Today, tooltips look like this: GitHub: image WinUI: image

So, I would change this widget, because the current one doesn't look too good, and modern.

To display title labels and images, maybe buttons, TeachingTips are used these days, not ToolTips image image

Inconsistencies:

I think it’s a very good idea to collect widgets from various authors, but I think they should be standardized somehow. For example, there are very striking differences between askfont and askcolor, like that Askfont doesn't support master, askcolor do, but calls it parent (note that Tkinter uses master).

New widget ideas:

Here I couldn’t really decide what would fit in ttkwidgets because I don’t know what the concept of ttkwidgets actualky is.

Simple widgets:

Entries:

Not sure:

Complex widgets:

This is a very good and useful package, so keep going!

sbordeyne commented 3 years ago

It's a very long issue, so I'll drop in my thoughts as I go.

That's about it for now

RedFantom commented 3 years ago

Thank you both for taking the time to write up your thoughts. I agree with most of the suggestions, but my attention is currently focused elsewhere. Mostly I am studying, but when working on Tkinter-things I have been working on making Python packages out of tksvg and tkextrafont, in the scheme of a larger plan to make Tkinter look better than it does together with @rdbende .

Anyone is welcome to pick up any of these issues and open a PR for it, I'll be happy to review it. However, I won't have time to implement any of these things for what looks like is going to be months.

Lastly to chip in on the idea of a video player widget: Perhaps it would be possible to do this by building an implementation of a widget in C? Even writing a mock-up for that would be a lot of work though and it might still not provide the performance required to play a 30FPS video. There'd certainly have to be some reliance on an external library to decode the video in the first place, making compiling on multiple platforms quite a bit more complicated.

rdbende commented 3 years ago

Thanks for the review! I started to implement some of these. I also thought that the ContextMenu might actually not be necessary, I just wrote what came to mind, and as I mentioned earlier I'm not sure that MenuBar and ContextMenu and some others are actually necessary.