예제 #1
0
	def get_pri_path(self):
		signprikey_path = QtGui.QFileDialog.getOpenFileName(self, 'Open file', '.',"pub files (*.pub);;key files (*.key)")
		if signprikey_path:
			cur_path = QDir('.')
			signprikey_path = cur_path.relativeFilePath(signprikey_path)
			signprikey_path = unicode(signprikey_path,'utf-8')
			self.ui.SignPriKey.setText(signprikey_path)
예제 #2
0
	def get_sign_path(self):
		sign_path = QtGui.QFileDialog.getOpenFileName(self, 'Open file', '.',"sign files (*.sign)")
		if sign_path:
			cur_path = QDir('.')
			sign_path = cur_path.relativeFilePath(sign_path)
			sign_path = unicode(sign_path,'utf-8')
			self.ui.Signature.setText(sign_path)
예제 #3
0
	def get_pub_path(self):
		encpubkey_path = QtGui.QFileDialog.getOpenFileName(self, 'Open file', '.',"pub files (*.pub);;key files (*.key)")
		if encpubkey_path:
			cur_path = QDir('.')
			encpubkey_path = cur_path.relativeFilePath(encpubkey_path)
			encpubkey_path = unicode(encpubkey_path,'utf-8')
			self.ui.EncPubKey.setText(encpubkey_path)