From 4b6960b7bec0b26b57ee95c5c1d72738f74c1c50 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Sun, 5 Jul 2009 22:26:51 +0000 Subject: [PATCH] Font is set only on windows git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@206 014f5005-505e-4b48-8d0a-63407b615a7c --- CHANGELOG | 5 ++++- relational_gui.py | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 4d89646..155ce3f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -87,4 +87,7 @@ - Implemented swap_rename_projection general optimization - Replaced old relational algebra to python compiler with new one based on the new tokenizer/parser (Rev 188) - Code refactory to move the new parser into parser.py out of optimizer.py, that will still be compatible (Rev 190) -- Selection can now accept expressions with parenthesis \ No newline at end of file +- Selection can now accept expressions with parenthesis + +0.11 +- Font is set only on windows \ No newline at end of file diff --git a/relational_gui.py b/relational_gui.py index 3422df8..5f8cdc5 100755 --- a/relational_gui.py +++ b/relational_gui.py @@ -20,12 +20,13 @@ # author Salvo "LtWorf" Tomaselli import sys +import os import sip from PyQt4 import QtCore, QtGui from relational_gui import maingui, about from relational import relation, parser -version="0.10" +version="0.11" about.version=version if __name__ == "__main__": @@ -42,7 +43,8 @@ if __name__ == "__main__": app = QtGui.QApplication(sys.argv) Form = QtGui.QWidget() - Form.setFont(QtGui.QFont("Dejavu Sans Bold")) + if os.name=='nt': + Form.setFont(QtGui.QFont("Dejavu Sans Bold")) ui = maingui.Ui_Form() ui.setupUi(Form)