How do I raise a window that is minimized or covered with PyGObject?

我的未来我决定 提交于 2019-12-05 09:26:46

As explained in this post, there are two options:

Raise the window temporarily (probably what you're looking for):

def raise_window(widget, w2):
    w2.present()

Raise the window permanently (or until explicitly changed by configuration):

def raise_window(widget, w2):
    w2.set_keep_above(True)

present didn't work for me for a temporary raise, but this did:

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