Python + TKinter + OMXPlayer window on top

倾然丶 夕夏残阳落幕 提交于 2020-01-07 09:02:26

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!