Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 new methods: A) Navigating through the "UP" and "DOWN" keys. B) Popout/Hide option. #28

Open
Pacha-io opened this issue Feb 16, 2024 · 0 comments

Comments

@Pacha-io
Copy link

Pacha-io commented Feb 16, 2024

Hi, I'm a 22 year old mechatronics jr., I don't know much about object oriented programming but I made a proposal to make an automated search engine in Python for my business.

Exploring, I found TKinter and then CTKinter as the best options to make a python only app.

In the end I realized that in CTk there was no native solution for the 'Dropdown List" as in Tk. I searched till exhaustion for some solution to integrate this kind of dropdown lists and the best option is the one you made, it's nice and extremely useful.

I would like to propose two methods and areas of opportunity (that I don't know how I can do them) to make these lists that you designed even easier and more intuitive to use:

1.- If the list is displayed, then you can navigate between "values" using the "UP" and 'DOWN' keys:
Here I have definitely not made any progress.

2.- Add a method like 'CTkScrollableDropdown.pack_forget()" to hide the list for example if I press the "Escape" key. Or it could also be something like ".popout()":
Here I have only managed to solve it by doing something like:
...
def hide_ScrollableDropdown(event):
if event.keysym == 'Escape':
CTkScrollableDropdown.fade_out(DpDwn_Colors).
CTkScrollableDropdown(DpDwn_Colors)
Frame.focus_set()

root.focus_force()
...
I don't know if this is correct, but at least it works.

Post data: I don't know if these options already exist as I was looking and I couldn't find anything.
found nothing. In case there is a solution, could you please help me?

Post data 2: I admire you, I already follow you on your social networks, you did a super cool job and I would love someday to do things like you.

@Pacha-io Pacha-io changed the title 2 features: 1 - Navigating through the "UP" and "DOWN" keys. 2- 2 new methods: 1 - Navigating through the "UP" and "DOWN" keys. 2 - Popout/Hide option. Feb 16, 2024
@Pacha-io Pacha-io changed the title 2 new methods: 1 - Navigating through the "UP" and "DOWN" keys. 2 - Popout/Hide option. 2 new methods: A) Navigating through the "UP" and "DOWN" keys. B) Popout/Hide option. Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant