{"id":27096383,"url":"https://github.com/johndevlopment/ctktreeview","last_synced_at":"2025-10-13T23:41:00.815Z","repository":{"id":253560737,"uuid":"842699281","full_name":"JohnDevlopment/CTkTreeview","owner":"JohnDevlopment","description":"A Treeview widget for customtkinter (extension/add-on)","archived":false,"fork":false,"pushed_at":"2024-09-03T00:22:40.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T09:45:12.816Z","etag":null,"topics":["customtkinter","customtkinter-widgets","tkinter-gui","tkinter-widgets"],"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/JohnDevlopment.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":"2024-08-14T22:11:25.000Z","updated_at":"2024-09-30T07:09:04.000Z","dependencies_parsed_at":"2024-08-17T18:24:06.276Z","dependency_job_id":"b4e1f091-e2f5-45ec-a900-71990043e958","html_url":"https://github.com/JohnDevlopment/CTkTreeview","commit_stats":null,"previous_names":["johndevlopment/ctktreeview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JohnDevlopment/CTkTreeview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnDevlopment%2FCTkTreeview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnDevlopment%2FCTkTreeview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnDevlopment%2FCTkTreeview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnDevlopment%2FCTkTreeview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnDevlopment","download_url":"https://codeload.github.com/JohnDevlopment/CTkTreeview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnDevlopment%2FCTkTreeview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017233,"owners_count":26086016,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","customtkinter-widgets","tkinter-gui","tkinter-widgets"],"created_at":"2025-04-06T09:39:49.012Z","updated_at":"2025-10-13T23:41:00.799Z","avatar_url":"https://github.com/JohnDevlopment.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CTkTreeview\nA Treeview widget for customtkinter (extension/add-on).\n\nThis package is built off of the idea from https://github.com/TomSchimansky/CustomTkinter/discussions/1821. Credit goes to @avalon60 for the idea.\n\n## Installation\nSince there are no source or wheel distributions, you can install directly from Github.\n\n```sh\npip install git+https://github.com/JohnDevlopment/CTkTreeview.git\n```\n## Usage\nCalling the package directly brings up a demo of the Treeview.\n\n![CTkTreeview demo when it's first launched](./images/treeview-default-state.jpg)\n\nDouble-clicking an item lets you edit it. Press Enter to apply the change. Press Escape or focus ouf of the entry to cancel the edit.\n\n![CTkTreeview with an entry displayed over one of its items](./images/treeview-edit-state.jpg)\n\n### In Code\nNow to the point of using `CTkTreeview` in code, here is a snippet:\n\n```python\nfrom CTkTreeview import CTkTreeview\nfrom customtkinter import CTk\n\napp = CTk()\ntree = CTkTreeview(app, height=25, columns=[\"First\", \"Last\", \"Age\"], width=500, show=\"headings\")\ntree.grid(row=0, column=0)\n...\napp.mainloop()\n```\n\nThis creates a treeview with three columns named \"First\", \"Last\", and \"Age\". It is configured to show only the headings.\n\nTo configure the headings, use `headings()`.\n\n```python\nwith tree.headings() as th:\n    th.text(\"First\", \"First Name\")\n    th.text(\"Last\", \"Last Name\")\n    th.text(\"Age\", \"Age\")\n```\n\nTo configure the columns, use `columns()`.\n\n```python\nwith tree.columns() as tc:\n    tc.minwidth(\"First\", 150)\n    tc.minwidth(\"Last\", 150)\n    tc.anchor(\"Age\", \"e\")\n```\n\n## Documentation\nDocumentation is planned for a future update once the code is more or less finished.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohndevlopment%2Fctktreeview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohndevlopment%2Fctktreeview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohndevlopment%2Fctktreeview/lists"}