{"id":34049386,"url":"https://github.com/anthony-bernaert/ctk-sidebar","last_synced_at":"2026-04-08T12:02:19.248Z","repository":{"id":318703218,"uuid":"1069642482","full_name":"anthony-bernaert/ctk-sidebar","owner":"anthony-bernaert","description":"A sidebar navigation control for CustomTkinter","archived":false,"fork":false,"pushed_at":"2025-10-18T21:20:17.000Z","size":83,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-03T04:20:22.979Z","etag":null,"topics":["customtkinter","gui","modern-ui","python","python-ui","sidebar","sidebar-menu","sidebar-navigation","tkinter","tkinter-gui","ui","user-interface"],"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/anthony-bernaert.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-04T10:37:35.000Z","updated_at":"2025-10-27T16:30:55.000Z","dependencies_parsed_at":"2025-10-08T22:44:53.526Z","dependency_job_id":"e741907a-d535-403c-b2a7-6611fca2f14a","html_url":"https://github.com/anthony-bernaert/ctk-sidebar","commit_stats":null,"previous_names":["anthony-bernaert/ctk-sidebar"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/anthony-bernaert/ctk-sidebar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthony-bernaert%2Fctk-sidebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthony-bernaert%2Fctk-sidebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthony-bernaert%2Fctk-sidebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthony-bernaert%2Fctk-sidebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthony-bernaert","download_url":"https://codeload.github.com/anthony-bernaert/ctk-sidebar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthony-bernaert%2Fctk-sidebar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","gui","modern-ui","python","python-ui","sidebar","sidebar-menu","sidebar-navigation","tkinter","tkinter-gui","ui","user-interface"],"created_at":"2025-12-14T00:36:04.491Z","updated_at":"2026-04-08T12:02:19.207Z","avatar_url":"https://github.com/anthony-bernaert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sidebar Control for CustomTkinter\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/v/release/anthony-bernaert/ctk-sidebar\" /\u003e\n  \u003cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/anthony-bernaert/ctk-sidebar?color=blue\" /\u003e\n  \u003cimg alt=\"GitHub Release\" src=\"https://img.shields.io/github/last-commit/anthony-bernaert/ctk-sidebar\" /\u003e\n\u003c/p\u003e\n\n\nThis is a custom widget that adds a sidebar to your CustomTkinter app and handles navigation.\n\n\u003cimg width=\"950\" alt=\"CTkSidebar on Windows\" src=\"https://github.com/user-attachments/assets/0305cec3-dd06-41c6-a816-ec7a131687e6\" /\u003e\n\u003cimg width=\"950\" alt=\"CTkSidebar on macOS\" src=\"https://github.com/user-attachments/assets/6a30f9a9-9b27-425a-a080-b704d1a39d7b\" /\u003e\n\n## Features\n- Modern look\n- Handles navigation: each menu item gets a separate view\n- Easy to configure\n- Customizable styles\n- Supports submenus (tree structure)\n\n## Installation\nGet the latest version from PyPI:\n```\npip install ctk-sidebar\n```\n\n## Getting started\nImport required modules:\n```python\nimport customtkinter\nfrom ctksidebar import CTkSidebarNavigation\n```\n\nInstantiate a `CTkSidebarNavigation` component on your app's toplevel and get a reference to the sidebar:\n```python\napp = customtkinter.CTk()\napp.geometry(\"640x480\")\n\nnav = CTkSidebarNavigation(master=app) \nnav.pack(fill=\"both\", expand=True)\nside = nav.sidebar\n```\n\nAdd a header:\n```python\nheader = customtkinter.CTkLabel(side, text=\"My App\", font=customtkinter.CTkFont(size=20, weight=\"bold\"), fg_color=\"transparent\", anchor=\"center\", height=70)\nside.add_frame(header)\n```\n\nAdd some menu items:\n```python\nside.add_item(id=\"home\", text=\"Dashboard\")\nside.add_item(id=\"orders\", text=\"Orders\")\nside.add_item(id=\"customers\", text=\"Customers\")\n```\n\nPopulate the view of each menu item by using `nav.view(\u003cyour_id\u003e)` as the master:\n```python\nhome_view = customtkinter.CTkLabel(nav.view(\"home\"), text=\"Home\", font=customtkinter.CTkFont(size=20, weight=\"bold\"), fg_color=\"transparent\")\nhome_view.grid(row=0, column=0, sticky=\"nsew\", padx=20, pady=20)\n\norders_view = customtkinter.CTkLabel(nav.view(\"orders\"), text=\"Orders\", font=customtkinter.CTkFont(size=20, weight=\"bold\"), fg_color=\"transparent\")\norders_view.grid(row=0, column=0, sticky=\"nsew\", padx=20, pady=20)\n\ncustomers_view = customtkinter.CTkLabel(nav.view(\"customers\"), text=\"Customers\", font=customtkinter.CTkFont(size=20, weight=\"bold\"), fg_color=\"transparent\")\ncustomers_view.grid(row=0, column=0, sticky=\"nsew\", padx=20, pady=20)\n```\n\nFinally, set the startup view and launch the application:\n```python\nnav.set(\"home\")\napp.mainloop()\n```\n\n# Documentation\nSee the [documentation](docs/DOCUMENTATION.md) page for a detailed description of this component.\n\nSee the [examples](examples/) folder for the demo applications shown in the screenshots above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthony-bernaert%2Fctk-sidebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthony-bernaert%2Fctk-sidebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthony-bernaert%2Fctk-sidebar/lists"}