{"id":18717167,"url":"https://github.com/akascape/ctkscrollabledropdown","last_synced_at":"2025-07-11T22:03:04.820Z","repository":{"id":165074321,"uuid":"637375928","full_name":"Akascape/CTkScrollableDropdown","owner":"Akascape","description":"Easily add a new scrollable dropdown menu in customtkinter widgets (extension/add-on)","archived":false,"fork":false,"pushed_at":"2024-07-24T06:17:31.000Z","size":142,"stargazers_count":128,"open_issues_count":17,"forks_count":13,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-12T13:12:27.394Z","etag":null,"topics":["customtkinter","dropdown-menu","dropdown-menus","popup-menu","scrollable-menu","tkinter","tkinter-gui","tkinter-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Akascape.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-07T11:20:22.000Z","updated_at":"2025-04-07T13:55:30.000Z","dependencies_parsed_at":"2024-06-29T10:50:27.913Z","dependency_job_id":"5a4e43ab-f694-4fa0-8be9-8a5fb886c0d9","html_url":"https://github.com/Akascape/CTkScrollableDropdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FCTkScrollableDropdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FCTkScrollableDropdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FCTkScrollableDropdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FCTkScrollableDropdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Akascape","download_url":"https://codeload.github.com/Akascape/CTkScrollableDropdown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571878,"owners_count":21126522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["customtkinter","dropdown-menu","dropdown-menus","popup-menu","scrollable-menu","tkinter","tkinter-gui","tkinter-python"],"created_at":"2024-11-07T13:15:10.796Z","updated_at":"2025-04-12T13:12:33.191Z","avatar_url":"https://github.com/Akascape.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CTkScrollableDropdown\nReplace the old looking tkMenu and add this new scrollable dropdown menu to customtkinter **optionmenu, combobox, entries, buttons** etc...\n\n## Features\n- Rounded corners\n- **Define custom height for the menu**\n- Automatic resize\n- Transparency effects\n- **Autocomplete options**\n- Full customisability\n- Add images to options\n- Automatic bindings added for ctkoptionmenu/ctkcombobox\n\n![Platform](https://img.shields.io/powershellgallery/p/Pester?color=blue)\n\n![screenshots](https://user-images.githubusercontent.com/89206401/236677843-8d8b76fd-6145-47b1-8f4d-b6a64b08e1ea.png)\n\n## Installation\n### [\u003cimg alt=\"GitHub repo size\" src=\"https://img.shields.io/github/repo-size/Akascape/CTkScrollableDropdown?\u0026color=white\u0026label=Download%20Source%20Code\u0026logo=Python\u0026logoColor=yellow\u0026style=for-the-badge\"  width=\"400\"\u003e](https://github.com/Akascape/CTkScrollableDropdown/archive/refs/heads/main.zip)\n\n**Download the source code, paste the `CTkScrollableDropdown` folder in the directory where your program is present.**\n\nNote: this type of dropdown was discontinued from ctk because of some tkinter OS-related bugs. But I have tried to fix them by experimenting with different window attributes. \nCurrent Status:\nWindows: ✅ \nLinux: ✅\nMac OS: ⚠️ (random crashes can happen, help wanted)\n\n## Simple Usage\n```python\nCTkScrollableDropdown(attach=widget_name, values=option_list)\n```\n\n## Full Example\n```python\nfrom CTkScrollableDropdown import *\nimport customtkinter\n\nroot = customtkinter.CTk()\n\ncustomtkinter.CTkLabel(root, text=\"Different Dropdown Styles\").pack(pady=5)\n\n# Some option list\nvalues = [\"python\",\"tkinter\",\"customtkinter\",\"widgets\",\n          \"options\",\"menu\",\"combobox\",\"dropdown\",\"search\"]\n\n# Attach to OptionMenu \noptionmenu = customtkinter.CTkOptionMenu(root, width=240)\noptionmenu.pack(fill=\"x\", padx=10, pady=10)\n\nCTkScrollableDropdown(optionmenu, values=values)\n\n# Attach to Combobox\ncombobox = customtkinter.CTkComboBox(root, width=240)\ncombobox.pack(fill=\"x\", padx=10, pady=10)\n\nCTkScrollableDropdown(combobox, values=values, justify=\"left\", button_color=\"transparent\")\n\n# Attach to Entry\ncustomtkinter.CTkLabel(root, text=\"Live Search Values\").pack()\n\nentry = customtkinter.CTkEntry(root, width=240)\nentry.pack(fill=\"x\", padx=10, pady=10)\n\nCTkScrollableDropdown(entry, values=values, command=lambda e: entry.insert(1, e),\n                      autocomplete=True) # Using autocomplete\n\n# Attach to Button \nbutton = customtkinter.CTkButton(root, text=\"choose options\", width=240)\nbutton.pack(fill=\"x\", padx=10, pady=10)\n\nCTkScrollableDropdown(button, values=values, height=270, resize=False, button_height=30,\n                      scrollbar=False, command=lambda e: button.configure(text=e))\n\nroot.mainloop()\n```\n\n## Arguments\n| Parameter | Description |\n|-----------| ------------|\n| **attach** | parent widget to which the dropdown menu will be attached  |\n| x | **optional**, change the horizontal offset of the widget manually  |\n| y | **optional**, change the vertical offset of the widget manually |\n| width | **optional**, change the default width of the menu |\n| height | **optional**, change the default height of the menu |\n| **values** | add the list of options in the dropdown menu |\n| image_values | **optional**, add list of images in options |\n| **fg_color** | change the fg_color of the scrollable frame |\n| button_color | change the fg_color of the buttons/options |\n| hover_color | change the hover_color of the buttons/options |\n| text_color | change the text_color of the buttons/options |\n| button_height | change the height of the buttons if required\n| **autocomplete** | add live search options for ctkcombobox or ctkentry widget |\n| **alpha** | change the transparency of the whole dropdown widget (range: 0-1) |\n| justify | change the anchor of the option text |\n| frame_corner_radius | adjust roundness of the frame corners |\n| double_click | bind double click for menu popup |\n| resize | resize the menu dynamically, default: True |\n| frame_border_width | change the border_width of the frame if required |\n| frame_border_color | change the border_color of the frame |\n| scrollbar | hide the scrollbar if required, default: True |\n| command | add the command when option is selected |\n| _*Other Parameters_ | _All other parameters for ctkbutton or scrollbar can be passed in dropdownmenu_ |\n\n## Methods\n- **.insert(value=\"new_option\", ...)**\n  \n  Add a new option to the list\n- **.configure(values=new_values, height=500, ...)**\n\n  Update some parameters for the dropdown\n- **.live_update(string=\"option\")**\n\n  filter options dynamically\n- **.destroy_popup()**\n\n  Remove the dropdown completely\n- **.popup(x, y)**\n\n  Show popup menu manually\n\nNote: if you are facing some issues then try using the `CTkScrollableDropdownFrame`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakascape%2Fctkscrollabledropdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakascape%2Fctkscrollabledropdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakascape%2Fctkscrollabledropdown/lists"}