New changelist
This commit is contained in:
@ -8,14 +8,16 @@ __author__ = 'sidya'
|
||||
|
||||
class Acces:
|
||||
def __init__(self):
|
||||
self.__parkings = {}
|
||||
self.__clients = {}
|
||||
self.__parking = Parking()
|
||||
self.__camera = Camera()
|
||||
self.__borne = Borne()
|
||||
self.__panneau = Panneau()
|
||||
|
||||
def actionnerCamera(self, client):
|
||||
pass
|
||||
def actionnerCamera(self):
|
||||
return self.__camera.donnerVoiture()
|
||||
|
||||
def actionnerPanneau(self):
|
||||
pass
|
||||
def majPanneau(self):
|
||||
self.__panneau.afficherNbPlaceDisponible()
|
||||
|
||||
def lancerProcedureImmatr(self, voiture):
|
||||
pass
|
||||
def lancerProcedureEntree(self,client):
|
||||
self.__borne.afficher("Inserer votre carte ou valider")
|
||||
|
@ -1,16 +1,23 @@
|
||||
from PyQt4 import QtGui
|
||||
import sys
|
||||
|
||||
from PyQt4 import QtGui
|
||||
|
||||
from src.v.MainWindow import Ui_MainWindow
|
||||
from src.c.log.log import Log
|
||||
|
||||
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Main:
|
||||
def __init__(self):
|
||||
#Init des logs
|
||||
# Init des logs
|
||||
self.log = Log()
|
||||
|
||||
#Liste Clients et Parking
|
||||
self.__clients = {}
|
||||
self.__Parkings = {}
|
||||
|
||||
app = QtGui.QApplication(sys.argv)
|
||||
self.view = QtGui.QMainWindow()
|
||||
self.ui = Ui_MainWindow()
|
||||
@ -18,20 +25,20 @@ class Main:
|
||||
|
||||
#Chargement activité
|
||||
self.loadLastActivity()
|
||||
|
||||
self.ui.addListeParkings(10)
|
||||
|
||||
self.view.show()
|
||||
sys.exit(app.exec_())
|
||||
|
||||
|
||||
def activity(self,msg,lvl):
|
||||
self.log.printL(msg,10)
|
||||
def activity(self, msg, lvl):
|
||||
self.log.printL(msg, lvl)
|
||||
self.ui.addItemActivite(self.activite.readlines()[-1])
|
||||
|
||||
def loadLastActivity(self):
|
||||
try:
|
||||
self.activite = open("log/activity.log", "r")
|
||||
except IOError :
|
||||
except IOError:
|
||||
self.activite = open("log/activity.log", "w")
|
||||
self.activite.close()
|
||||
self.activite = open("log/activity.log", "r")
|
||||
|
@ -2,9 +2,6 @@ __author__ = 'sidya'
|
||||
|
||||
|
||||
class Teleporteur :
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def teleporterVoiture(self, voiture, place):
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user