问题
I own a raspberry pi 2 and i start learning Python. I would like to do something very basic : the window of my Python program on top of omxplayer window like a notification system.
I have been able to make an "always on top" window with TKinter but when i launch omxplayer my window is no more on top.
I would apreciate some help !
Thanks
回答1:
Try:
from Tkinter import *
root = Tk()
root.wm_attributes('-topmost', 1)
Source: http://tkinter.unpythonic.net/wiki/always_on_top
回答2:
My solution is to used Hello_font from the hello_pi examples on the raspberry pi.
来源:https://stackoverflow.com/questions/34031727/python-tkinter-omxplayer-window-on-top