# PyOptionPane
Python GUIS made easy
# What is PyOptionPane?
PyOptionPane is python guis made easy for beginners and professionals a like. It's basically JOptionPane but for python! And who wouldn't want that?
# Examples
A simple message can be displayed like this
```py
from PyOptionPane import *
f = TextBox("This is an example")
```
Output:
<img width="429" alt="Screen Shot 2022-09-28 at 5 56 19 PM" src="https://user-images.githubusercontent.com/94653933/192914485-9139b660-8aaa-4bbb-b635-f20ee97c7c56.png">
User input
```py
from PyOptionPane import *
f = StringInput("This is another example") #If you want integars use IntInput()
#variable f will now equal whatever the user puts
```
Output:
<img width="480" alt="Screen Shot 2022-09-28 at 6 01 28 PM" src="https://user-images.githubusercontent.com/94653933/192915014-ed3e01d6-1d86-4a1a-924e-3aa6e4593049.png">
Dropdown box
```py
from PyOptionPane import *
f = DropDown("This is an example", "Option 1", "Option 2", "Option 3"
```
Output:
<img width="445" alt="Screen Shot 2022-09-28 at 6 02 27 PM" src="https://user-images.githubusercontent.com/94653933/192915100-28187a97-8039-49b2-97a6-054a95490fae.png">
Yes or no
```py
from PyOptionPane import *
f = YesOrNo("This is another example")
```
Output:
<img width="428" alt="Screen Shot 2022-09-28 at 6 06 20 PM" src="https://user-images.githubusercontent.com/94653933/192915496-e3ca3a63-ec1b-4795-a89d-ce7a9e89fc38.png">
Alerts
```py
from PyOptionPane import *
f = Message(False, "This is an example")
```
<img width="419" alt="Screen Shot 2022-09-28 at 6 07 45 PM" src="https://user-images.githubusercontent.com/94653933/192915638-dd23e80f-9ac4-4943-a5d6-b039e67ee396.png">
Fatal Alert/Warning
```py
from PyOptionPane import *
f = Message(True, "This is an example")
```
<img width="376" alt="Screen Shot 2022-09-28 at 6 09 05 PM" src="https://user-images.githubusercontent.com/94653933/192915792-b742f58e-3f3a-4b2c-bd1c-a914bf47af78.png">
# Use Cases
This can be very useful for those learning python or for to make command line programs look better without much extra effort involved. It can also be useful for beginners/
Raw data
{
"_id": null,
"home_page": "https://github.com/yavda1/PyOptionPane",
"name": "PyOptionPane",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": null,
"author": "yavda1",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/c8/d6/b952ce0aaa5f9b89847d33ddd722cde1fbef45aa784c623a2169dc79145f/PyOptionPane-1.0.2.tar.gz",
"platform": null,
"description": "# PyOptionPane\nPython GUIS made easy\n# What is PyOptionPane?\nPyOptionPane is python guis made easy for beginners and professionals a like. It's basically JOptionPane but for python! And who wouldn't want that? \n# Examples\nA simple message can be displayed like this\n```py\nfrom PyOptionPane import *\nf = TextBox(\"This is an example\")\n```\nOutput:\n\n\n<img width=\"429\" alt=\"Screen Shot 2022-09-28 at 5 56 19 PM\" src=\"https://user-images.githubusercontent.com/94653933/192914485-9139b660-8aaa-4bbb-b635-f20ee97c7c56.png\">\n\nUser input\n\n```py\nfrom PyOptionPane import *\nf = StringInput(\"This is another example\") #If you want integars use IntInput()\n#variable f will now equal whatever the user puts\n```\n\nOutput:\n\n<img width=\"480\" alt=\"Screen Shot 2022-09-28 at 6 01 28 PM\" src=\"https://user-images.githubusercontent.com/94653933/192915014-ed3e01d6-1d86-4a1a-924e-3aa6e4593049.png\">\n\nDropdown box\n\n```py\nfrom PyOptionPane import *\nf = DropDown(\"This is an example\", \"Option 1\", \"Option 2\", \"Option 3\"\n```\n\nOutput:\n\n<img width=\"445\" alt=\"Screen Shot 2022-09-28 at 6 02 27 PM\" src=\"https://user-images.githubusercontent.com/94653933/192915100-28187a97-8039-49b2-97a6-054a95490fae.png\">\n\nYes or no\n\n```py\nfrom PyOptionPane import *\nf = YesOrNo(\"This is another example\")\n```\n\nOutput:\n\n\n<img width=\"428\" alt=\"Screen Shot 2022-09-28 at 6 06 20 PM\" src=\"https://user-images.githubusercontent.com/94653933/192915496-e3ca3a63-ec1b-4795-a89d-ce7a9e89fc38.png\">\n\nAlerts\n\n```py\nfrom PyOptionPane import *\nf = Message(False, \"This is an example\")\n```\n\n<img width=\"419\" alt=\"Screen Shot 2022-09-28 at 6 07 45 PM\" src=\"https://user-images.githubusercontent.com/94653933/192915638-dd23e80f-9ac4-4943-a5d6-b039e67ee396.png\">\n\nFatal Alert/Warning\n\n```py\nfrom PyOptionPane import *\nf = Message(True, \"This is an example\")\n```\n\n<img width=\"376\" alt=\"Screen Shot 2022-09-28 at 6 09 05 PM\" src=\"https://user-images.githubusercontent.com/94653933/192915792-b742f58e-3f3a-4b2c-bd1c-a914bf47af78.png\">\n\n\n\n# Use Cases\nThis can be very useful for those learning python or for to make command line programs look better without much extra effort involved. It can also be useful for beginners/\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python GUIs made easy!",
"version": "1.0.2",
"project_urls": {
"Homepage": "https://github.com/yavda1/PyOptionPane"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8dd231b04db08ccaadecbd6b3e2d76bcd66d05516e018ecc57510b0eb51927d1",
"md5": "462c369a96dd755e2643400d2eb06c05",
"sha256": "836d0818412a1555601deba76947eda2aaf8b1729031d877bf554d966c52a98d"
},
"downloads": -1,
"filename": "PyOptionPane-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "462c369a96dd755e2643400d2eb06c05",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 4367,
"upload_time": "2024-03-30T22:43:38",
"upload_time_iso_8601": "2024-03-30T22:43:38.368278Z",
"url": "https://files.pythonhosted.org/packages/8d/d2/31b04db08ccaadecbd6b3e2d76bcd66d05516e018ecc57510b0eb51927d1/PyOptionPane-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c8d6b952ce0aaa5f9b89847d33ddd722cde1fbef45aa784c623a2169dc79145f",
"md5": "789ab1fc2b014c0f1fbb84133768e10c",
"sha256": "c6f5882bfed8ad9435102a8757f52a3ab14cc25dcd32ad0215a10c14a97258cd"
},
"downloads": -1,
"filename": "PyOptionPane-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "789ab1fc2b014c0f1fbb84133768e10c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 3916,
"upload_time": "2024-03-30T22:43:39",
"upload_time_iso_8601": "2024-03-30T22:43:39.578923Z",
"url": "https://files.pythonhosted.org/packages/c8/d6/b952ce0aaa5f9b89847d33ddd722cde1fbef45aa784c623a2169dc79145f/PyOptionPane-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-30 22:43:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yavda1",
"github_project": "PyOptionPane",
"github_not_found": true,
"lcname": "pyoptionpane"
}