Beispiel #1
0
    def __init__(self, line_names, callback, io_config_layout):
        super(PointSeriesController, self).__init__()
        self.layout = QtGui.QHBoxLayout()
        self.setLayout(self.layout)
        self.io_grid = IOGrid()

        # def add_line_controllers(self, line_names):
        for n in line_names:
            io_config_layout["groups"][0]["items"].append({
                "class":
                "button",
                "qtype":
                "check",
                "label":
                str(n),
                "name":
                "check_" + str(n),
                "clicked":
                callback,
                "args": [n]
            })
        self.params, self.io_config = self.io_grid.load_config(
            io_config_layout)
        self.layout.addWidget(self.io_grid)
Beispiel #2
0
 def setup_controller(self):
     self.controller = IOGrid()
     self.controller.load_config()