Python, Tkinter, PyDroid3, screen keyboard disappears after switching to another app and does not come back | Sololearn: Learn to code for FREE!

+17

Python, Tkinter, PyDroid3, screen keyboard disappears after switching to another app and does not come back

In the code https://code.sololearn.com/c6jp32jaCiu6/?ref=app I discovered a problem when running it on my Smartphone (Samsung Galaxy S8) in PyDroid3. After launching the code I can tap into the text-widget and the screen keyboard appears as usual. Then I switch to another app, e.g. my Internet-Browser in order to copy the text of a website into the clipboard. After this I switch back to PyDroid3 and paste the content of the clipboard into the text-widget by tapping the "paste"-button. Now I want to edit the copied text in the text widget. But when I tap into the text-widget, no screen-keyboard appears. Does anybody have a hint how to solve the problem? The only way I see at the moment would be to code an own screen keyboard in Tkinter but there should be a more easy solution...

2/15/2021 7:59:30 PM

Jan Markus

5 Answers

New Answer

+5

Slick Thank you for your reply! I think I have to relearn, switch to another GUI framework, and hope that these problems are not present e.g. in PyQt5. Or which GUI-framework would you recommend?

+3

Same problem man, it's definitley an issue though. It may even be with Pydroid itself. I was able to bring up the keyboard on other apps no problem, but you come back to pydroid and you basically need an external keyboard or to restart the app.

+3

PyQt5 is the reccomendation! Too fancy for me now, especially cause of the simplicity of tkinter. Plus, i actually like cli programs haha. But if you want user friendly and python together the Qt extension should be what you're looking for, and most likely will let you go elsewhere and come back to it w/ no problems.

+1

+1

Bro, I Recommend You to Code Tkinter on A PC!