\o/
This commit is contained in:
@@ -8,9 +8,9 @@ __author__ = 'sidya'
|
||||
|
||||
|
||||
class Camera:
|
||||
@classmethod
|
||||
def donnerVoiture(self):
|
||||
@staticmethod
|
||||
def donnerVoiture():
|
||||
v = Voiture(None, None, random.randint(150, 300), random.randint(100, 200), ''.join(
|
||||
random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in
|
||||
range(random.randint(1, 10))),False)
|
||||
range(random.randint(5, 10))))
|
||||
return v
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Form implementation generated from reading ui file 'borne.ui'
|
||||
#
|
||||
# Created: Sun Feb 1 14:38:43 2015
|
||||
# by: PyQt4 UI code generator 4.11.3
|
||||
# by: PyQt4 UI code generator 4.11.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
@@ -17,12 +17,14 @@ except AttributeError:
|
||||
|
||||
try:
|
||||
_encoding = QtGui.QApplication.UnicodeUTF8
|
||||
|
||||
def _translate(context, text, disambig):
|
||||
return QtGui.QApplication.translate(context, text, disambig, _encoding)
|
||||
except AttributeError:
|
||||
def _translate(context, text, disambig):
|
||||
return QtGui.QApplication.translate(context, text, disambig)
|
||||
|
||||
|
||||
class Ui_Borne(object):
|
||||
def setupUi(self, Borne):
|
||||
Borne.setObjectName(_fromUtf8("Borne"))
|
||||
@@ -195,7 +197,8 @@ class Ui_Borne(object):
|
||||
def retranslateUi(self, Borne):
|
||||
Borne.setWindowTitle(_translate("Borne", "Borne", None))
|
||||
self.btn_Voiture.setText(_translate("Borne", "Detection Arrivee Voiture", None))
|
||||
self.nomParking.setText(_translate("Borne", "<html><head/><body><p align=\"center\">NomParking</p></body></html>", None))
|
||||
self.nomParking.setText(
|
||||
_translate("Borne", "<html><head/><body><p align=\"center\">NomParking</p></body></html>", None))
|
||||
self.box_id.setTitle(_translate("Borne", "Identification", None))
|
||||
self.label.setText(_translate("Borne", "Carte Membre ID ", None))
|
||||
self.btn_validerID.setText(_translate("Borne", "Valider", None))
|
||||
@@ -211,7 +214,8 @@ class Ui_Borne(object):
|
||||
self.numeroTicketLabel.setText(_translate("Borne", "Numero Ticket :", None))
|
||||
self.btn_recuperer.setText(_translate("Borne", "Récupérer Véhicule", None))
|
||||
self.pushButton.setText(_translate("Borne", "Payer", None))
|
||||
self.label_aff.setText(_translate("Borne", "<html><head/><body><p align=\"center\">TextLabel</p></body></html>", None))
|
||||
self.label_aff.setText(
|
||||
_translate("Borne", "<html><head/><body><p align=\"center\">TextLabel</p></body></html>", None))
|
||||
self.box_garer.setTitle(_translate("Borne", "Se garer", None))
|
||||
self.btn_garer.setText(_translate("Borne", "Garer Véhicule", None))
|
||||
self.box_service.setTitle(_translate("Borne", "Service (Abonnée seulement)", None))
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
# Form implementation generated from reading ui file 'creationParking.ui'
|
||||
#
|
||||
# Created: Sat Jan 17 15:11:03 2015
|
||||
# by: PyQt4 UI code generator 4.11.3
|
||||
# Created: Thu Feb 5 00:32:25 2015
|
||||
# by: PyQt4 UI code generator 4.11.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
@@ -17,12 +17,14 @@ except AttributeError:
|
||||
|
||||
try:
|
||||
_encoding = QtGui.QApplication.UnicodeUTF8
|
||||
|
||||
def _translate(context, text, disambig):
|
||||
return QtGui.QApplication.translate(context, text, disambig, _encoding)
|
||||
except AttributeError:
|
||||
def _translate(context, text, disambig):
|
||||
return QtGui.QApplication.translate(context, text, disambig)
|
||||
|
||||
|
||||
class Ui_CreaParking(object):
|
||||
def setupUi(self, CreaParking):
|
||||
CreaParking.setObjectName(_fromUtf8("CreaParking"))
|
||||
@@ -39,20 +41,8 @@ class Ui_CreaParking(object):
|
||||
self.btn_valider = QtGui.QPushButton(self.layoutWidget)
|
||||
self.btn_valider.setObjectName(_fromUtf8("btn_valider"))
|
||||
self.horizontalLayout_2.addWidget(self.btn_valider)
|
||||
self.layoutWidget1 = QtGui.QWidget(CreaParking)
|
||||
self.layoutWidget1.setGeometry(QtCore.QRect(200, 230, 275, 25))
|
||||
self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
|
||||
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.layoutWidget1)
|
||||
self.horizontalLayout_3.setMargin(0)
|
||||
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
|
||||
self.label_4 = QtGui.QLabel(self.layoutWidget1)
|
||||
self.label_4.setObjectName(_fromUtf8("label_4"))
|
||||
self.horizontalLayout_3.addWidget(self.label_4)
|
||||
self.nbPlacesTotal = QtGui.QLabel(self.layoutWidget1)
|
||||
self.nbPlacesTotal.setObjectName(_fromUtf8("nbPlacesTotal"))
|
||||
self.horizontalLayout_3.addWidget(self.nbPlacesTotal)
|
||||
self.tableWidget = QtGui.QTableWidget(CreaParking)
|
||||
self.tableWidget.setGeometry(QtCore.QRect(30, 100, 521, 121))
|
||||
self.tableWidget.setGeometry(QtCore.QRect(30, 100, 521, 141))
|
||||
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
|
||||
self.tableWidget.setColumnCount(5)
|
||||
self.tableWidget.setRowCount(0)
|
||||
@@ -72,21 +62,21 @@ class Ui_CreaParking(object):
|
||||
self.btn_rmRow = QtGui.QPushButton(CreaParking)
|
||||
self.btn_rmRow.setGeometry(QtCore.QRect(570, 170, 41, 27))
|
||||
self.btn_rmRow.setObjectName(_fromUtf8("btn_rmRow"))
|
||||
self.layoutWidget2 = QtGui.QWidget(CreaParking)
|
||||
self.layoutWidget2.setGeometry(QtCore.QRect(180, 20, 291, 56))
|
||||
self.layoutWidget2.setObjectName(_fromUtf8("layoutWidget2"))
|
||||
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget2)
|
||||
self.layoutWidget1 = QtGui.QWidget(CreaParking)
|
||||
self.layoutWidget1.setGeometry(QtCore.QRect(180, 20, 291, 56))
|
||||
self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
|
||||
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget1)
|
||||
self.horizontalLayout.setMargin(0)
|
||||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||
self.verticalLayout = QtGui.QVBoxLayout()
|
||||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
||||
self.label = QtGui.QLabel(self.layoutWidget2)
|
||||
self.label = QtGui.QLabel(self.layoutWidget1)
|
||||
self.label.setObjectName(_fromUtf8("label"))
|
||||
self.verticalLayout.addWidget(self.label)
|
||||
self.horizontalLayout.addLayout(self.verticalLayout)
|
||||
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
||||
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
||||
self.lineEdit_nom = QtGui.QLineEdit(self.layoutWidget2)
|
||||
self.lineEdit_nom = QtGui.QLineEdit(self.layoutWidget1)
|
||||
self.lineEdit_nom.setObjectName(_fromUtf8("lineEdit_nom"))
|
||||
self.verticalLayout_2.addWidget(self.lineEdit_nom)
|
||||
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
||||
@@ -103,8 +93,6 @@ class Ui_CreaParking(object):
|
||||
CreaParking.setWindowTitle(_translate("CreaParking", "Creation Parking", None))
|
||||
self.btn_annuler.setText(_translate("CreaParking", "Annuler", None))
|
||||
self.btn_valider.setText(_translate("CreaParking", "Valider", None))
|
||||
self.label_4.setText(_translate("CreaParking", "Nombre Places Total : ", None))
|
||||
self.nbPlacesTotal.setText(_translate("CreaParking", "TextLabel", None))
|
||||
item = self.tableWidget.horizontalHeaderItem(0)
|
||||
item.setText(_translate("CreaParking", "Hauteur (cm)", None))
|
||||
item = self.tableWidget.horizontalHeaderItem(1)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Form implementation generated from reading ui file 'main.ui'
|
||||
#
|
||||
# Created: Thu Jan 22 09:11:44 2015
|
||||
# by: PyQt4 UI code generator 4.11.3
|
||||
# by: PyQt4 UI code generator 4.11.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
@@ -17,12 +17,14 @@ except AttributeError:
|
||||
|
||||
try:
|
||||
_encoding = QtGui.QApplication.UnicodeUTF8
|
||||
|
||||
def _translate(context, text, disambig):
|
||||
return QtGui.QApplication.translate(context, text, disambig, _encoding)
|
||||
except AttributeError:
|
||||
def _translate(context, text, disambig):
|
||||
return QtGui.QApplication.translate(context, text, disambig)
|
||||
|
||||
|
||||
class Ui_MainWindow(object):
|
||||
def setupUi(self, MainWindow):
|
||||
MainWindow.setObjectName(_fromUtf8("MainWindow"))
|
||||
|
||||
Reference in New Issue
Block a user