tests + profile.py
This commit is contained in:
parent
3ab7794d17
commit
14dd46b716
6 changed files with 78 additions and 22 deletions
20
src/main.py
20
src/main.py
|
@ -0,0 +1,20 @@
|
|||
from loginscreen import LoginScreen
|
||||
from settings import Settings
|
||||
import sys
|
||||
from PySide import QtCore, QtGui
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = QtGui.QApplication(sys.argv)
|
||||
settings = Settings()
|
||||
if not settings['auto_profile']:
|
||||
# show login screen if default profile not found
|
||||
ls = LoginScreen()
|
||||
win = QtGui.QMainWindow()
|
||||
ls.setupUi(win)
|
||||
|
||||
ls.update_select(['tox_save'])
|
||||
win.show()
|
||||
app.connect(app, QtCore.SIGNAL("lastWindowClosed()"), app, QtCore.SLOT("quit()"))
|
||||
app.exec_()
|
||||
# TODO: get result from loginscreen and open mainscreen
|
Loading…
Add table
Add a link
Reference in a new issue