style = 'nongl'
if style == 'nongl':
- from scopesink_nongl import scope_sink_f, scope_sink_c
+ from scopesink_nongl import scope_sink_f, scope_sink_c, constellation_sink
elif style == 'gl':
try:
import wx.glcanvas
except ImportError:
raise RuntimeError("Unable to import OpenGL. Are Python wrappers for OpenGL installed?")
- from scopesink_gl import scope_sink_f, scope_sink_c
+ from scopesink_gl import scope_sink_f, scope_sink_c, constellation_sink
#backwards compadible wrapper (maybe only grc uses this)
class constellation_sink(scope_sink_c):
- def __init__(self, **kwargs):
- kwargs['xy_mode'] = True
- scope_sink_c.__init__(self, **kwargs)
+ def __init__(self, *args, **kwargs):
+ scope_sink_c.__init__(self, *args, **kwargs)
+ self.set_scope_xy_mode(True)
# ----------------------------------------------------------------
# Stand-alone test application