Using Linux On Screen Keyboard while on a full-screen tkinter window

125 Views Asked by At

I have this tkinter window that is on fullscreen using root.attrib('-fullscreen', TRUE) and its currently running on debian os but I also want to access the on screen keyboard of the linux itself but it keeps on getting under the tkinter window when summoned. Anyone could think about the solution? Thanks

Tried to use root.geometry and it works, the on-screen keyboard pop-out since the tkinter window is not on fullscreen but i like it better on full screen for a cleaner look.

Here's the trimmed down version of the code:

import tkinter as tk

root = tk.Tk()
root.title('OSK')
root.attributes('-fullscreen', True)

label = tk.Label(text="Fullscreen Window", font=("Helvetica", 20, "bold"))
label.pack(fill="x")


f1=tk.LabelFrame(root, text='Entries')
f1.place(x=0, rely=0.1, relwidth=1)

label1=tk.Label(f1, text='OSK Entry:',font=('Helvetica',18, 'bold'))
label1.grid(padx=10, pady=5)

entry=tk.Entry(f1, width=25, font=('Arial', 15, 'bold'))
entry.grid(column=1, padx=10, pady=10)
entry.focus_set()

ext=tk.Button(text='Exit', font=('Helvetica',15, 'bold'), bg='crimson', width=12, command=root.destroy)
ext.place(relx=.85, rely= .9)
root.mainloop()
0

There are 0 best solutions below