Git Product home page Git Product logo

Comments (20)

IshanJ25 avatar IshanJ25 commented on May 22, 2024

yes I agree a tooltip widget would be nice
maybe using combination of simple label widget and a triangle

from customtkinter.

TomSchimansky avatar TomSchimansky commented on May 22, 2024

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.

kDJAO

But a scrollbar should be possible.

from customtkinter.

IshanJ25 avatar IshanJ25 commented on May 22, 2024

Well that can easily be solved using a pseudo root with directoverflow true, but I am not sure about the rounded corners

from customtkinter.

vednig avatar vednig commented on May 22, 2024

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.

vednig avatar vednig commented on May 22, 2024

Except for the shadow part. Which I think could be done but is a little difficult

from customtkinter.

Smart-Space avatar Smart-Space commented on May 22, 2024

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.

demberto avatar demberto commented on May 22, 2024

@Smart-Space You provide a reference to GPL licensed code in a project which uses a CC license

from customtkinter.

TomSchimansky avatar TomSchimansky commented on May 22, 2024

CTkScrollbar is now available: https://github.com/TomSchimansky/CustomTkinter/wiki/CTkScrollbar
(with version 4.5.0)

from customtkinter.

felipetesc avatar felipetesc commented on May 22, 2024

I've used for one project of mine ttk Tooltip: https://ttkwidgets.readthedocs.io/en/latest/examples/frames/Tooltip.html

from customtkinter.

IshanJ25 avatar IshanJ25 commented on May 22, 2024

@TomSchimansky does the CTkScrollbar also work with frame? Or just textboxes?

from customtkinter.

TomSchimansky avatar TomSchimansky commented on May 22, 2024

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.

Manobal-Singh-Bagady avatar Manobal-Singh-Bagady commented on May 22, 2024

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

Screenshot:
211187458-22cabd85-586b-4b8a-ae36-8d4cd571d98f

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.

image

from customtkinter.

bountycortez avatar bountycortez commented on May 22, 2024

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.

Manobal-Singh-Bagady avatar Manobal-Singh-Bagady commented on May 22, 2024

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.

Wolf-SO avatar Wolf-SO commented on May 22, 2024

i use Hoovertip() from idlelib.tooltip module, and it looks ok

Here my impression (Windows 10, Python 3.11)

idlelib tooltip

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.

Manobal-Singh-Bagady avatar Manobal-Singh-Bagady commented on May 22, 2024

@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.

bountycortez avatar bountycortez commented on May 22, 2024

from customtkinter.

bountycortez avatar bountycortez commented on May 22, 2024

from customtkinter.

Manobal-Singh-Bagady avatar Manobal-Singh-Bagady commented on May 22, 2024

That's the issue, @bountycortez. That's why I was requesting CTkTooltip because tix is deprecated and doesn't work anymore.

from customtkinter.

 avatar commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.