This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
L3GestionParking/src/Launchme.py

36 lines
736 B
Python
Raw Normal View History

2015-01-12 15:06:44 +00:00
import sqlite3
2014-12-22 18:02:08 +00:00
from src.c.Main import Main
2015-01-12 15:06:44 +00:00
import sqlite3
2014-12-05 14:54:04 +00:00
__author__ = 'sidya'
2015-01-12 15:06:44 +00:00
class connexionBDD :
def __init__(self):
try:
self.__conn = sqlite3.connect("BD.sql3")
self.__cur = self.__conn.cursor()
except Exception as e :
pass # later
def seDeconnecter(self):
self.__cur.close()
self.__conn.close()
def execute(self, req):
try:
r = self.__cur.execute(req)
self.__conn.commit()
except Exception as e :
pass # later
return r
def lastId(self):
return self.__cur.lastrowid
conn = connexionBDD
2014-12-05 14:54:04 +00:00
if __name__ == "__main__":
2015-01-12 15:06:44 +00:00
# lancement du controleur principal
2014-12-22 18:02:08 +00:00
main = Main()