pywinstyles


Namepywinstyles JSON
Version 1.8 PyPI version JSON
download
home_pagehttps://github.com/Akascape/py-window-styles
SummaryCustomize window styles in windows 11
upload_time2024-04-22 06:18:18
maintainerNone
docs_urlNone
authorAkash Bora
requires_python>=3.8
licenseCreative Commons Zero v1.0 Universal
keywords window-styles pywinstyles pywindowstyles customtkinter tkinter python-window-themes gui python-gui pyqt title-bar title-bar-color windows-themes wxpython windows11
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # py-window-styles

Customize your UI window with awesome built-in Windows 11 header styles and themes.
**Windows 10 is also supported (only themes).**

![Screenshot](https://github.com/Akascape/py-window-styles/assets/89206401/986062c0-30a0-4289-929a-e5e2440b8dd1)

## Supported UI Libraries
- Tkinter
- Customtkinter
- PyQt
- PySide
- WxPython
- Pygame
- Kivy
- PySimpleGUI
- more...

[<img src="https://img.shields.io/badge/View-Examples-informational?&color=darkblue&style=for-the-badge" width="150">](https://github.com/Akascape/py-window-styles/blob/main/Example_Documentation.md)

## Installation
```
pip install pywinstyles
```
<img src="https://img.shields.io/badge/Platform-Windows-informational?" width="150"> [<img src="https://img.shields.io/pypi/v/pywinstyles?style=flat" width="90">](https://pypi.org/project/pywinstyles)
[<img src="https://static.pepy.tech/badge/pywinstyles" width="130">](https://pepy.tech/project/pywinstyles)

## Apply Window Styles/Themes
```python
import pywinstyles
...
pywinstyles.apply_style(window, style)
...
```
| Style Name | Preview |
|-----------| ------------|
| mica |  ![](https://user-images.githubusercontent.com/89206401/222347983-d840bee2-a100-40b4-a418-1a604bfc67d4.jpg) |
| acrylic | ![](https://github.com/Akascape/py-window-styles/assets/89206401/cbd54b23-0626-44c7-a89a-6359517ed1a5) |
| aero (GPU Heavy) | ![](https://user-images.githubusercontent.com/89206401/223035861-ca4a1c52-7475-43a9-b197-1c06bb4ecec7.jpg)|
| transparent (GPU Heavy) | ![](https://github.com/Akascape/py-window-styles/assets/89206401/317e9c4e-be27-444e-aa22-02b625e94960)  |
| optimised | ![](https://user-images.githubusercontent.com/89206401/246128698-726ba674-843b-46ef-8a4d-8732b66a13a3.jpg) |
| win7 | ![](https://github.com/Akascape/py-window-styles/assets/89206401/b01585b4-0e50-471d-ae34-c3eec9607511) |
| inverse | ![](https://github.com/Akascape/py-window-styles/assets/89206401/b7c18335-7498-43ca-bea2-6c35255a7c92) |
| native |  ![](https://github.com/Akascape/py-window-styles/assets/89206401/3047d165-006f-4386-88a8-b5272f740ed2) |
| popup | ![](https://github.com/Akascape/py-window-styles/assets/89206401/dac6672e-99e8-4abc-b779-aed25c32ed09) |
| dark | ![](https://github.com/Akascape/py-window-styles/assets/89206401/ca41fa22-ed9d-437f-8574-bf0a13218747) |
| normal | No Change |

## Apply Custom Window Colors (Only works in windows 11)
![](https://user-images.githubusercontent.com/89206401/222352861-8af5703c-a64c-4c67-9192-29ffa0e3b4b5.jpg)
### Change Title Bar Color
```python
pywinstyles.change_header_color(window, color="#00524d")  
```
### Change Title Text Color
```python
pywinstyles.change_title_color(window, color="white") 
```
### Change Border Color
```python
pywinstyles.change_border_color(window, color="#00ffff")
```
### Get Windows Accent Color
```python
default_color = pywinstyles.get_accent_color() # returns hex color string
```

### Set opacity of individual widgets
```python
pywinstyles.set_opacity(widget_id, value=0.5)
```

### Make a color transparent inside widget
```python
pywinstyles.set_opacity(widget_id, color="white")
```
### Add file DND feature to widgets
```python
def drop_func(file):
  print(file) 
pywinstyles.apply_dnd(widget_id, frop_func)
```
**Hope this package can help in UI development with python**

**Author: Akash Bora**

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Akascape/py-window-styles",
    "name": "pywinstyles",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "window-styles, pywinstyles, pywindowstyles, customtkinter, tkinter, python-window-themes, gui, python-gui, pyqt, title-bar, title-bar-color, windows-themes, wxpython, windows11",
    "author": "Akash Bora",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/09/5b/c3356335b7f60a940c3e9c1aa6f3b6407af10b26c763739933c500937dbe/pywinstyles-1.8.tar.gz",
    "platform": null,
    "description": "# py-window-styles\r\n\r\nCustomize your UI window with awesome built-in Windows 11 header styles and themes.\r\n**Windows 10 is also supported (only themes).**\r\n\r\n![Screenshot](https://github.com/Akascape/py-window-styles/assets/89206401/986062c0-30a0-4289-929a-e5e2440b8dd1)\r\n\r\n## Supported UI Libraries\r\n- Tkinter\r\n- Customtkinter\r\n- PyQt\r\n- PySide\r\n- WxPython\r\n- Pygame\r\n- Kivy\r\n- PySimpleGUI\r\n- more...\r\n\r\n[<img src=\"https://img.shields.io/badge/View-Examples-informational?&color=darkblue&style=for-the-badge\" width=\"150\">](https://github.com/Akascape/py-window-styles/blob/main/Example_Documentation.md)\r\n\r\n## Installation\r\n```\r\npip install pywinstyles\r\n```\r\n<img src=\"https://img.shields.io/badge/Platform-Windows-informational?\" width=\"150\"> [<img src=\"https://img.shields.io/pypi/v/pywinstyles?style=flat\" width=\"90\">](https://pypi.org/project/pywinstyles)\r\n[<img src=\"https://static.pepy.tech/badge/pywinstyles\" width=\"130\">](https://pepy.tech/project/pywinstyles)\r\n\r\n## Apply Window Styles/Themes\r\n```python\r\nimport pywinstyles\r\n...\r\npywinstyles.apply_style(window, style)\r\n...\r\n```\r\n| Style Name | Preview |\r\n|-----------| ------------|\r\n| mica |  ![](https://user-images.githubusercontent.com/89206401/222347983-d840bee2-a100-40b4-a418-1a604bfc67d4.jpg) |\r\n| acrylic | ![](https://github.com/Akascape/py-window-styles/assets/89206401/cbd54b23-0626-44c7-a89a-6359517ed1a5) |\r\n| aero (GPU Heavy) | ![](https://user-images.githubusercontent.com/89206401/223035861-ca4a1c52-7475-43a9-b197-1c06bb4ecec7.jpg)|\r\n| transparent (GPU Heavy) | ![](https://github.com/Akascape/py-window-styles/assets/89206401/317e9c4e-be27-444e-aa22-02b625e94960)  |\r\n| optimised | ![](https://user-images.githubusercontent.com/89206401/246128698-726ba674-843b-46ef-8a4d-8732b66a13a3.jpg) |\r\n| win7 | ![](https://github.com/Akascape/py-window-styles/assets/89206401/b01585b4-0e50-471d-ae34-c3eec9607511) |\r\n| inverse | ![](https://github.com/Akascape/py-window-styles/assets/89206401/b7c18335-7498-43ca-bea2-6c35255a7c92) |\r\n| native |  ![](https://github.com/Akascape/py-window-styles/assets/89206401/3047d165-006f-4386-88a8-b5272f740ed2) |\r\n| popup | ![](https://github.com/Akascape/py-window-styles/assets/89206401/dac6672e-99e8-4abc-b779-aed25c32ed09) |\r\n| dark | ![](https://github.com/Akascape/py-window-styles/assets/89206401/ca41fa22-ed9d-437f-8574-bf0a13218747) |\r\n| normal | No Change |\r\n\r\n## Apply Custom Window Colors (Only works in windows 11)\r\n![](https://user-images.githubusercontent.com/89206401/222352861-8af5703c-a64c-4c67-9192-29ffa0e3b4b5.jpg)\r\n### Change Title Bar Color\r\n```python\r\npywinstyles.change_header_color(window, color=\"#00524d\")  \r\n```\r\n### Change Title Text Color\r\n```python\r\npywinstyles.change_title_color(window, color=\"white\") \r\n```\r\n### Change Border Color\r\n```python\r\npywinstyles.change_border_color(window, color=\"#00ffff\")\r\n```\r\n### Get Windows Accent Color\r\n```python\r\ndefault_color = pywinstyles.get_accent_color() # returns hex color string\r\n```\r\n\r\n### Set opacity of individual widgets\r\n```python\r\npywinstyles.set_opacity(widget_id, value=0.5)\r\n```\r\n\r\n### Make a color transparent inside widget\r\n```python\r\npywinstyles.set_opacity(widget_id, color=\"white\")\r\n```\r\n### Add file DND feature to widgets\r\n```python\r\ndef drop_func(file):\r\n  print(file) \r\npywinstyles.apply_dnd(widget_id, frop_func)\r\n```\r\n**Hope this package can help in UI development with python**\r\n\r\n**Author: Akash Bora**\r\n",
    "bugtrack_url": null,
    "license": "Creative Commons Zero v1.0 Universal",
    "summary": "Customize window styles in windows 11",
    "version": "1.8",
    "project_urls": {
        "Homepage": "https://github.com/Akascape/py-window-styles"
    },
    "split_keywords": [
        "window-styles",
        " pywinstyles",
        " pywindowstyles",
        " customtkinter",
        " tkinter",
        " python-window-themes",
        " gui",
        " python-gui",
        " pyqt",
        " title-bar",
        " title-bar-color",
        " windows-themes",
        " wxpython",
        " windows11"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9937be473b2d3bde387ef39e57b3ebabadfaaf0627333814e0c3813dac686f5e",
                "md5": "d71be77a84bf493d497e5bed0eb0e6c5",
                "sha256": "17d89c6bc91569b676b71c00400ec958548302809858966c4cf447bb16a7e407"
            },
            "downloads": -1,
            "filename": "pywinstyles-1.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d71be77a84bf493d497e5bed0eb0e6c5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 10535,
            "upload_time": "2024-04-22T06:18:15",
            "upload_time_iso_8601": "2024-04-22T06:18:15.816280Z",
            "url": "https://files.pythonhosted.org/packages/99/37/be473b2d3bde387ef39e57b3ebabadfaaf0627333814e0c3813dac686f5e/pywinstyles-1.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "095bc3356335b7f60a940c3e9c1aa6f3b6407af10b26c763739933c500937dbe",
                "md5": "a474b22385d553f3caf388271c745ba0",
                "sha256": "7a087b1f45ef8d572b440712817dbbef8ae90793ab7fcc51b060851d2d6f301c"
            },
            "downloads": -1,
            "filename": "pywinstyles-1.8.tar.gz",
            "has_sig": false,
            "md5_digest": "a474b22385d553f3caf388271c745ba0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10514,
            "upload_time": "2024-04-22T06:18:18",
            "upload_time_iso_8601": "2024-04-22T06:18:18.065649Z",
            "url": "https://files.pythonhosted.org/packages/09/5b/c3356335b7f60a940c3e9c1aa6f3b6407af10b26c763739933c500937dbe/pywinstyles-1.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-22 06:18:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Akascape",
    "github_project": "py-window-styles",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pywinstyles"
}
        
Elapsed time: 0.48626s