diff --git a/relational_gui.py b/relational_gui.py index d257045..a49508e 100755 --- a/relational_gui.py +++ b/relational_gui.py @@ -102,13 +102,12 @@ if __name__ == "__main__": app.setApplicationName('relational') ui = maingui.Ui_MainWindow() - Form = guihandler.relForm(ui) + form = guihandler.relForm(ui) + form.setStyleSheet("font: 12pt \"Dejavu Sans Bold\";"); + #form.setFont(QtGui.QFont("")) - # if os.name=='nt': - Form.setFont(QtGui.QFont("Dejavu Sans Bold")) - - ui.setupUi(Form) - Form.restore_settings() + ui.setupUi(form) + form.restore_settings() for i in range(len(files)): if not os.path.isfile(files[i]): @@ -119,9 +118,9 @@ if __name__ == "__main__": if defname.endswith(".csv"): # removes the extension defname = defname[:-4] print ('Loading file "%s" with name "%s"' % (files[i], defname)) - Form.loadRelation(files[i], defname) + form.loadRelation(files[i], defname) - Form.show() + form.show() sys.exit(app.exec_()) else: printver(False) diff --git a/relational_gui/rel_edit.py b/relational_gui/rel_edit.py index f08c5b2..8a087cc 100644 --- a/relational_gui/rel_edit.py +++ b/relational_gui/rel_edit.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'relational_gui/rel_edit.ui' # -# Created: Thu Feb 19 13:07:47 2015 +# Created: Mon Feb 23 15:16:57 2015 # by: PyQt5 UI code generator 5.3.2 # # WARNING! All changes made in this file will be lost! diff --git a/relational_gui/survey.py b/relational_gui/survey.py index f6add18..92df048 100644 --- a/relational_gui/survey.py +++ b/relational_gui/survey.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'relational_gui/survey.ui' # -# Created: Thu Feb 19 13:07:47 2015 +# Created: Mon Feb 23 15:16:57 2015 # by: PyQt5 UI code generator 5.3.2 # # WARNING! All changes made in this file will be lost!