Esempio n. 1
0
class ResizeDialog(QtGui.QDialog):
    def __init__(self, parent=None):
        # Initialise the UI
        super(ResizeDialog, self).__init__(parent)
        self.ui = Ui_ResizeDialog()
        self.ui.setupUi(self)
        self.ui.button_auto.clicked.connect(self.on_button_auto_clicked)

    def on_button_auto_clicked(self):
        _, _, _, x, y, z = self.parent().display.voxels.get_bounding_box()
        self.ui.width.setValue(x)
        self.ui.height.setValue(y)
        self.ui.depth.setValue(z)
Esempio n. 2
0
class ResizeDialog(QtGui.QDialog):
    def __init__(self, parent=None):
        # Initialise the UI
        super(ResizeDialog, self).__init__(parent)
        self.ui = Ui_ResizeDialog()
        self.ui.setupUi(self)
        self.ui.button_auto.clicked.connect(self.on_button_auto_clicked)

    def on_button_auto_clicked(self):
        _,_,_,x,y,z = self.parent().display.voxels.get_bounding_box()
        self.ui.width.setValue(x)
        self.ui.height.setValue(y)
        self.ui.depth.setValue(z)
Esempio n. 3
0
 def __init__(self, parent=None):
     # Initialise the UI
     super(ResizeDialog, self).__init__(parent)
     self.ui = Ui_ResizeDialog()
     self.ui.setupUi(self)
     self.ui.button_auto.clicked.connect(self.on_button_auto_clicked)
Esempio n. 4
0
 def __init__(self, parent=None):
     # Initialise the UI
     super(ResizeDialog, self).__init__(parent)
     self.ui = Ui_ResizeDialog()
     self.ui.setupUi(self)
     self.ui.button_auto.clicked.connect(self.on_button_auto_clicked)