Re: FigureCanvasWxAgg not redrawn with wxpython 4.0.1 on Ubuntu 17.10
Riccardo Borgani <[email protected]> Thu, 8 Feb 2018 23:29:00 -0800 (PST)
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Dietmar, On Thursday, February 8, 2018 at 7:54:57 PM UTC+1, Dietmar Schwertberger wrote: > > Unfortunately I don't have a VM with Ubuntu 17. Is this the most recent version with Wayland instead of X? > Correct, with 17.10 Ubuntu started shipping Wayland instead of X by default. If you change your timer to call not only self.canvas.draw, but also > self.Refresh(), would it work then? > Yes. Calling only self.canvas.draw or only self.Refresh does not work, but calling both works. When you hide and show the window, will it redraw with the old image or > will it then show the new one? > Any modification of the window works (a part from a simple drag): minimize, maximize, resize all will show the new image. When calling the draw() method of the canvas, it will use wx.ClientDC to > update the wx Window content. > Refresh() on the other hand would use the normal EVT_PAINT handler with > a wx.PaintDC. > Recently Robin has already expressed concerns that the ClientDC could > cause problems on more modern desktop architectures. > So you think I should always call Refresh on the whole frame when I update the plot? Some of my plots will update several times per second, would this slow the gui down? Thanks a lot! -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.