Esempio n. 1
0
		layout.addWidget(self.labels["nowstart"])
		self.youridLabel = QtGui.QLabel()
		layout.addWidget(self.youridLabel)
		layout.addStretch(1)
		panel5.setLayout(layout)
		return panel5

	def prepare(self):
		'''Prepare the final panel'''
		text = (I18nManager.getText("startupwizard.finished.yourid") % TorClient.getOwnId())
		self.youridLabel.setText(text)
		# TODO: If this is just a label, then it can't be selected and copied- should it be a disabled text field instead?

	def getButtonKeys(self):
		return ("back", "finish")
	def getButtonsEnabled(self):
		return (False, True)


if __name__ == "__main__":
	# Get ready to launch a Qt GUI
	Config.load()
	I18nManager.setLanguage()
	Config.registerSubscriber(I18nManager.instance())
	app = QtGui.QApplication([])

	win = StartupWizard()
	win.show()

	app.exec_()
Esempio n. 2
0
        layout.addWidget(self.youridLabel)
        layout.addStretch(1)
        panel5.setLayout(layout)
        return panel5

    def prepare(self):
        '''Prepare the final panel'''
        text = (I18nManager.getText("startupwizard.finished.yourid") %
                TorClient.getOwnId())
        self.youridLabel.setText(text)
        # TODO: If this is just a label, then it can't be selected and copied- should it be a disabled text field instead?

    def getButtonKeys(self):
        return ("back", "finish")

    def getButtonsEnabled(self):
        return (False, True)


if __name__ == "__main__":
    # Get ready to launch a Qt GUI
    Config.load()
    I18nManager.setLanguage()
    Config.registerSubscriber(I18nManager.instance())
    app = QtWidgets.QApplication([])

    win = StartupWizard()
    win.show()

    app.exec_()