Exemplo n.º 1
0
    def __init__(self):
        super().__init__()

        box = gui.widgetBox(self.controlArea, "Map grid")

        form = QWidget()
        formlayout = QFormLayout()
        form.setLayout(formlayout)
        box.layout().addWidget(form)

        self.le1 = lineEditIntOrNone(box,
                                     self,
                                     "xpoints",
                                     callback=self.le1_changed)
        formlayout.addRow("X dimension", self.le1)
        self.le3 = lineEditIntOrNone(box,
                                     self,
                                     "ypoints",
                                     callback=self.le3_changed)
        formlayout.addRow("Y dimension", self.le3)

        self.data = None
        self.set_data(self.data)  # show warning

        gui.auto_commit(self.controlArea, self, "autocommit", "Send Data")
Exemplo n.º 2
0
    def __init__(self):
        super().__init__()

        box = gui.widgetBox(self.controlArea, "Map grid")

        form = QWidget()
        formlayout = QFormLayout()
        form.setLayout(formlayout)
        box.layout().addWidget(form)

        self.le1 = lineEditIntOrNone(box, self, "xpoints", callback=self.le1_changed)
        formlayout.addRow("X dimension", self.le1)
        self.le3 = lineEditIntOrNone(box, self, "ypoints", callback=self.le3_changed)
        formlayout.addRow("Y dimension", self.le3)

        self.data = None
        self.set_data(self.data)  # show warning

        gui.auto_commit(self.controlArea, self, "autocommit", "Send Data")
Exemplo n.º 3
0
    def __init__(self):
        super().__init__()

        box = gui.widgetBox(self.controlArea, "Map grid")

        self.le1 = lineEditIntOrNone(box,
                                     self,
                                     "xpoints",
                                     label="X dimension",
                                     labelWidth=80,
                                     orientation=Qt.Horizontal,
                                     callback=self.le1_changed)
        self.le3 = lineEditIntOrNone(box,
                                     self,
                                     "ypoints",
                                     label="Y dimension",
                                     labelWidth=80,
                                     orientation=Qt.Horizontal,
                                     callback=self.le3_changed)

        self.data = None
        self.set_data(self.data)  # show warning

        gui.auto_commit(self.controlArea, self, "autocommit", "Send Data")