89 a program to manage file transfers between a computer and a collection
92 Copyright (C) 2010-2012 Georges Khaznadar <georgesk@ofset.org>
94 This program is free software: you can redistribute it and/or modify
95 it under the terms of the GNU General Public License as published by
96 the Free Software Foundation, either version 3 of the License, or
97 (at your option) any later version.
99 This program is distributed in the hope that it will be useful,
100 but WITHOUT ANY WARRANTY; without even the implied warranty of
101 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
102 GNU General Public License for more details.
104 You should have received a copy of the GNU General Public License
105 along with this program. If not, see <http://www.gnu.org/licenses/>.
107 licence[
'en']=licenceEn
110 scolasync version %s :
112 un programme pour gérer des transferts de fichiers entre un
113 ordinateur et une collection de clés USB.
115 Copyright (C) 2010-2012 Georges Khaznadar <georgesk@ofset.org>
117 Ce projet est un logiciel libre : vous pouvez le redistribuer, le
118 modifier selon les terme de la GPL (GNU Public License) dans les
119 termes de la Free Software Foundation concernant la version 3 ou
120 plus de la dite licence.
122 Ce programme est fait avec l'espoir qu'il sera utile mais SANS
123 AUCUNE GARANTIE. Lisez la licence pour plus de détails.
125 <http://www.gnu.org/licenses/>.
127 licence[
'fr']=licenceFr
130 import getopt, os, sys
134 sip.setapi(
'QVariant', 1)
148 def run(debugger=False, callback=lambda x:
print(x)):
150 from dbus.mainloop.qt
import DBusQtMainLoop
151 DBusQtMainLoop(set_as_default=
True)
153 app = QApplication(sys.argv)
155 locale =
"%s" %QLocale.system().name()
156 qtTranslator = QTranslator()
157 if qtTranslator.load(
"qt_" + locale,
"/usr/share/qt4/translations"):
159 app.installTranslator(qtTranslator)
160 appTranslator = QTranslator()
161 for path
in [
"/usr/share/scolasync",
"."]:
162 langdir=os.path.join(path,
"lang",locale+
".qm")
163 b= appTranslator.load(langdir)
166 app.installTranslator(appTranslator)
172 debug.button(window, callback)
175 sys.exit(app.exec_())
177 if __name__ ==
'__main__':
178 run(debugger=
True, callback=debug.listePartitionsCochees)