# HG changeset patch # User Miguel Ángel Bárcena Rodríguez # Date 1293908942 -3600 # Node ID d9e718bdee417ba3035bef91135acca28625fe86 # Parent ff04584f66e44b0f6a7e5f3f1c28058333f98c7f pyArq-Presupuestos to pyArq-Presupuestos.py diff -r ff04584f66e4 -r d9e718bdee41 pyArq-Presupuestos --- a/pyArq-Presupuestos Sat Jan 01 19:50:30 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -## File presupuestos.py -## This file is part of pyArq-Presupuestos. -## -## Copyright (C) 2010 Miguel Ángel Bárcena Rodríguez -## -## -## pyArq-Presupuestos 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. -## -## pyArq-Presupuestos 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 . - -def _translate(): - """def translate() - - Translates the program using gettext module - """ - _app = "pyArq-Presupuestos" - _dir = globalVars.path["APPDATA"] + "/mo/" - gettext.install(_app, _dir, unicode=1) - -def _run_gui(): - """def _run_gui - - Shows main window and starts the GTK+ event processing loop. - """ - _window = gui.MainWindow() - -# Run pyArq-Presupuestos -if __name__ == "__main__": - # Modules - import gettext - import sys - from Generic import globalVars - # take path to find mo file - _path = sys.path[0] - globalVars.path["APPDATA"]= _path - _translate() - from Gtk import gui - _run_gui() diff -r ff04584f66e4 -r d9e718bdee41 pyArq-Presupuestos.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pyArq-Presupuestos.py Sat Jan 01 20:09:02 2011 +0100 @@ -0,0 +1,49 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +## File presupuestos.py +## This file is part of pyArq-Presupuestos. +## +## Copyright (C) 2010 Miguel Ángel Bárcena Rodríguez +## +## +## pyArq-Presupuestos 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. +## +## pyArq-Presupuestos 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 . + +def _translate(): + """def translate() + + Translates the program using gettext module + """ + _app = "pyArq-Presupuestos" + _dir = globalVars.path["APPDATA"] + "/mo/" + gettext.install(_app, _dir, unicode=1) + +def _run_gui(): + """def _run_gui + + Shows main window and starts the GTK+ event processing loop. + """ + _window = gui.MainWindow() + +# Run pyArq-Presupuestos +if __name__ == "__main__": + # Modules + import gettext + import sys + from Generic import globalVars + # take path to find mo file + _path = sys.path[0] + globalVars.path["APPDATA"]= _path + _translate() + from Gtk import gui + _run_gui()