Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GUI like Tkinter with PyAppp, possible? #59

Unanswered
allomorphy asked this question in Q&A
Discussion options

Thank you @ofek
We are super keen to try this out.
I am wondering if anyone has successfully PyApp'ed a GUI?

Warm wishes
Eric

You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

I'm not familiar with GUIs but I would have assumed it's the same process, no?

You must be logged in to vote
1 reply
Comment options

Me neither, but thanks Ofek. When I get there, I will let you know how it goes!

Comment options

It actually works pretty great! I put together a very simple PyQt6 app here and then used the following steps with pyapp:

  • Download the latest version as described in the how-to
  • Create a requirements.txt pointing at pip installation from git, e.g., via
    echo 'git+https://github.com/trappitsch/qtcowsay' > requirements.txt
  • Set the following environment variables
    Option Value
    PYAPP_PROJECT_NAME qtcowsay
    PYAPP_PROJECT_VERSION 0.0.2
    PYAPP_PROJECT_DEPENDENCY_FILE ./requirements.txt
    PYAPP_EXEC_SPEC qtcowsay:run

Then simply cargo build --release and the GUI should start.

Just my first test, still experimenting with local setup, isolation, and some nicer entry into the module... (the __init__.py is currently kind of ugly and just runs the app upon import...).

Hope this helps!

Updated: see comment below

You must be logged in to vote
0 replies
Comment options

I played a bit more and got the local installation to work and updated the repo mentioned above. There's more info in the README on the repo site.

I also updated the project a bit, sorry. Will update above instructions in a second to represent the changes.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /