tkinteruserinput


Nametkinteruserinput JSON
Version 0.11 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/tkinteruserinput
SummaryPop-ups to get input from the user - tkinter
upload_time2023-04-26 05:37:45
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords tkinter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pop-ups to get input from the user - tkinter 

## pip install tkinteruserinput

### Tested against Windows 10 / Python 3.10 / Anaconda 




```python

from tkinteruserinput import get_user_input, get_user_input_varbuttons, get_user_input_checkbox, get_user_input_radio, \
    show_info, show_error, show_warning

if __name__ == '__main__':
    ################################################

    user_input = get_user_input(
        linesinputbox=1,
        size="300x150",
        title="Input Box Example",
        textabovebox="Enter your text below:",
        submitbutton="Submit",
        regexcheck=r"\d+",
        showerror=("Error", "This is not a number! Try again!"),
        showinfo=None,
        showwarning=None,
        icon=r"C:\Users\hansc\Pictures\regiondf.ico",
    )
    print("User input:", user_input)

    ################################################

    options = ["Option 1", "Option 2", "Option 3"]
    user_input = get_user_input_varbuttons(
        options=options,
        size="300x350",
        title="Your input",
        textabovebox="Click a button",
        buttonwidth=15,
        buttonheight=3,
        icon=r"C:\Users\hansc\Pictures\regiondf.ico"

    )
    print("User input:", user_input)
    ################################################

    user_input = get_user_input_checkbox(
        checkbox_options=("Option 1", "Option 2", "Option 3", "Option 4"),
        size="300x350",
        title="Your input",
        textabovebox="Select checkboxes:",
        submitbutton="Submit",
        icon=r"C:\Users\hansc\Pictures\regiondf.ico"

    )
    print("User input:", user_input)
    ################################################
    user_input = get_user_input_radio(
        radio_options=("Option 1", "Option 2", "Option 3", "Option 4"),
        indexdefault=0,
        size="300x350",
        title="Your input",
        textabovebox="Select a radio button",
        submitbutton="Submit",
        icon=r"C:\Users\hansc\Pictures\regiondf.ico"
    )
    print("User input:", user_input)
    ################################################
    show_info("Titel", "Message")
    show_error("Titel", "Message")
    show_warning("Titel", "Message")



```
![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/textinput1.png?raw=true)


![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/textinput2.png?raw=true)


![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/checkboxes.png?raw=true)


![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/clickabutton.png?raw=true)


![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/radiobutton.png?raw=true)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/tkinteruserinput",
    "name": "tkinteruserinput",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "tkinter",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ca/a9/48ecdcd94bd350f1fe622e9e957912ad4527f8a801b4c0994de4190cac8b/tkinteruserinput-0.11.tar.gz",
    "platform": null,
    "description": "# Pop-ups to get input from the user - tkinter \r\n\r\n## pip install tkinteruserinput\r\n\r\n### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n\r\n\r\n\r\n```python\r\n\r\nfrom tkinteruserinput import get_user_input, get_user_input_varbuttons, get_user_input_checkbox, get_user_input_radio, \\\r\n    show_info, show_error, show_warning\r\n\r\nif __name__ == '__main__':\r\n    ################################################\r\n\r\n    user_input = get_user_input(\r\n        linesinputbox=1,\r\n        size=\"300x150\",\r\n        title=\"Input Box Example\",\r\n        textabovebox=\"Enter your text below:\",\r\n        submitbutton=\"Submit\",\r\n        regexcheck=r\"\\d+\",\r\n        showerror=(\"Error\", \"This is not a number! Try again!\"),\r\n        showinfo=None,\r\n        showwarning=None,\r\n        icon=r\"C:\\Users\\hansc\\Pictures\\regiondf.ico\",\r\n    )\r\n    print(\"User input:\", user_input)\r\n\r\n    ################################################\r\n\r\n    options = [\"Option 1\", \"Option 2\", \"Option 3\"]\r\n    user_input = get_user_input_varbuttons(\r\n        options=options,\r\n        size=\"300x350\",\r\n        title=\"Your input\",\r\n        textabovebox=\"Click a button\",\r\n        buttonwidth=15,\r\n        buttonheight=3,\r\n        icon=r\"C:\\Users\\hansc\\Pictures\\regiondf.ico\"\r\n\r\n    )\r\n    print(\"User input:\", user_input)\r\n    ################################################\r\n\r\n    user_input = get_user_input_checkbox(\r\n        checkbox_options=(\"Option 1\", \"Option 2\", \"Option 3\", \"Option 4\"),\r\n        size=\"300x350\",\r\n        title=\"Your input\",\r\n        textabovebox=\"Select checkboxes:\",\r\n        submitbutton=\"Submit\",\r\n        icon=r\"C:\\Users\\hansc\\Pictures\\regiondf.ico\"\r\n\r\n    )\r\n    print(\"User input:\", user_input)\r\n    ################################################\r\n    user_input = get_user_input_radio(\r\n        radio_options=(\"Option 1\", \"Option 2\", \"Option 3\", \"Option 4\"),\r\n        indexdefault=0,\r\n        size=\"300x350\",\r\n        title=\"Your input\",\r\n        textabovebox=\"Select a radio button\",\r\n        submitbutton=\"Submit\",\r\n        icon=r\"C:\\Users\\hansc\\Pictures\\regiondf.ico\"\r\n    )\r\n    print(\"User input:\", user_input)\r\n    ################################################\r\n    show_info(\"Titel\", \"Message\")\r\n    show_error(\"Titel\", \"Message\")\r\n    show_warning(\"Titel\", \"Message\")\r\n\r\n\r\n\r\n```\r\n![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/textinput1.png?raw=true)\r\n\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/textinput2.png?raw=true)\r\n\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/checkboxes.png?raw=true)\r\n\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/clickabutton.png?raw=true)\r\n\r\n\r\n![](https://github.com/hansalemaos/screenshots/blob/main/tkinteruserinput/radiobutton.png?raw=true)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Pop-ups to get input from the user - tkinter",
    "version": "0.11",
    "split_keywords": [
        "tkinter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c0e8ede86412b108c9ad4e30af366e5a361b381a7d28b6485f5e1b9b59356aab",
                "md5": "8421e8eb3db7c83f7674b3e72d37f35e",
                "sha256": "9bc6a42d9bf5b044e7f101cbdba5ff500c5d605f466214d443fedb4ca761edfb"
            },
            "downloads": -1,
            "filename": "tkinteruserinput-0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8421e8eb3db7c83f7674b3e72d37f35e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7034,
            "upload_time": "2023-04-26T05:37:42",
            "upload_time_iso_8601": "2023-04-26T05:37:42.948782Z",
            "url": "https://files.pythonhosted.org/packages/c0/e8/ede86412b108c9ad4e30af366e5a361b381a7d28b6485f5e1b9b59356aab/tkinteruserinput-0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "caa948ecdcd94bd350f1fe622e9e957912ad4527f8a801b4c0994de4190cac8b",
                "md5": "1e6c7095072328c4476704c22db7a516",
                "sha256": "602839b77702c071d9a10654445f9449732ed3063ea05516b164d417aad00200"
            },
            "downloads": -1,
            "filename": "tkinteruserinput-0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "1e6c7095072328c4476704c22db7a516",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5338,
            "upload_time": "2023-04-26T05:37:45",
            "upload_time_iso_8601": "2023-04-26T05:37:45.345123Z",
            "url": "https://files.pythonhosted.org/packages/ca/a9/48ecdcd94bd350f1fe622e9e957912ad4527f8a801b4c0994de4190cac8b/tkinteruserinput-0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-26 05:37:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "tkinteruserinput",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "tkinteruserinput"
}
        
Elapsed time: 0.08169s