Re: Drawing outside of an event handler wx.EVT_PAINT
Tim Roberts <[email protected]> Wed, 9 Dec 2020 10:47:33 -0800
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Organization | Providenza & Boekelheide, Inc. |
| Message-ID | <[email protected]> |
Dietmar Schwertberger wrote: > Some addition from the doc: > Note that repainting doesn’t happen immediately but only during the > next event loop iteration, if you need to update the window > immediately you should use |Update| > <https://wxpython.org/Phoenix/docs/html/wx.Window.html?highlight=refresh#wx.Window.Update> > instead. It depends on the application's architecture, of course, but using Update eliminates the efficiency gains you get by coalescing Refresh requests. Unless your event loop is tied up for long period, Refresh is usually the right answer. -- Tim Roberts, [email protected] Providenza & Boekelheide, Inc. -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/9302f1b5-bd60-32d7-70b2-1afa498d0327%40probo.com.
smime.p7s
(application/pkcs7-signature, 3.3 KB) - not displayed