summaryrefslogtreecommitdiff
path: root/gr-wxgui/src/python/scopesink2.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-wxgui/src/python/scopesink2.py')
-rw-r--r--gr-wxgui/src/python/scopesink2.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gr-wxgui/src/python/scopesink2.py b/gr-wxgui/src/python/scopesink2.py
index 5eee3efd59..4d9f33afcd 100644
--- a/gr-wxgui/src/python/scopesink2.py
+++ b/gr-wxgui/src/python/scopesink2.py
@@ -32,9 +32,8 @@ if style == 'nongl':
from scopesink_nongl import scope_sink_f, scope_sink_c
elif style == 'gl':
try:
- import wx
- wx.glcanvas.GLCanvas
- except AttributeError:
+ import wx.glcanvas
+ except ImportError:
raise RuntimeError("wxPython doesn't support glcanvas")
try: