开发者

Preventing New Windows from Capturing Focus wxPython

开发者 https://www.devze.com 2023-02-13 02:05 出处:网络
How do I make a newly created window in 开发者_Python百科wxPython not take focus? I\'d like to be able to create a new window, without focus jumping to it. I\'ve never tried it, but I\'ve heard you ca

How do I make a newly created window in 开发者_Python百科wxPython not take focus? I'd like to be able to create a new window, without focus jumping to it.


I've never tried it, but I've heard you can do

window.Disable()
window.Show()
window.Enable()


That seems a little counter-intuitive. However, you can also simulate this by creating and showing the second frame and then calling Raise() on the original frame.

0

精彩评论

暂无评论...
验证码 换一张
取 消