如何居中 wx.BusyInfo() - wxpython?
查看API,似乎没有办法像其他弹出模式一样使用 Center() 将 wx.BusyInfo 消息居中到屏幕中心。
有没有办法将 wx.BusyInfo() 居中?
Looking at the API there doesn't seem to be a way to center a wx.BusyInfo message to the center of the screen like with other pop up modals by using Center().
Is there a way to center wx.BusyInfo()?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,不是使用wx.BusyInfo(尽管默认情况下它应该已经居中......您是否尝试过不为wx.BusyInfo提供父窗口?)。
或者,您可能想尝试 wx.lib.agw.PyBusyInfo:如果它不能完全满足您的需要,您可以随时修改它以满足您的需求(它是纯 Python)。
希望这有帮助。
安德里亚.
not with wx.BusyInfo, as far as I know (although it should be already centered by default... have you tried not giving a parent window to the wx.BusyInfo?).
Alternatively, you may want to try wx.lib.agw.PyBusyInfo instead: if it doesn't do exactly what you need, you can always hack it to suit your needs (it's pure Python).
Hope this helps.
Andrea.
有点晚了:但是您可以通过指定父窗口将 busyInfo 窗口居中。它将以父级为中心,否则它将以屏幕为中心。
Little late: but you can center a busyInfo window by specifying a parent. It will center on the parent, otherwise it will center on the screen.