wx python 在更新期间关闭屏幕绘制
wx python turn off screen paint during update
我有一个 wx python 应用程序,它需要以编程方式更新屏幕上的许多图像。这在 Unix 上工作正常,但在 Windows
上看起来像狗的早餐
有没有类似Excel的
Application.Screenupdating = False
这会在进程进行时关闭屏幕绘画吗?
您可以使用:
frame.Freeze()
.... do update
frame.Thaw()
参见:http://wxpython.org/Phoenix/docs/html/Window.html?highlight=freeze#Window.Freeze
我有一个 wx python 应用程序,它需要以编程方式更新屏幕上的许多图像。这在 Unix 上工作正常,但在 Windows
上看起来像狗的早餐有没有类似Excel的
Application.Screenupdating = False
这会在进程进行时关闭屏幕绘画吗?
您可以使用:
frame.Freeze()
.... do update
frame.Thaw()
参见:http://wxpython.org/Phoenix/docs/html/Window.html?highlight=freeze#Window.Freeze