简体   繁体   English

Python + TKinter + OMXPlayer窗口位于顶部

[英]Python + TKinter + OMXPlayer window on top

I own a raspberry pi 2 and i start learning Python. 我拥有树莓派2,开始学习Python。 I would like to do something very basic : the window of my Python program on top of omxplayer window like a notification system. 我想做一些非常基本的事情:在omxplayer窗口顶部的Python程序窗口,如通知系统。

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. 我已经可以使用TKinter制作“始终位于顶部”窗口,但是当我启动omxplayer时,我的窗口不再位于顶部。

I would apreciate some help ! 我会提供一些帮助!

Thanks 谢谢

Try : 尝试

from Tkinter import *
root = Tk()
root.wm_attributes('-topmost', 1)

Source: http://tkinter.unpythonic.net/wiki/always_on_top 资料来源: http : //tkinter.unpythonic.net/wiki/always_on_top

我的解决方案是在树莓派上使用hello_pi示例中的Hello_font。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM