如何弹出最小化的wxPython窗口

时间:2021-10-16 20:40:44

I have a utility where I want it to pop up to the front of the screen from time to time to request user input.

我有一个实用程序,我希望它不时弹出到屏幕的前面,以请求用户输入。

(I know it is very annoying general behavior but I have good reasons in this case.)

(我知道这是非常烦人的一般行为,但在这种情况下我有充分的理由。)

I have found the RequestUserAttention method that can be used for a more pleasant request for input from the user but in my case I just want it to pop up a window.

我找到了RequestUserAttention方法,可用于更愉快的用户输入请求,但在我的情况下,我只是想让它弹出一个窗口。

Maybe even modal on top of all the other windows.

也许甚至莫代尔在所有其他窗口之上。

The platform here is XP if that makes any difference.

这里的平台是XP,如果这有任何区别。

1 个解决方案

#1


You really should think about your reasons again, but anyway:

你真的应该再考虑一下你的理由,但无论如何:

frame.Show()
frame.Raise() 
frame.Iconize(False)

should raise the frame.

应该提高框架。

#1


You really should think about your reasons again, but anyway:

你真的应该再考虑一下你的理由,但无论如何:

frame.Show()
frame.Raise() 
frame.Iconize(False)

should raise the frame.

应该提高框架。