Virtual keyboard for the Pi with auto-hide functionality
<p>I am using PyGObject to create an UI that will be run on a 7" official RPi touchscreen connected to a Pi 3 running Raspbian. As part of this interface, the UI will need an on-screen keyboard. I am aware of two virtual keyboard programs for the Pi: Matchbox Keyboard and Florence.</p>

<p>The problem is that I want to imitate the behavior of a smartphone keyboard as much as possible, but don't know how to do so. What I want to do is similar to <a href="https://raspberrypi.stackexchange.com/questions/6764/raspberry-pi-raspbian-web-kiosk-virtual-keyboard-solution">this</a>, except I want the keyboard to auto-hide and to be on top of the main window. How can this be done?</p>

<p>EDIT: I've tried both of these programs and haven't been able to figure out how to achieve this. I can't find an auto-popup option in Matchbox Keyboard, and some people report that it has this capability (<a href="https://blog.japi.net/simple-on-screen-keyboard-control-in-linux/" rel="nofollow noreferrer">here</a>), others say no (<a href="https://www.raspberrypi.org/forums/viewtopic.php?f=102&amp;t=131490" rel="nofollow noreferrer">here</a>). I assume that some Linux desktop managers support this feature, but not LXDE on the Pi.</p>

<p>Florence seems promising because it has an auto-hide option that sounds like it would do what I want, but when I selected it didn't seem to work.</p>