ttkthemes2


Namettkthemes2 JSON
Version 0.1.0 PyPI version JSON
download
home_page
Summary
upload_time2023-11-25 01:37:28
maintainer
docs_urlNone
authorXiangQinxi
requires_python>=3,<4
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TtkTheme2
受`ttkthemes`灵感而发,目的只是为了补充`ttkthemes`的主题。

> 维护者:[XiangQinxi](mailto:XiangQinxi@outlook.com)

---

## TtkThemes2
*依赖`tksvg`库,有些主题是使用tksvg构建的,需要安装`tksvg`
```Bash
pip install tksvg
```

使用:

```Python
from ttkthemes2 import TtkThemes2
theme = TtkThemes2(theme_name=...)
```

简单示例

```Python
from tkinter import Tk, ttk, StringVar
from ttkthemes2 import TtkThemes2

root = Tk()

theme = TtkThemes2(theme_name="awdark")

window = ttk.Frame(root)

button = ttk.Button(window, text="TtkButton")
button.pack(padx=10, pady=10, fill="x")

window.pack(fill="both", expand="yes")

root.mainloop()
```

## Themed2Tk
简易包装`TtkThemes2`

*依赖`tksvg`库,有些主题是使用tksvg构建的,需要安装`tksvg`
```Bash
pip install tksvg
```

使用:

```Python
from ttkthemes2 import Themed2Tk
root = Themed2Tk(theme_name=...)
```

简单示例

```Python
from tkinter import Tk, ttk, StringVar
from ttkthemes2 import Themed2Tk

root = Themed2Tk(theme_name="awdark")

window = ttk.Frame(root)

button = ttk.Button(window, text="TtkButton")
button.pack(padx=10, pady=10, fill="x")

window.pack(fill="both", expand="yes")

root.mainloop()
```
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ttkthemes2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3,<4",
    "maintainer_email": "",
    "keywords": "",
    "author": "XiangQinxi",
    "author_email": "XiangQinxi@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/0a/a6/e92ed0e955e0890186b77ebf84709a06dcc7efd82808e5bf2de4ceb957f8/ttkthemes2-0.1.0.tar.gz",
    "platform": null,
    "description": "# TtkTheme2\n\u53d7`ttkthemes`\u7075\u611f\u800c\u53d1\uff0c\u76ee\u7684\u53ea\u662f\u4e3a\u4e86\u8865\u5145`ttkthemes`\u7684\u4e3b\u9898\u3002\n\n> \u7ef4\u62a4\u8005\uff1a[XiangQinxi](mailto:XiangQinxi@outlook.com)\n\n---\n\n## TtkThemes2\n*\u4f9d\u8d56`tksvg`\u5e93\uff0c\u6709\u4e9b\u4e3b\u9898\u662f\u4f7f\u7528tksvg\u6784\u5efa\u7684\uff0c\u9700\u8981\u5b89\u88c5`tksvg`\n```Bash\npip install tksvg\n```\n\n\u4f7f\u7528\uff1a\n\n```Python\nfrom ttkthemes2 import TtkThemes2\ntheme = TtkThemes2(theme_name=...)\n```\n\n\u7b80\u5355\u793a\u4f8b\n\n```Python\nfrom tkinter import Tk, ttk, StringVar\nfrom ttkthemes2 import TtkThemes2\n\nroot = Tk()\n\ntheme = TtkThemes2(theme_name=\"awdark\")\n\nwindow = ttk.Frame(root)\n\nbutton = ttk.Button(window, text=\"TtkButton\")\nbutton.pack(padx=10, pady=10, fill=\"x\")\n\nwindow.pack(fill=\"both\", expand=\"yes\")\n\nroot.mainloop()\n```\n\n## Themed2Tk\n\u7b80\u6613\u5305\u88c5`TtkThemes2`\n\n*\u4f9d\u8d56`tksvg`\u5e93\uff0c\u6709\u4e9b\u4e3b\u9898\u662f\u4f7f\u7528tksvg\u6784\u5efa\u7684\uff0c\u9700\u8981\u5b89\u88c5`tksvg`\n```Bash\npip install tksvg\n```\n\n\u4f7f\u7528\uff1a\n\n```Python\nfrom ttkthemes2 import Themed2Tk\nroot = Themed2Tk(theme_name=...)\n```\n\n\u7b80\u5355\u793a\u4f8b\n\n```Python\nfrom tkinter import Tk, ttk, StringVar\nfrom ttkthemes2 import Themed2Tk\n\nroot = Themed2Tk(theme_name=\"awdark\")\n\nwindow = ttk.Frame(root)\n\nbutton = ttk.Button(window, text=\"TtkButton\")\nbutton.pack(padx=10, pady=10, fill=\"x\")\n\nwindow.pack(fill=\"both\", expand=\"yes\")\n\nroot.mainloop()\n```",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6d1f3c92408d5b353e01d3abe5ad23748fb4f3b1f3b2eeb8a622a840ce158c9a",
                "md5": "44b96bfc254e0d6fc439911d9a9d14f5",
                "sha256": "36a32c3a7dd3214f0a4133f51dffc8709a7ab3bec07c784190eb96be6e9ded95"
            },
            "downloads": -1,
            "filename": "ttkthemes2-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "44b96bfc254e0d6fc439911d9a9d14f5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3,<4",
            "size": 410707,
            "upload_time": "2023-11-25T01:37:25",
            "upload_time_iso_8601": "2023-11-25T01:37:25.838198Z",
            "url": "https://files.pythonhosted.org/packages/6d/1f/3c92408d5b353e01d3abe5ad23748fb4f3b1f3b2eeb8a622a840ce158c9a/ttkthemes2-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0aa6e92ed0e955e0890186b77ebf84709a06dcc7efd82808e5bf2de4ceb957f8",
                "md5": "7028aa787e4b593ac707db99fd35609b",
                "sha256": "602d2971414581a883f2d487a71ecf4e4459d2012a206e7c3bd6f45acb1ce629"
            },
            "downloads": -1,
            "filename": "ttkthemes2-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7028aa787e4b593ac707db99fd35609b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3,<4",
            "size": 103916,
            "upload_time": "2023-11-25T01:37:28",
            "upload_time_iso_8601": "2023-11-25T01:37:28.493250Z",
            "url": "https://files.pythonhosted.org/packages/0a/a6/e92ed0e955e0890186b77ebf84709a06dcc7efd82808e5bf2de4ceb957f8/ttkthemes2-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-25 01:37:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ttkthemes2"
}
        
Elapsed time: 0.15269s