I wrote an application in tkinter which I want to run in fullscreen size for aesthetic reasons. And with fullscreen I mean full (!) fullscreen. I use the virtual keyboard "florence" as keyboard.
I saw this post where someone found a solution for automatically show the keyboard when you click on an tkinter-entry-widget.
I implemented this function in my code and it works as long as fullscreen-mode is not activated.
Problem: The florence keyboard is shown but not on very top but behind my fullscreen-tkinter-app.
I checked the settings of the keyboard, the error still exists even when the florence-settings "keep on top" and "always on top" are active.
This is a basic tkinter example code, which produces the "error":
from tkinter import*
import subprocess
root = Tk()
def toggleKeyboard(entry_widget_1):
p = subprocess.Popen(['florence show'], shell=True, stdout= subprocess.PIPE, stderr= subprocess.PIPE, universal_newlines=True)
if not "" == p.stderr.readline():
subprocess.Popen(['florence'], shell=True)
# example entry widget 1
entry_widget_1 = Entry(root)
entry_widget_1.pack()
# example entry widget 2
entry_widget_2 = Entry(root)
entry_widget_2.pack()
# bind toggleKeyboard function to entry-widget 1 to open florence
entry_widget_1.bind('<FocusIn>',toggleKeyboard)
# allow user to close app via escape button
def close(event):
root.destroy()
root.bind('<Escape>',close)
# resize app to full(!)-fullscreen
root.attributes("-fullscreen",True)
root.mainloop()