ScolaSync  5.1
debug.py
Aller à la documentation de ce fichier.
1 #!/usr/bin/python3
2 
3 
5 
6 
7 licence={}
8 licenceEn="""
9  scolasync version %s:
10 
11  a program to manage file transfers between a computer and a collection
12  of USB sticks.
13 
14  Copyright (C) 2010-2013 Georges Khaznadar <georgesk@debian.org>
15 
16  This program is free software: you can redistribute it and/or modify
17  it under the terms of the GNU General Public License as published by
18  the Free Software Foundation, either version 3 of the License, or
19  (at your option) any later version.
20 
21  This program is distributed in the hope that it will be useful,
22  but WITHOUT ANY WARRANTY; without even the implied warranty of
23  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  GNU General Public License for more details.
25 
26  You should have received a copy of the GNU General Public License
27  along with this program. If not, see <http://www.gnu.org/licenses/>.
28 """
29 licence['en']=licenceEn
30 
31 licenceFr="""
32  scolasync version %s :
33 
34  un programme pour gérer des transferts de fichiers entre un
35  ordinateur et une collection de clés USB.
36 
37  Copyright (C) 2010-2013 Georges Khaznadar <georgesk@debian.org>
38 
39  Ce projet est un logiciel libre : vous pouvez le redistribuer, le
40  modifier selon les terme de la GPL (GNU Public License) dans les
41  termes de la Free Software Foundation concernant la version 3 ou
42  plus de la dite licence.
43 
44  Ce programme est fait avec l'espoir qu'il sera utile mais SANS
45  AUCUNE GARANTIE. Lisez la licence pour plus de détails.
46 
47  <http://www.gnu.org/licenses/>.
48 """
49 licence['fr']=licenceFr
50 
51 from PyQt5.QtWidgets import *
52 from PyQt5.QtCore import *
53 
54 
59 
60 def button(w, cb):
61 
63 
64  def cbWrapper():
65  cb(w)
66  return
67 
68  b=QPushButton("Debug",w)
69  b.clicked.connect(cbWrapper)
70  b.show()
71  return
72 
73 
76 
78  print (w.t)
src.debug.button
def button(w, cb)
ajoute un bouton de débogage dans une fenêtre
Definition: debug.py:60
QtCore
src.debug.listePartitionsCochees
def listePartitionsCochees(w)
renseigne sur la liste des partions cochées de la fenêtre principale
Definition: debug.py:77
QtWidgets