diff options
author | Balint Seeber | 2013-04-11 19:49:46 -0700 |
---|---|---|
committer | Balint Seeber | 2013-04-11 19:49:46 -0700 |
commit | 5f0aaf3d5397675d6f87acd7ab20526ac1fb0d4e (patch) | |
tree | eb6e84e5443bdd967cfbd1b0990a0569411cf32c /gr-wxgui/src/python/histo_window.py | |
parent | 24e5572daefa0c3644bd5818582426a8bad8454b (diff) | |
download | gnuradio-5f0aaf3d5397675d6f87acd7ab20526ac1fb0d4e.tar.gz gnuradio-5f0aaf3d5397675d6f87acd7ab20526ac1fb0d4e.tar.bz2 gnuradio-5f0aaf3d5397675d6f87acd7ab20526ac1fb0d4e.zip |
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/histo_window.py')
-rw-r--r-- | gr-wxgui/src/python/histo_window.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gr-wxgui/src/python/histo_window.py b/gr-wxgui/src/python/histo_window.py index a1b520f9c..e87e97825 100644 --- a/gr-wxgui/src/python/histo_window.py +++ b/gr-wxgui/src/python/histo_window.py @@ -117,6 +117,7 @@ class histo_window(wx.Panel, pubsub.pubsub): wx.Panel.__init__(self, parent, style=wx.SIMPLE_BORDER) self.plotter = plotter.bar_plotter(self) self.plotter.SetSize(wx.Size(*size)) + self.plotter.SetSizeHints(*size) self.plotter.set_title(title) self.plotter.enable_point_label(True) self.plotter.enable_grid_lines(False) |