Comments (20)
yes I agree a tooltip widget would be nice
maybe using combination of simple label widget and a triangle
from customtkinter.
I don't think its possible to create a custom tooltip because it must be separate window without any borders or headers and for round corners you would need a transparent window. Because tooltips can leak over the edge of a window.
But a scrollbar should be possible.
from customtkinter.
Well that can easily be solved using a pseudo root with directoverflow true, but I am not sure about the rounded corners
from customtkinter.
it can be done via Toplevel then make it transparent with wm_attribute -transparentcolor and adding ctk_frame in it. and a label.
and since canvas background is "white" by default transcolor
could be "white"
from customtkinter.
Except for the shadow part. Which I think could be done but is a little difficult
from customtkinter.
TinUI has created scrollbar. May provide a reference.
TinUI - GitHub | TinUI.py in function add_scorllbar
readme
right side is a scrollbar drawn in tkinter.Canvas.
tooltip also, but it is not nice enough.
from customtkinter.
@Smart-Space You provide a reference to GPL licensed code in a project which uses a CC license
from customtkinter.
CTkScrollbar is now available: https://github.com/TomSchimansky/CustomTkinter/wiki/CTkScrollbar
(with version 4.5.0)
from customtkinter.
I've used for one project of mine ttk Tooltip: https://ttkwidgets.readthedocs.io/en/latest/examples/frames/Tooltip.html
from customtkinter.
@TomSchimansky does the CTkScrollbar also work with frame? Or just textboxes?
from customtkinter.
It works like a normal tkinter scrollbar, I don't now if a frame is scrollable in tkinter. You can us it for every widget that accepts a yscrollcommand/xscrollcommand.
from customtkinter.
Used the CTkScrollbar in my recent Project. It is a nice feature. I am still looking forward to CTkTooltip.
My Project: https://github.com/MSB-s-Projects/Astrologer-s-Stars-GUI
I want to use tooltips in my app, but if I use the default ones, they will look terrible. I was so hoping for CTkTooltip to be released soon.
from customtkinter.
Regarding tooltip: In the meantime i use Hoovertip() from idlelib.tooltip module, and it looks ok
import tkinter
import customtkinter
from idlelib.tooltip import Hovertip
customtkinter.set_appearance_mode("System")
customtkinter.set_default_color_theme("blue")
app = customtkinter.CTk()
app.geometry("400x240")
def button_function():
print("button pressed")
button = customtkinter.CTkButton(master=app, text="Button with Tootip", command=button_function)
button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)
buttonquittip=Hovertip(button,"""
i'm the button tooltip!
another line
""")
app.mainloop()
from customtkinter.
Regarding tooltip: In the meantime i use Hoovertip() from idlelib.tooltip module, and it looks ok
import tkinter import customtkinter from idlelib.tooltip import Hovertip customtkinter.set_appearance_mode("System") customtkinter.set_default_color_theme("blue") app = customtkinter.CTk() app.geometry("400x240") def button_function(): print("button pressed") button = customtkinter.CTkButton(master=app, text="Button with Tootip", command=button_function) button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER) buttonquittip=Hovertip(button,""" i'm the button tooltip! another line """) app.mainloop()
This definitely Looks Interesting. Thanks for this info. @bountycortez
from customtkinter.
i use Hoovertip() from idlelib.tooltip module, and it looks ok
Here my impression (Windows 10, Python 3.11)
The style of the tooltip doesn't fit well (and it's not a native Windows style either).
Also, the tooltip window is always placed below the mouse pointer on a fixed horizontal coordinate; this causes problems when the window is displayed at the left, right or bottom edge, as the tooltip may then be (partially) obscured.
Are these issues maybe only observable on Windows? @bountycortez @Manobal-Singh-Bagady
from customtkinter.
@Wolf-SO I have only tried the tooltip from tkinter tix library, which has the same issues as you mentioned. I use windows 11 only, so I don't know about the other operating systems. I think @bountycortez might know this.
from customtkinter.
from customtkinter.
from customtkinter.
That's the issue, @bountycortez. That's why I was requesting CTkTooltip because tix is deprecated and doesn't work anymore.
from customtkinter.
Given what Tom said about the tooltip not being possible, maybe close this issue. (The scrollbar has been implemented).
There is a workaround for the tooltip at Akascape/CTkToolTip.
Maybe ask the author to create a PR to merge it with customtkinter
.
@TomSchimansky - Close as stale (old), not planned (50% not possible), or planned (50% implemented)?
from customtkinter.
Related Issues (20)
- doesnt properly show unicode icons HOT 2
- CTkComboBox & CTkOptionMenu second click to close the dropdown HOT 1
- iconphoto is not working HOT 3
- Vertical scroll bar does not work at all HOT 1
- Adjustable Frames HOT 2
- Line numbers for CTkTextBox HOT 3
- How do i remove the text over the image HOT 2
- OptionMenu cut off HOT 8
- bind("<<ComboboxSelected>>" HOT 1
- dynamic output terminal HOT 1
- Typo error in CtkComboBox Methods
- Custom Progress Bar
- add feature TextBox HOT 5
- add feature textbox typing
- scrollable frame destroy() still hasn't fixed yet
- Request: Separator
- segmented button command error HOT 1
- Vertical Progressbar rendering bug HOT 2
- Scrollable Frame HOT 1
- button anchor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from customtkinter.