Exemplo n.º 1
0
    def __init__(self, parent=None):
        super(CurrencySetupWizardPage, self).__init__(parent)

        message = cbpos.tr.currency_(
            "Set up the currencies you will be using. You will be able to change them later also."
        )

        self.message = QtGui.QLabel(message)

        self.form = CurrenciesPage()

        layout = QtGui.QVBoxLayout()
        layout.setSpacing(10)

        layout.addWidget(self.message)
        layout.addWidget(self.form)

        self.setLayout(layout)
Exemplo n.º 2
0
    def __init__(self):
        super(CurrencyDialog, self).__init__()

        message = cbpos.tr.currency_(
            "Set up the currencies you will be using. You will be able to change them later also."
        )

        self.message = QtGui.QLabel(message)

        self.form = CurrenciesPage()

        buttonBox = QtGui.QDialogButtonBox()

        self.doneBtn = buttonBox.addButton(QtGui.QDialogButtonBox.Close)
        self.doneBtn.pressed.connect(self.onDoneButton)

        layout = QtGui.QVBoxLayout()
        layout.setSpacing(10)

        layout.addWidget(self.message)
        layout.addWidget(self.form)
        layout.addWidget(buttonBox)

        self.setLayout(layout)