<h3 align="center">Create a gradient frame for your customtkinter applications.</h3>
<div align="center">
<a align="center" href="https://pypi.org/project/ctkgradient">
<img src="https://img.shields.io/pypi/v/ctkgradient" alt="pypi">
</a>
<a align="center" href="https://pepy.tech/project/ctkgradient">
<img src="https://static.pepy.tech/badge/ctkgradient" alt="Downloads">
</a>
<img src="https://img.shields.io/powershellgallery/p/Pester?color=blue" alt="Platform">
</div>
## CTkGradient
CTkGradient is a fork of [GradientFrame-Tkinter](https://github.com/JeanExtreme002/GradientFrame-Tkinter), it is a python module to create customtkinter frames with a gradient background color of your choice, you can choose between a vertical or horizontal gradient, among other options.
> [!NOTE]
> This project is in alpha state, so you may encounter bugs through its use, which I would recommend reporting in issues. I'm thinking about a few features with gradients like buttons and other widgets, so stay tuned!
## How to use it?
Install the module using `pip` (or `pip3`) by typing the next command on console...
```python
pip install CTkGradient
```
Then import it and use it, here is an example:
```python
# Import customtkinter and CTkGradient
import customtkinter as ctk
import CTkGradient as ctkg
# Initialize CustomTkinter
ctk.set_appearance_mode("dark")
ctk.set_default_color_theme("blue")
root = ctk.CTk()
# Create a GradientFrame with custom colors and direction
gradient_frame = ctkg.GradientFrame(
master = root,
colors = ("#ec0075", "#ffd366"),
direction = "vertical",
corner_radius = 10,
height = 600,
width = 800
)
gradient_frame.pack(fill = "both", expand = True)
root.mainloop()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/TrollSkull/CTkGradient",
"name": "CTkGradient",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, tkinter, customtkinter, gradient",
"author": "TrollSkull",
"author_email": "<trollskull.contact@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/be/5c/350095c5cec3d44c34cb66f6a800c9e57039fbb6aec2c2aea301a8b3446f/ctkgradient-0.3.1.tar.gz",
"platform": null,
"description": "<h3 align=\"center\">Create a gradient frame for your customtkinter applications.</h3>\r\n\r\n<div align=\"center\">\r\n <a align=\"center\" href=\"https://pypi.org/project/ctkgradient\">\r\n <img src=\"https://img.shields.io/pypi/v/ctkgradient\" alt=\"pypi\">\r\n </a>\r\n <a align=\"center\" href=\"https://pepy.tech/project/ctkgradient\">\r\n <img src=\"https://static.pepy.tech/badge/ctkgradient\" alt=\"Downloads\">\r\n </a>\r\n <img src=\"https://img.shields.io/powershellgallery/p/Pester?color=blue\" alt=\"Platform\">\r\n</div>\r\n\r\n\r\n## CTkGradient\r\nCTkGradient is a fork of [GradientFrame-Tkinter](https://github.com/JeanExtreme002/GradientFrame-Tkinter), it is a python module to create customtkinter frames with a gradient background color of your choice, you can choose between a vertical or horizontal gradient, among other options.\r\n\r\n> [!NOTE]\r\n> This project is in alpha state, so you may encounter bugs through its use, which I would recommend reporting in issues. I'm thinking about a few features with gradients like buttons and other widgets, so stay tuned!\r\n\r\n## How to use it?\r\nInstall the module using `pip` (or `pip3`) by typing the next command on console...\r\n```python\r\npip install CTkGradient\r\n```\r\n\r\nThen import it and use it, here is an example:\r\n```python\r\n# Import customtkinter and CTkGradient\r\nimport customtkinter as ctk\r\nimport CTkGradient as ctkg\r\n\r\n# Initialize CustomTkinter\r\nctk.set_appearance_mode(\"dark\")\r\nctk.set_default_color_theme(\"blue\")\r\n\r\nroot = ctk.CTk()\r\n\r\n# Create a GradientFrame with custom colors and direction\r\ngradient_frame = ctkg.GradientFrame(\r\n master = root,\r\n colors = (\"#ec0075\", \"#ffd366\"),\r\n direction = \"vertical\",\r\n corner_radius = 10,\r\n height = 600,\r\n width = 800\r\n)\r\n\r\ngradient_frame.pack(fill = \"both\", expand = True)\r\n\r\nroot.mainloop()\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Create a gradient frame for customtkinter.",
"version": "0.3.1",
"project_urls": {
"Homepage": "https://github.com/TrollSkull/CTkGradient"
},
"split_keywords": [
"python",
" tkinter",
" customtkinter",
" gradient"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "96a7efe2dc204b093cc85e000ec9d263b82ba22e1992557fb33a50a93021204b",
"md5": "5104ea3604d3f26c9f6d6507f64851af",
"sha256": "f9db50cc234e7754c36f5f6d63629e4a0ce5c422498b9068ee3096d3d877f061"
},
"downloads": -1,
"filename": "CTkGradient-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5104ea3604d3f26c9f6d6507f64851af",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6076,
"upload_time": "2024-10-24T00:40:55",
"upload_time_iso_8601": "2024-10-24T00:40:55.095724Z",
"url": "https://files.pythonhosted.org/packages/96/a7/efe2dc204b093cc85e000ec9d263b82ba22e1992557fb33a50a93021204b/CTkGradient-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "be5c350095c5cec3d44c34cb66f6a800c9e57039fbb6aec2c2aea301a8b3446f",
"md5": "0f33de69d09def5d5214c87c15d81457",
"sha256": "42114a7f88a7e85fd2321436ee7a21a08911d633456576827d9e20ed722bf1fd"
},
"downloads": -1,
"filename": "ctkgradient-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "0f33de69d09def5d5214c87c15d81457",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5535,
"upload_time": "2024-10-24T00:40:57",
"upload_time_iso_8601": "2024-10-24T00:40:57.715638Z",
"url": "https://files.pythonhosted.org/packages/be/5c/350095c5cec3d44c34cb66f6a800c9e57039fbb6aec2c2aea301a8b3446f/ctkgradient-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-24 00:40:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TrollSkull",
"github_project": "CTkGradient",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "customtkinter",
"specs": []
}
],
"lcname": "ctkgradient"
}