What is it?
This is a project to build an easy-to-use GUI toolkit using just the windows console. The usage of this module is inspired by Tkinter as its ease of use makes it one of the fastest ways to create GUIs on the fly.
Eventually I aim to mirror the placement methods available in Tkinter such as Pack, Place, and Grid. I would also like to make a version of CMDUI for ANSI code driven terminals in the same easy-to-use style, although in the meantime CMDUI is only runnable in the windows console (or CMD).
Notes for 0.2.0 release
Thanks for checking out the project! CMDUI is still in very early development and this release has added a new pack algorithm. This algorithm has been a tricky one to implement and there are still a lot of bugs that need to be ironed out. Feel free to open an issue if you encounter any. I hope you enjoy. :-)
Installation
CMDUI is now available on pip...
pip install CMDUI
Example Usage - Stop Watch
A simple stopwatch UI. This example demonstrates the use of buttons, labels, and text variables.
import CMDUI as CMD
import threading
import time
def counter():
btn_txt.set("Stop")
tt = time.time()
while running:
lab_txt.set(f"{time.time()-tt:.2f}")
time.sleep(0.01)
btn_txt.set("Reset")
def stopwatch():
if btn_txt.get() == "Reset":
btn_txt.set("Start")
lab_txt.set("")
return
global running
running = not running
threading.Thread(target=counter).start()
cmdui = CMD.CMDUI()
running = False
lab_txt = CMD.StringVar()
btn_txt = CMD.StringVar()
btn_txt.set("Start")
lab = CMD.Label(cmdui, textvariable=lab_txt)
lab.pack()
but = CMD.Button(cmdui, textvariable=btn_txt, command=stopwatch)
but.pack()
cmdui.mainloop()
Metadata
Release files for CMDUI 0.2.0
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 |
|---|---|---|---|---|
| CMDUI-0.2.0.tar.gz | 10.6 kB | Without provenance | Details for CMDUI-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CMDUI-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for CMDUI-0.2.0-py3-none-any.whl |
Total release size: 28.2 kB
Release files / CMDUI-0.2.0.tar.gz
| Download URL | CMDUI-0.2.0.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53158e27675cef18c02220d54c29a0cfe5159c9824a4801585cea8768e944553
|
|
BLAKE2b-256 checksum How to use checksums |
452689918145686f8b57b87aa375d73c8d004c5d0778bee339b24f7dc25c44a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Release files / CMDUI-0.2.0-py3-none-any.whl
| Download URL | CMDUI-0.2.0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4861fd3247bb435c169bac66dbe613f1b1837f7dfae07cfe90629bfdec696fc1
|
|
BLAKE2b-256 checksum How to use checksums |
34f6e0773b885cb0e47614d89ea6bcd5d195af90603ae1d46e95471909bcf8d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Security for CMDUI 0.2.0
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.