commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 03/03: Fix for #647 - GUI Tabs do not switc


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/03: Fix for #647 - GUI Tabs do not switch on WX GUI Scope sink channels on OSX
Date: Sun, 17 Aug 2014 22:03:11 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit fd2ec0b1eb5713124161da2934964769290eb2e4
Author: Ludovic LANGE <address@hidden>
Date:   Sat Aug 16 15:10:56 2014 +0200

    Fix for #647 - GUI Tabs do not switch on WX GUI Scope sink channels on OSX
    
    With this patch, the bug is not showing anymore. It was only tested by
    me on Mac OS X - not on Linux nor other platforms.
    The possible regressions introduced by fix should be limited to the
    notebook chooser forms only.
---
 gr-wxgui/python/wxgui/forms/forms.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-wxgui/python/wxgui/forms/forms.py 
b/gr-wxgui/python/wxgui/forms/forms.py
index db55472..f819f13 100644
--- a/gr-wxgui/python/wxgui/forms/forms.py
+++ b/gr-wxgui/python/wxgui/forms/forms.py
@@ -515,13 +515,13 @@ class notebook(_chooser_base):
                _chooser_base.__init__(self, **kwargs)
                assert len(pages) == len(self._choices)
                self._notebook = notebook
-               self._notebook.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self._handle)
+               self._notebook.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGING, self._handle)
                #add pages, setting the label on each tab
                for i, page in enumerate(pages):
                        self._notebook.AddPage(page, self._labels[i])
                self._add_widget(self._notebook)
 
-       def _handle(self, event): self[INT_KEY] = self._notebook.GetSelection()
+       def _handle(self, event): self[INT_KEY] = event.GetSelection()
        # SetSelection triggers a page change event (deprecated, breaks on 
Windows) and ChangeSelection does not
        def _update(self, i): self._notebook.ChangeSelection(i)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]