# zenity-py - Zenity for Python
Exactly what it says it is.
# How to install
Just type ```python3 -m pip install zenity-py``` and it should install just fine.
BUT, you need to also check if Zenity is installed.
Type in the Command Prompt/Terminal: ```zenity```.
If this is the output you get:
```
You must specify a dialog type. See 'zenity --help' for details
```
then you're good to go and you can get to using zenity-py.
If it says something like ```zsh: command not found: zenity``` or ```'zenity' is not recognized as an internal or external command, operable program or batch file.```, then you don't have it installed.
## How to install Zenity - Linux/Mac
On Linux, use your system's package manager or Homebrew to install it.
Example: ```sudo apt install zenity```
On Mac, use Homebrew to install it.
Example: ```brew install zenity```
## How to install Zenity - Windows
Install MinGW then search for Zenity in it. I don't use Windows anymore and I never really used MinGW for any other stuff other then make, so that's all i'm saying.
# How to use
In a python file, type
```python
from zenity import Zenity
# Zenity syntax - title, body, type, options[]
# the ! in !timeout means it is an option, not a value
z = Zenity("Title", "Body", "info", ["!timeout", 5])
```
This should create a new Zenity instance. Of course, this is an example, so you can change anything.
After that, add
```python
z.Open()
```
This should start up Zenity with the parameters you specified.
If a zenity window doesn't appear, something went wrong.
You can always print() the z variable, as the Zenity class returns both the status code and output.
If you want to know what arguments you can use, go over to the [Zenity Manual](https://help.gnome.org/users/zenity/stable/).
Do not add an option like !calendar or !password onto the options. Just change the type to "calendar" or "password".
Raw data
{
"_id": null,
"home_page": "https://github.com/Marko2155/zenity_py",
"name": "zenity-py",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "zenity",
"author": "Marko Camandioti",
"author_email": "camandiotimarko@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f0/1e/7cbbd61f2521228b3926e47f9bb6e7633a5b3e8f98df69864e6077c75109/zenity_py-1.0.7.tar.gz",
"platform": null,
"description": "# zenity-py - Zenity for Python\nExactly what it says it is.\n\n# How to install\nJust type ```python3 -m pip install zenity-py``` and it should install just fine.\n\nBUT, you need to also check if Zenity is installed.\nType in the Command Prompt/Terminal: ```zenity```.\nIf this is the output you get:\n```\nYou must specify a dialog type. See 'zenity --help' for details\n```\nthen you're good to go and you can get to using zenity-py.\n\nIf it says something like ```zsh: command not found: zenity``` or ```'zenity' is not recognized as an internal or external command, operable program or batch file.```, then you don't have it installed.\n\n## How to install Zenity - Linux/Mac\nOn Linux, use your system's package manager or Homebrew to install it.\nExample: ```sudo apt install zenity```\n\nOn Mac, use Homebrew to install it.\nExample: ```brew install zenity```\n\n## How to install Zenity - Windows\nInstall MinGW then search for Zenity in it. I don't use Windows anymore and I never really used MinGW for any other stuff other then make, so that's all i'm saying.\n\n# How to use\nIn a python file, type\n```python\nfrom zenity import Zenity\n\n# Zenity syntax - title, body, type, options[]\n# the ! in !timeout means it is an option, not a value\nz = Zenity(\"Title\", \"Body\", \"info\", [\"!timeout\", 5])\n```\n\nThis should create a new Zenity instance. Of course, this is an example, so you can change anything.\nAfter that, add\n```python\nz.Open()\n```\n\nThis should start up Zenity with the parameters you specified.\nIf a zenity window doesn't appear, something went wrong.\nYou can always print() the z variable, as the Zenity class returns both the status code and output.\n\nIf you want to know what arguments you can use, go over to the [Zenity Manual](https://help.gnome.org/users/zenity/stable/).\nDo not add an option like !calendar or !password onto the options. Just change the type to \"calendar\" or \"password\".\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python library for the CLI tool zenity.",
"version": "1.0.7",
"project_urls": {
"Documentation": "https://github.com/Marko2155/zenity_py#readme",
"Homepage": "https://github.com/Marko2155/zenity_py",
"Source": "https://github.com/Marko2155/zenity_py",
"Tracker": "https://github.com/Marko2155/zenity_py/issues"
},
"split_keywords": [
"zenity"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9a034f93f4b9dc5be5d77fc949b71855b44d3c9a7a811f4683cc22df2a3df51f",
"md5": "ed02c1dbf8d4ac3268d1000389386c68",
"sha256": "0db8cfbda255ff6ba3bac314aeb5dfc6c25bbaeff032cf748e515354e0095d8e"
},
"downloads": -1,
"filename": "zenity_py-1.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ed02c1dbf8d4ac3268d1000389386c68",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 2810,
"upload_time": "2024-02-01T21:05:12",
"upload_time_iso_8601": "2024-02-01T21:05:12.752327Z",
"url": "https://files.pythonhosted.org/packages/9a/03/4f93f4b9dc5be5d77fc949b71855b44d3c9a7a811f4683cc22df2a3df51f/zenity_py-1.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f01e7cbbd61f2521228b3926e47f9bb6e7633a5b3e8f98df69864e6077c75109",
"md5": "9884ac68f8df40e49a337f056156b8a8",
"sha256": "21b120d03fae57cce99be5899e07275b7b63aa3f5d5784423588b35a50538d4b"
},
"downloads": -1,
"filename": "zenity_py-1.0.7.tar.gz",
"has_sig": false,
"md5_digest": "9884ac68f8df40e49a337f056156b8a8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2721,
"upload_time": "2024-02-01T21:05:14",
"upload_time_iso_8601": "2024-02-01T21:05:14.875828Z",
"url": "https://files.pythonhosted.org/packages/f0/1e/7cbbd61f2521228b3926e47f9bb6e7633a5b3e8f98df69864e6077c75109/zenity_py-1.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-01 21:05:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Marko2155",
"github_project": "zenity_py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "zenity-py"
}