How do I implement the equivalent of input() and print() in Kivy? #6
Replies: 0 comments 9 replies
-
Hi @EricTomaszewski , if my understanding is correct, you intend to link an additional terminal-based app to your existing GUI kivy app. Here are a few suggestions on the best approach:
|
Beta Was this translation helpful? Give feedback.
-
@kengoon: I think Eric is asking for the output to appear within the app, not on an external terminal. I assume that means writing to a Kivy label, rather than printing. |
Beta Was this translation helpful? Give feedback.
-
Hi All.
Kivy seems to be a good GUI because it can be wrapped also into a mobile environment.
And I tested it with pyinstaller to make it into a simple .exe for "very non-techy clients".
Nevertheless, I'm trying to get a very BASIC functionality - namely:
an equivalent of input() => which seems to be TextInput()
and an equivalent of print()... here the story seems a bit more complicated
Let's take "the simplest example of all" => this is myapp.py:
How can I get this app running in my simple Kivy GUI environment below please?
(which has an input field, share button and output field that currently displays whatever is in the input field after pressing share button)
Currently - integrating any input(), print() or time.sleep() causes the Kivy app to crash.
I checked the documentation and StackOverflow but could not find much but this post from 6 years ago which does not work when run in my VS Code Studio:
https://stackoverflow.com/questions/26265015/how-to-get-console-output-printed-using-kivy/26476526#26476526
Can you point me in the right direction please?
Beta Was this translation helpful? Give feedback.
All reactions