Question:
I am making a GUI code. In my code there are some blanks to fill and then the user will get output. But when I try to fill those blanks the keyboard don’t appear. Is there any solution to this
Replit Profile: https://replit.com/@anita20062008
KAlexK
February 11, 2024, 6:28am
2
Hey, @anita20062008 welcome to the forums!
Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!
Also see this guide on how to share your code:
To share your code with others, you can simply link to your repl or paste and format the code into your post!
Linking to a repl
The easiest way to share your code is by linking to your repl. You can find the link by clicking on your repl title, clicking on Cover page, and clicking the button to copy the URL.
NOTE: only share repl join links or use the invite button with people you trust!
Sharing short code samples
Share a snippet of your code by wrapping it in backti…
Hi @anita20062008 , welcome to the forums!
This isn’t Replit’s fault - it’s actually because GUI modules like tkinter aren’t supposed to be ised on mobile.
However, there is a workaround for this in Python:
Another solution is to create a virtual keyboard, not as nice as the native iPhone keyboard but does the job
import tkinter as tk
def press(key):
if key == "Space":
key = " "
elif key == "Back":
current_text = name_entry.get()
name_entry.delete(0, tk.END)
name_entry.insert(0, current_text[:-1])
return
elif key == "Enter":
ask_name_and_greet()
return
current_text = name_entry.get()
name_entry.delete(0, tk.END)
nam…
Hope this helps!
2 Likes
Can you make this for .grid() method please
2 Likes