Python Forum

Full Version: Make a GUI for a CLI package
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm wondering how one would go about writing a GUI for a CLI package? I've tried doing internet searches to see how it's done but I'm using wrong searches... nothing coming close to what I'm looking for. I've scratched my head a few times trying to think of how it is done but haven't made progress. I'm looking for some pointers on where to start. I don't think it'll make a difference but I only know GTK and tkinter.

Say, for a simple example, podlet - it's a package that turns a podman run command into a .container unit file for systemd.
ie, for the run command...
podman run --publish 5900:5900 --name my_container -v /home/server/data:/home/user/ container_image x11vnc -forever -create
Using podlet...
podlet run --publish 5900:5900 --name my_container -v /home/server/data:/home/user/ container_image x11vnc -forever -create
=>
[Container]
ContainerName=my_container
Exec=x11vnc -forever -create
Image=container_image
PublishPort=5900:5900
Volume=/home/server/my_container/data:/home/user/
I guess what I'm wondering is would I have to incorporate the podlet code into my code or can I somehow add the podlet package so that it's something that can be called. I'd imagine the latter is a can-o'-worms because of dependencies. What is the approach?

Thank you for any help!