diff --git a/windows/input.py b/windows/input.py new file mode 100644 index 0000000..e8c30a0 --- /dev/null +++ b/windows/input.py @@ -0,0 +1,59 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# coding=UTF-8 +# Relational +# Copyright (C) 2008 Salvo "LtWorf" Tomaselli +# +# Relation is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# author Salvo "LtWorf" Tomaselli +from distutils.core import setup +import py2exe +#setup(console=['relational_gui.pyw']) +#setup(windows=['relational_gui.py']) +setup(windows=[{"script": "relational_gui.py","icon_resources": [(0, "favicon.ico")]}]) + +import sys +import sip +from PyQt4 import QtCore, QtGui +from relational_gui import maingui, about +from relational import relation, parser + + +version="0.10" +about.version=version + +if __name__ == "__main__": + if len (sys.argv) > 1 and sys.argv[1] == "-v": + print version + sys.exit(0) + + try: + import psyco + psyco.full() + except: + pass + + app = QtGui.QApplication(sys.argv) + Form = QtGui.QWidget() + + + Form.setFont(QtGui.QFont("Dejavu Sans Bold")) + + + ui = maingui.Ui_Form() + ui.setupUi(Form) + Form.show() + + sys.exit(app.exec_()) diff --git a/windows/wiki exe.txt b/windows/wiki exe.txt new file mode 100644 index 0000000..07bafe1 --- /dev/null +++ b/windows/wiki exe.txt @@ -0,0 +1,29 @@ +Poi fate una copia del file (.py) ke volete trasformare in exe, mettendo il tutto nella stessa cartella o sul desktop, +chiamate la copia "input.py", apritela con l'IDLE e sopra al codice sorgente del vostro prog. ci scrivete: + +from distutils.core import setup +import py2exe +setup(console=['nomefile.py']) + +meglio setup windows) ecc + + +*nota: a "nomefile" dovete scrivere esattamente il nome del file che avete copiato e rinominato (non vorrei che scriveste per sbaglio input.py) +ricordate anche di mettere le stesse maiuscole e minuscole. +Ora aprite "Esegui..." trascinateci il file input.py dentro, +poi a destra dell'indirizzo di input.py (fuori le virgolette), digitate uno spazio e poi py2exe, +cliccate su "OK" dopo ke vi appariranno molte stringhe, poi si aprirà il vostro prog. (tanto per farvelo provare) potete anke kiuderlo, +ecco comparse 2 cartelle nello stesso posto in cui avevate messo i file in python, +la cartella di nome build potete cancellarla, l'altra (dist) rinominatela perchè contiene il vostro programa in formato EXE,(ricordate che tutti i file nella cartella dist sono importanti), + dopo fatto tutto questo, potete cancellare il file input.py ormai inutile. + +NB +nel nostro caso dopo la scritta py2exe aggiungere --includes sip se nn è stato +aggiunto prima + +modificare l'estensioen in .pyw per eliminare la concoe sul retro + +python 2.5, qt 4.x, pyqt per 2.5, py2exe + + +icona http://www.chami.com/html-kit/services/favicon/ \ No newline at end of file