diff options
author | Balint Seeber <balint@ettus.com> | 2013-04-11 19:49:46 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-06-22 09:05:31 -0700 |
commit | bea6d506a1363af421d58a327ea015c53fb0db0a (patch) | |
tree | 1000109fdbe9fef521f9f8328e8cef62c6fd1d8f /gr-wxgui/src/python/scope_window.py | |
parent | c1e91f0200a58a6cb24d1de9422f1a6e2483fc2c (diff) |
wxgui: Fixes to solve issues using GL sinks on OS X
plotter/plotter_base.py:
* Create explicit OpenGL context, check if window is shown before
realising context & only create PaintDC is paint triggered by WM
message (OS paint event)
* Added SetSizeHints to WX sink windows so sizing occurs correctly
Diffstat (limited to 'gr-wxgui/src/python/scope_window.py')
-rw-r--r-- | gr-wxgui/src/python/scope_window.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gr-wxgui/src/python/scope_window.py b/gr-wxgui/src/python/scope_window.py index dc90a60459..fa79a986e9 100644 --- a/gr-wxgui/src/python/scope_window.py +++ b/gr-wxgui/src/python/scope_window.py @@ -492,6 +492,7 @@ class scope_window(wx.Panel, pubsub.pubsub): wx.Panel.__init__(self, parent, style=wx.SIMPLE_BORDER) self.plotter = plotter.channel_plotter(self) self.plotter.SetSize(wx.Size(*size)) + self.plotter.SetSizeHints(*size) self.plotter.set_title(title) self.plotter.enable_legend(True) self.plotter.enable_point_label(True) |