Pop-ups to get input from the user - tkinter
pip install tkinteruserinput
Tested against Windows 10 / Python 3.10 / Anaconda
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")
Metadata
Release files for tkinteruserinput 0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tkinteruserinput-0.11.tar.gz | 5.3 kB | Without provenance | Details for tkinteruserinput-0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tkinteruserinput-0.11-py3-none-any.whl | Python 3 | none | any | Details for tkinteruserinput-0.11-py3-none-any.whl |
Total release size: 12.4 kB
Release files / tkinteruserinput-0.11.tar.gz
| Download URL | tkinteruserinput-0.11.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
602839b77702c071d9a10654445f9449732ed3063ea05516b164d417aad00200
|
|
BLAKE2b-256 checksum How to use checksums |
caa948ecdcd94bd350f1fe622e9e957912ad4527f8a801b4c0994de4190cac8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / tkinteruserinput-0.11-py3-none-any.whl
| Download URL | tkinteruserinput-0.11-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bc6a42d9bf5b044e7f101cbdba5ff500c5d605f466214d443fedb4ca761edfb
|
|
BLAKE2b-256 checksum How to use checksums |
c0e8ede86412b108c9ad4e30af366e5a361b381a7d28b6485f5e1b9b59356aab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for tkinteruserinput 0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.