summaryrefslogtreecommitdiff
path: root/gr-wxgui/src
diff options
context:
space:
mode:
authorJohnathan Corgan2009-10-12 19:28:30 -0700
committerJohnathan Corgan2009-10-12 19:28:30 -0700
commit068c84168c35858197b18835ade10c8cebc180ae (patch)
treeb671fea77f518671591d1855465cadea15bf825d /gr-wxgui/src
parent4df83569c130c1f4fe2aba3e1b5dd1419272f22f (diff)
parente9e2ce03af5fb68e168be4e68ef4183a7eb775d5 (diff)
downloadgnuradio-068c84168c35858197b18835ade10c8cebc180ae.tar.gz
gnuradio-068c84168c35858197b18835ade10c8cebc180ae.tar.bz2
gnuradio-068c84168c35858197b18835ade10c8cebc180ae.zip
Merge branch 'fix/wxgui' of git@gnuradio.org:jblum
* 'fix/wxgui' of git@gnuradio.org:jblum: fix so all handlers get called on event
Diffstat (limited to 'gr-wxgui/src')
-rw-r--r--gr-wxgui/src/python/common.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gr-wxgui/src/python/common.py b/gr-wxgui/src/python/common.py
index fa11b3152..a75f6810d 100644
--- a/gr-wxgui/src/python/common.py
+++ b/gr-wxgui/src/python/common.py
@@ -1,5 +1,5 @@
#
-# Copyright 2008 Free Software Foundation, Inc.
+# Copyright 2008, 2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -89,7 +89,10 @@ class wxgui_hb(object):
my_win = parent
#call the handler, the arg is shown or not
def handler_factory(my_win, my_handler):
- return lambda *args: my_handler(is_wx_window_visible(my_win))
+ def callback(evt):
+ my_handler(is_wx_window_visible(my_win))
+ evt.Skip() #skip so all bound handlers are called
+ return callback
handler = handler_factory(win, handler)
#bind the handler to all the parent notebooks
win.Bind(wx.EVT_UPDATE_UI, handler)