I've been testing the Python customtkinter active fork custom2kinter with Tcl 9.x. The biggest issue I've encountered is the changes to transparency on MacOS. On 8.6, I was able to create tooltip widgets that looked fine across platforms. On 9.0, rounded tooltips are ugly because the edges are white rather than transparent. I have comparison screenshots here: https://github.com/FedericoSpada/Custom2kinter/issues/3#issuecomment-4712194269 .
...
Have others encountered this issue? Any suggestions for workarounds or fixes?
I've been testing the Python customtkinter active fork custom2kinterIs the problem only with tooltips? How did you implement your tooltips?
with Tcl 9.x. The biggest issue I've encountered is the changes to
transparency on MacOS. On 8.6, I was able to create tooltip widgets
that looked fine across platforms. On 9.0, rounded tooltips are ugly
because the edges are white rather than transparent. I have comparison
screenshots here: https://github.com/FedericoSpada/Custom2kinter/
issues/3#issuecomment-4712194269 .
If it is like buttons, you could get an image that looks like a tooltip
but where the rounded edges are set to be transparent. I think that
should work.
On 6/16/2026 12:39 PM, saito wrote:
I'm only seeing it with tooltips so far but have just started
experimenting with 9.x + customtkinter. Here is the newly released
tooltip code: https://github.com/ajkessel/Custom2kinter/blob/master/ customtkinter/windows/widgets/ctk_tooltip.py
The tooltip is a CTkFloatingFrame, which is a type of CTkFrame, which is
a CTkWidget, which is a tkinter.Frame. Is the fundamental issue that
this is all descending from a tkinter.Frame rather than a tkinter.Button?
I'm only seeing it with tooltips so far but have just startedI am not familiar with CTK/Custom2K and don't have a Mac so...
experimenting with 9.x + customtkinter. Here is the newly released
tooltip code: https://github.com/ajkessel/Custom2kinter/blob/master/
customtkinter/windows/widgets/ctk_tooltip.py
The tooltip is a CTkFloatingFrame, which is a type of CTkFrame, which
is a CTkWidget, which is a tkinter.Frame. Is the fundamental issue
that this is all descending from a tkinter.Frame rather than a
tkinter.Button?
I would still try the image trick; it may work.
You may also want to look into the "wm" command, specifically its "-
alpha" and its transparency related options. If it stems from a frame ultimately, these options may prove useful.
On 6/16/2026 1:16 PM, saito wrote:I've figured out a fix that seems stable, detailed in my comments here https://github.com/FedericoSpada/Custom2kinter/issues/3
I'm only seeing it with tooltips so far but have just startedI am not familiar with CTK/Custom2K and don't have a Mac so...
experimenting with 9.x + customtkinter. Here is the newly released
tooltip code: https://github.com/ajkessel/Custom2kinter/blob/master/
customtkinter/windows/widgets/ctk_tooltip.py
The tooltip is a CTkFloatingFrame, which is a type of CTkFrame, which
is a CTkWidget, which is a tkinter.Frame. Is the fundamental issue
that this is all descending from a tkinter.Frame rather than a
tkinter.Button?
I would still try the image trick; it may work.
Isn't this going to have the same problem? If I create an RGBA image
with genuinely transparent corner pixels with pillow, displaying it in a tkinter widget doesn't make those pixels show through to the desktop.
The transparent pixels in the image would just reveal the widget/window background behind them — still white or black, not the desktop.
You may also want to look into the "wm" command, specifically its "-
alpha" and its transparency related options. If it stems from a frame
ultimately, these options may prove useful.
Yes, that is how it worked with 8.6 but I can't get a good result with
9.x. Setting "-transparency" to "true" with "wm" seems to have no
effect. I can set "-alpha" but then not only is the widget transparent
but the text in the tooltip is not really legible.
I've been testing the Python customtkinter active fork custom2kinter with Tcl 9.x. The biggest issue I've encountered is the changes to transparency on MacOS. On 8.6, I was able to create tooltip widgets that looked fine across platforms. On 9.0, rounded tooltips are ugly because the edges are white rather than transparent. I have comparison screenshots here: https://github.com/FedericoSpada/Custom2kinter/issues/3#issuecomment-4712194269 .
I understand this comes from an intentional design decision for 9.x to implement stricter compliance with NSView/CALayer on MacOS. But I haven't been able to find any workaround to achieve a similar tooltip experience on MacOS as with 8.6. It also appears nearly impossible to use Cocoa native tooltips given Tcl's architectural differences from MacOS native GUIs.
Have others encountered this issue? Any suggestions for workarounds or fixes?
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,123 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 35:27:59 |
| Calls: | 14,371 |
| Files: | 186,380 |
| D/L today: |
1,342 files (413M bytes) |
| Messages: | 2,540,636 |