예제 #1
0
파일: grab.py 프로젝트: agateau/annot8
    def setupDialog(self):
        margin = 24

        self.widget = QWidget(self)
        self.ui = Ui_GrabDialog()
        self.ui.setupUi(self.widget)
        self.setMainWidget(self.widget)
        self.widget.layout().setContentsMargins(margin, margin / 2, margin, margin)
        self.showButtonSeparator(True)
        self.setButtonText(KDialog.Ok, self.tr("Grab"))
예제 #2
0
파일: grab.py 프로젝트: agateau/annot8
class GrabDialog(KDialog):
    def __init__(self):
        KDialog.__init__(self)

        self.pixmap = None
        self.setupDialog()
        self.restoreConfig()

    def restoreConfig(self):
        self.ui.delaySpinBox.setValue(5)

    def setupDialog(self):
        margin = 24

        self.widget = QWidget(self)
        self.ui = Ui_GrabDialog()
        self.ui.setupUi(self.widget)
        self.setMainWidget(self.widget)
        self.widget.layout().setContentsMargins(margin, margin / 2, margin, margin)
        self.showButtonSeparator(True)
        self.setButtonText(KDialog.Ok, self.tr("Grab"))