tests update, added program version string
This commit is contained in:
parent
ae3e84e3d2
commit
8dae4fcad9
3 changed files with 26 additions and 4 deletions
|
@ -44,6 +44,7 @@ class MainWindow(QtGui.QMainWindow):
|
|||
self.menuSettings.addAction(self.actionNotifications)
|
||||
self.menuSettings.addAction(self.actionNetwork)
|
||||
self.menuAbout.addAction(self.actionAbout_program)
|
||||
self.actionAbout_program.triggered.connect(self.about_program)
|
||||
self.menubar.addAction(self.menuProfile.menuAction())
|
||||
self.menubar.addAction(self.menuSettings.menuAction())
|
||||
self.menubar.addAction(self.menuAbout.menuAction())
|
||||
|
@ -61,6 +62,13 @@ class MainWindow(QtGui.QMainWindow):
|
|||
self.actionSettings.setText(QtGui.QApplication.translate("MainWindow", "Settings", None, QtGui.QApplication.UnicodeUTF8))
|
||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||
|
||||
def about_program(self):
|
||||
import util
|
||||
msgBox = QtGui.QMessageBox()
|
||||
msgBox.setWindowTitle("About")
|
||||
msgBox.setText("Toxygen is pythonic Tox client. Version: " + util.program_version)
|
||||
msgBox.exec_()
|
||||
|
||||
def setup_right_bottom(self, Form):
|
||||
Form.setObjectName("right_bottom")
|
||||
Form.resize(500, 150)
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
|
||||
|
||||
program_version = '0.0.1 (alpha)'
|
||||
|
||||
|
||||
def log(data):
|
||||
with open("logs.log", "a") as fl:
|
||||
with open('logs.log', 'a') as fl:
|
||||
fl.write(str(data))
|
||||
|
||||
|
||||
def string_to_bin(tox_id):
|
||||
return tox_id.decode("hex")
|
||||
return tox_id.decode('hex')
|
||||
|
||||
|
||||
def bin_to_string(raw_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue