def __init__(self, *args, **kw): self._widget = None self._widget_args = (args, kw) if kw.get('create_widget', True): self.CreateWidget() BaseFigure.__init__(self)
def __init__(self, *args, **kw): # Make sure there is a native app and the timer is started # (also when embedded) app.Create() # Create gl widget self._widget = GlCanvas(self, *args, **kw) BaseFigure.__init__(self)
def __init__(self, parent, *args, **kwargs): self._widget = None self._widget_args = (parent, args, kwargs) if kwargs.get("create_widget", True): self.CreateWidget() # call original init AFTER we created the widget BaseFigure.__init__(self)
def __init__(self, *args, **kwargs): self._widget = None self._widget_args = (args, kwargs) if kwargs.get('create_widget', True): self.CreateWidget() # call original init AFTER we created the widget BaseFigure.__init__(self)
def __init__(self, parent, *args, **kwargs): # keep same documentation self.__doc__ = BaseFigure.__doc__ self._widget = None self._widget_args = (parent, args, kwargs) if kwargs.get('create_widget', True): self.CreateWidget() # call original init AFTER we created the widget BaseFigure.__init__(self)
def __init__(self, parent, *args, **kwargs): # Make sure there is a native app and the timer is started # (also when embedded) app.Create() # create widget self._widget = GLWidget(self, parent, *args, **kwargs) # call original init AFTER we created the widget BaseFigure.__init__(self)