From 93499a09469335fda9b43d68bdf40bb87b67c071 Mon Sep 17 00:00:00 2001
From: DevHugo <hugo.contactpro@gmail.com>
Date: Tue, 14 Aug 2018 19:20:36 +0200
Subject: Translate: Header + Part 1

---
 fr-fr/pyqt-fr.html.markdown | 85 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)
 create mode 100644 fr-fr/pyqt-fr.html.markdown

(limited to 'fr-fr/pyqt-fr.html.markdown')

diff --git a/fr-fr/pyqt-fr.html.markdown b/fr-fr/pyqt-fr.html.markdown
new file mode 100644
index 00000000..a0df8be5
--- /dev/null
+++ b/fr-fr/pyqt-fr.html.markdown
@@ -0,0 +1,85 @@
+---
+category: tool
+tool: PyQT
+filename: learnpyqt-fr.py
+contributors:
+    - ["Nathan Hughes", "https://github.com/sirsharpest"]
+translators:
+    - ["DevHugo", "http://twitter.com/devhugo"]
+lang: fr-fr
+---
+
+**Qt** est un framework très connu pour le développement de logiciel cross-platform qui peuvent être lancé sur différents systèmes avec de petit ou aucun changement dans le code, tout en ayant la puissance et la vitesse des applications natives. Bien que **Qt** ait été écrit à l'origine en *C++*.
+
+
+Ceci est une adaptation de l'intro C++ à QT par [Aleksey Kholovchuk](https://github.com/vortexxx192
+), certains exemples du code doivent avoir la même fonctionnalité,
+cette version ayant juste été faite en utilisant pyqt! 
+
+```python
+import sys
+from PyQt4 import QtGui
+	
+def window():
+	# Création de l'objet application 
+    app = QtGui.QApplication(sys.argv)
+	# Création d'un widget où notre label sera placé
+    w = QtGui.QWidget()
+	# Ajout d'un label au widget
+    b = QtGui.QLabel(w)
+	# Assignation de texte au label
+    b.setText("Hello World!")
+	# Assignation des tailles et des informations de placement
+    w.setGeometry(100, 100, 200, 50)
+    b.move(50, 20)
+	# Assignation d'un nom à notre fenêtre
+    w.setWindowTitle("PyQt")
+	# Affichage de la fenêtre
+    w.show()
+	# Exécution de l'application
+    sys.exit(app.exec_())
+
+if __name__ == '__main__':
+    window()
+
+```
+
+In order to get some of the more advanced features in **pyqt** we need to start looking at building additional elements. 
+Here we show how to introduce a dialog popup box, useful for asking the user to confirm a decision or to provide information.
+
+```Python 
+import sys
+from PyQt4.QtGui import *
+from PyQt4.QtCore import *
+
+
+def window():
+    app = QApplication(sys.argv)
+    w = QWidget()
+    # Create a button and attach to widget w
+    b = QPushButton(w)
+    b.setText("Press me")
+    b.move(50, 50)
+    # Tell b to call this function when clicked
+    # notice the lack of "()" on the function call
+    b.clicked.connect(showdialog)
+    w.setWindowTitle("PyQt Dialog")
+    w.show()
+    sys.exit(app.exec_())
+	
+# This function should create a dialog window with a button
+# that waits to be clicked and then exits the program
+def showdialog():
+    d = QDialog()
+    b1 = QPushButton("ok", d)
+    b1.move(50, 50)
+    d.setWindowTitle("Dialog")
+    # This modality tells the popup to block the parent whilst it's active
+    d.setWindowModality(Qt.ApplicationModal)
+    # On click I'd like the entire process to end
+    b1.clicked.connect(sys.exit)
+    d.exec_()
+
+if __name__ == '__main__':
+    window()
+```
-- 
cgit v1.2.3


From b955d9386b302c185fa882c627e1df66f9a87c76 Mon Sep 17 00:00:00 2001
From: DevHugo <hugo.contactpro@gmail.com>
Date: Wed, 5 Sep 2018 10:34:20 +0200
Subject: Translate: Part 2

---
 fr-fr/pyqt-fr.html.markdown | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'fr-fr/pyqt-fr.html.markdown')

diff --git a/fr-fr/pyqt-fr.html.markdown b/fr-fr/pyqt-fr.html.markdown
index a0df8be5..870a2c4e 100644
--- a/fr-fr/pyqt-fr.html.markdown
+++ b/fr-fr/pyqt-fr.html.markdown
@@ -44,8 +44,8 @@ if __name__ == '__main__':
 
 ```
 
-In order to get some of the more advanced features in **pyqt** we need to start looking at building additional elements. 
-Here we show how to introduce a dialog popup box, useful for asking the user to confirm a decision or to provide information.
+Pour obtenir certaines des fonctionnalités les plus avancées de **pyqt** nous devons commencer par chercher à construire des éléments supplémentaires.
+Ici nous voyons comment introduire une boîte de dialogue popup, utile pour demander une confirmation à un utilisateur ou fournir des informations.
 
 ```Python 
 import sys
@@ -56,27 +56,27 @@ from PyQt4.QtCore import *
 def window():
     app = QApplication(sys.argv)
     w = QWidget()
-    # Create a button and attach to widget w
+    # Creation d'un bouton attaché au widget w
     b = QPushButton(w)
     b.setText("Press me")
     b.move(50, 50)
-    # Tell b to call this function when clicked
-    # notice the lack of "()" on the function call
+    # Dire à b d'appeler cette fonction quand il est cliqué
+    # remarquez l'absence de "()" sur l'appel de la fonction
     b.clicked.connect(showdialog)
     w.setWindowTitle("PyQt Dialog")
     w.show()
     sys.exit(app.exec_())
 	
-# This function should create a dialog window with a button
-# that waits to be clicked and then exits the program
+# Cette fonction devrait créer une fenêtre de dialogue avec un bouton
+# qui attend d'être cliqué puis quitte le programme
 def showdialog():
     d = QDialog()
     b1 = QPushButton("ok", d)
     b1.move(50, 50)
     d.setWindowTitle("Dialog")
-    # This modality tells the popup to block the parent whilst it's active
+    # Cette "Modality" dit au popup de bloquer le parent pendant qu'il est actif
     d.setWindowModality(Qt.ApplicationModal)
-    # On click I'd like the entire process to end
+    # En cliquant je voudrais que tout le processus se termine
     b1.clicked.connect(sys.exit)
     d.exec_()
 
-- 
cgit v1.2.3


From 305e08b9594b65a3f0a62920e6ad165a9d861ce9 Mon Sep 17 00:00:00 2001
From: DevHugo <hugo.contactpro@gmail.com>
Date: Mon, 10 Sep 2018 11:54:47 +0200
Subject: Update pyqt-fr.html.markdown

---
 fr-fr/pyqt-fr.html.markdown | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'fr-fr/pyqt-fr.html.markdown')

diff --git a/fr-fr/pyqt-fr.html.markdown b/fr-fr/pyqt-fr.html.markdown
index 870a2c4e..6da9a380 100644
--- a/fr-fr/pyqt-fr.html.markdown
+++ b/fr-fr/pyqt-fr.html.markdown
@@ -74,7 +74,7 @@ def showdialog():
     b1 = QPushButton("ok", d)
     b1.move(50, 50)
     d.setWindowTitle("Dialog")
-    # Cette "Modality" dit au popup de bloquer le parent pendant qu'il est actif
+    # Cette modalité dit au popup de bloquer le parent pendant qu'il est actif
     d.setWindowModality(Qt.ApplicationModal)
     # En cliquant je voudrais que tout le processus se termine
     b1.clicked.connect(sys.exit)
-- 
cgit v1.2.3