{"id":18717170,"url":"https://github.com/akascape/tkcurve","last_synced_at":"2025-04-12T13:32:00.898Z","repository":{"id":238122077,"uuid":"795589757","full_name":"Akascape/TkCurve","owner":"Akascape","description":"A curve line editor widget for tkinter","archived":false,"fork":false,"pushed_at":"2024-05-04T12:27:05.000Z","size":17,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-21T03:35:38.140Z","etag":null,"topics":["curve-generator","tkinter","tkinter-curve","tkinter-gui","tkinter-library","tkinter-python","tkinter-widget","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/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":"2024-05-03T15:52:46.000Z","updated_at":"2024-05-09T14:13:26.000Z","dependencies_parsed_at":"2024-05-04T13:44:52.389Z","dependency_job_id":null,"html_url":"https://github.com/Akascape/TkCurve","commit_stats":null,"previous_names":["akascape/tkcurve"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FTkCurve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FTkCurve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FTkCurve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FTkCurve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Akascape","download_url":"https://codeload.github.com/Akascape/TkCurve/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223518405,"owners_count":17158690,"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":["curve-generator","tkinter","tkinter-curve","tkinter-gui","tkinter-library","tkinter-python","tkinter-widget","tkinter-widgets"],"created_at":"2024-11-07T13:15:11.108Z","updated_at":"2024-11-07T13:15:11.710Z","avatar_url":"https://github.com/Akascape.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TkCurve\nA curve editor widget for tkinter, can be used in complex programs for better controls.\n\n![image](https://github.com/Akascape/TkCurve/assets/89206401/b4cd7314-b899-4244-b4ee-1ff25355ba7c)\n\n## Installation\n### [\u003cimg alt=\"GitHub repo size\" src=\"https://img.shields.io/github/repo-size/Akascape/TkCurve?\u0026color=white\u0026label=Download%20Source%20Code\u0026logo=Python\u0026logoColor=yellow\u0026style=for-the-badge\"  width=\"400\"\u003e](https://github.com/Akascape/TkCurve/archive/refs/heads/main.zip)\n\nDownload the source code, paste the `tkcurve` folder in the directory where your program is present.\n\n## Usage\n```python\nimport tkinter as tk\nfrom tkcurve import CurveWidget\n\nroot = tk.Tk()\nroot.config(bg=\"black\")\n\nvalues = [(300,0), (150,150), (0,300)]\ncurve_widget = CurveWidget(root, values, line_color=\"purple\",\n                           point_color=\"white\", outline=\"black\")\ncurve_widget.pack(side=\"left\", padx=10, pady=10)\n\nvalues2 = [(300,0), (150,150), (0,300)]\ncurve_widget2 = CurveWidget(root, values2)\ncurve_widget2.pack(side=\"left\", padx=10, pady=10)\n\nvalues3 = [(300,0), (200,200), (75, 75), (0,300)]\ncurve_widget3 = CurveWidget(root, values3, line_color=\"green\")\ncurve_widget3.pack(side=\"left\", padx=10, pady=10)\n\nroot.mainloop()\n```\n\n## Parameters\n| Parameters | Details |\n|--------|----------|\n| master\t| parent widget |\n| width | width of the canvas |\n| height | height of the canvas |\n| points | the values of the points, example: [(x,y), (x,y)] |\n| point_color | color of the points |\n| point_size | radius of the points |\n| line_color | color of the curve line |\n| line_width | width of the line |\n| bg | background color |\n| smooth | enable/disable bezier curve |\n| grid_color | color of the grid lines |\n\n## Methods\n- `.add_point((x,y))`: add a new point in the canvas\n- `.delete_point((x,y))`: delete a point from canvas\n- `.fix((x,y))`: fix a point in the canvas\n- `.config`: change any of the parameters\n- `.cget`: get any parameter\n- `.get()`: get the current points\n  \nFollow me for more stuff like this: [`Akascape`](https://github.com/Akascape/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakascape%2Ftkcurve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakascape%2Ftkcurve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakascape%2Ftkcurve/lists"}