From 6b9b1f762eacd6ad53727cf116d12a76d6e8b6b8 Mon Sep 17 00:00:00 2001 From: Balint Seeber <balint@ettus.com> Date: Fri, 18 Jan 2013 16:28:10 -0800 Subject: Added PaintDC to 'plotter_base' so WX GL sinks will work under Windows. Changed 'notebook' SetSelection (deprecated) to ChangeSelection. --- gr-wxgui/src/python/plotter/plotter_base.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gr-wxgui/src/python/plotter') diff --git a/gr-wxgui/src/python/plotter/plotter_base.py b/gr-wxgui/src/python/plotter/plotter_base.py index 41c94e5e00..f1cbaf3c7b 100644 --- a/gr-wxgui/src/python/plotter/plotter_base.py +++ b/gr-wxgui/src/python/plotter/plotter_base.py @@ -151,6 +151,8 @@ class plotter_base(wx.glcanvas.GLCanvas, common.mutex): Resize the view port if the width or height changed. Redraw the screen, calling the draw functions. """ + # create device context (needed on Windows, noop on X) + dc = wx.PaintDC(self) self.lock() self.SetCurrent() -- cgit v1.2.3