loginscreen update

This commit is contained in:
ingvar1995 2016-02-17 21:19:45 +03:00
parent f6222eb098
commit 6b9d7d7870
3 changed files with 13 additions and 5 deletions

View File

@ -23,9 +23,9 @@ class LoginScreen(object):
self.load_profile = QtGui.QPushButton(Form) self.load_profile = QtGui.QPushButton(Form)
self.load_profile.setGeometry(QtCore.QRect(220, 150, 161, 27)) self.load_profile.setGeometry(QtCore.QRect(220, 150, 161, 27))
self.load_profile.setObjectName("load_profile") self.load_profile.setObjectName("load_profile")
self.default_2 = QtGui.QCheckBox(Form) self.default = QtGui.QCheckBox(Form)
self.default_2.setGeometry(QtCore.QRect(220, 110, 131, 22)) self.default.setGeometry(QtCore.QRect(220, 110, 131, 22))
self.default_2.setObjectName("default_2") self.default.setObjectName("default")
self.groupBox = QtGui.QGroupBox(Form) self.groupBox = QtGui.QGroupBox(Form)
self.groupBox.setGeometry(QtCore.QRect(210, 40, 181, 151)) self.groupBox.setGeometry(QtCore.QRect(210, 40, 181, 151))
self.groupBox.setObjectName("groupBox") self.groupBox.setObjectName("groupBox")
@ -36,11 +36,19 @@ class LoginScreen(object):
self.groupBox_2.setGeometry(QtCore.QRect(10, 40, 191, 151)) self.groupBox_2.setGeometry(QtCore.QRect(10, 40, 191, 151))
self.groupBox_2.setObjectName("groupBox_2") self.groupBox_2.setObjectName("groupBox_2")
self.toxygen = QtGui.QLabel(Form) self.toxygen = QtGui.QLabel(Form)
self.groupBox.raise_()
self.groupBox_2.raise_()
self.comboBox.raise_()
self.default.raise_()
self.load_profile.raise_()
self.new_name.raise_()
self.new_profile.raise_()
self.toxygen.setGeometry(QtCore.QRect(160, 10, 81, 21)) self.toxygen.setGeometry(QtCore.QRect(160, 10, 81, 21))
font = QtGui.QFont() font = QtGui.QFont()
font.setFamily("Impact") font.setFamily("Impact")
font.setPointSize(16) font.setPointSize(16)
self.toxygen.setFont(font) self.toxygen.setFont(font)
QtGui.QApplication.setStyle(QtGui.QStyleFactory.create('Plastique'))
self.toxygen.setObjectName("toxygen") self.toxygen.setObjectName("toxygen")
self.retranslateUi(Form) self.retranslateUi(Form)
@ -51,7 +59,7 @@ class LoginScreen(object):
self.new_profile.setText(QtGui.QApplication.translate("Form", "Create", None, QtGui.QApplication.UnicodeUTF8)) self.new_profile.setText(QtGui.QApplication.translate("Form", "Create", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("Form", "Profile name:", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("Form", "Profile name:", None, QtGui.QApplication.UnicodeUTF8))
self.load_profile.setText(QtGui.QApplication.translate("Form", "Load profile", None, QtGui.QApplication.UnicodeUTF8)) self.load_profile.setText(QtGui.QApplication.translate("Form", "Load profile", None, QtGui.QApplication.UnicodeUTF8))
self.default_2.setText(QtGui.QApplication.translate("Form", "Use as default", None, QtGui.QApplication.UnicodeUTF8)) self.default.setText(QtGui.QApplication.translate("Form", "Use as default", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("Form", "Load existing profile", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox.setTitle(QtGui.QApplication.translate("Form", "Load existing profile", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox_2.setTitle(QtGui.QApplication.translate("Form", "Create new profile", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_2.setTitle(QtGui.QApplication.translate("Form", "Create new profile", None, QtGui.QApplication.UnicodeUTF8))
self.toxygen.setText(QtGui.QApplication.translate("Form", "toxygen", None, QtGui.QApplication.UnicodeUTF8)) self.toxygen.setText(QtGui.QApplication.translate("Form", "toxygen", None, QtGui.QApplication.UnicodeUTF8))

0
src/mainscreen.py Normal file
View File

View File

@ -36,7 +36,7 @@ class Tox(object):
print temp print temp
self.libtoxcore = CDLL(temp + 'libtoxcore.so') self.libtoxcore = CDLL(temp + 'libtoxcore.so')
elif system() == 'Windows': elif system() == 'Windows':
self.libtoxcore = CDLL('/libs/libtox.dll') self.libtoxcore = CDLL('libs/libtox.dll')
print self.libtoxcore.__dict__ print self.libtoxcore.__dict__
self.libtoxcore.tox_options_new.restype = POINTER(ToxOptions) self.libtoxcore.tox_options_new.restype = POINTER(ToxOptions)
# TODO: load from settings # TODO: load from settings