def __init__(self): Widget.__init__(self) path = os.environ['GRIMA_ETC'] name = 'grima-subplot-widget' self.loadui(path, name) self.loaddb(path, name) self.__figure = Figure() self.__canvas = FigureCanvas(self.__figure) self.__toolbar = NavigationToolbar(self.__canvas, None) self.__canvas.show() self.figure = self.__figure widget = gtk.VBox() widget.show() widget.pack_start(self.__canvas) widget.pack_start(self.__toolbar, False, False) container = self.builder.get_object('container') container.add(widget) self.__filename = None self.__plotables = [] self.__chooser = SaveAs() self.__chooser.deletable = False self.__chooser.embedded = True self.__chooser.callback = self.__save
def __init__(self, *args, **kwargs): Widget.__init__(self, *args, **kwargs) path = os.environ['GRIMA_ETC'] name = 'grima-subplot-app' self.loadui(path, name) self.loaddb(path, name)
def __init__(self): Widget.__init__(self) path = os.environ['GRIMA_ETC'] name = 'grima-example-widget' self.loadui(path, name) self.loaddb(path, name)
def __init__(self): Widget.__init__(self) self.title = None self.xlimitsl = [0, 0] self.xlimitsr = [0, 0] self.ylimitsl = [0, 0] self.ylimitsr = [0, 0] self.xlabel = '' self.ylabel = '' self.overlay = True