def __init__(self, vehicle_index, vehicle_type): super(EditDataPage, self).__init__() self.vehicle_index = vehicle_index self.vehicle_type = vehicle_type uic.loadUi(Ui_List.EditRates, self) self.logger = _generate_log() self.initUi()
def __init__(self, vehicle_type): super(Parking_Slots, self).__init__() self.vehicle_type = vehicle_type uic.loadUi(Ui_List.Parking_Slots, self) self.logger = _generate_log() self.initUi()
def __init__(self): super(Ui_LoginWindow, self).__init__() uic.loadUi(Ui_List.LOGIN, self) self.setWindowTitle('Login') self.btn_login.clicked.connect(self.sign_in) self.customer_checkbox.stateChanged.connect(self.clickAction2) self.admin_checkbox.stateChanged.connect(self.clickAction) self.logger = _generate_log()
def __init__(self): super(addData_Window, self).__init__() uic.loadUi(Ui_List.AddRates, self) self.setWindowTitle('Add Vehicle Data') self.fillCombobox() #t1 = Thread(target=MyThread().virajData(self)) self.btn_save.clicked.connect(self.add_VehicleData) self.btn_back.clicked.connect(self.func_cancel) self.logger = _generate_log()
def __init__(self): super(View_Customers, self).__init__() uic.loadUi(Ui_List.View_CustomerData, self) self.logger = _generate_log() self.setWindowTitle('View Customers Data') #self.customer_tableWidget.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) header = self.customer_tableWidget.horizontalHeader() header.setSectionResizeMode(QtWidgets.QHeaderView.ResizeToContents) #header.setSectionResizeMode(9,QtWidgets.QHeaderView.Stretch) self.customer_tableWidget.resizeColumnsToContents() self.create_CustomerTable()
def __init__(self, ID, vehicle, vehicle_no, entry, exit, bill, index): super(Parking_Bill, self).__init__() self.TicketNo = ID self.Vehicle = vehicle self.Vehicle_No = vehicle_no #print(self.vehicle_no) self.Entry_DT = entry self.Exit_DT = exit self.bill = bill self.pass_index = index self.logger = _generate_log() #print(self.Exit_DT - self.entry_DT) uic.loadUi(Ui_List.Parking_Bill, self) self.initUi()
def __init__(self): super(EditDataWindow, self).__init__() uic.loadUi(Ui_List.ManageRates, self) self.logger = _generate_log() self.initUi()
def __init__(self): super(Customer_DataWindow, self).__init__() uic.loadUi(Ui_List.Customer_Data, self) self.logger = _generate_log() self.initUi()
from PyQt5.QtWidgets import * from module.db_parking import viewData_byCategory from datetime import datetime from module.log_decorator import _generate_log logger = _generate_log() def login(username, password): while True: if (username == "ashwini") and (password == "123"): #messageBox("Congrats","You are logged in") return True else: return False def messageBox(title,message): mess = QMessageBox() mess.setWindowTitle(title) mess.setText(message) mess.setStandardButtons(QMessageBox.Ok) mess.exec_() def warning(title,message): mess = QMessageBox() mess.setWindowTitle(title) mess.setText(message) mess.setStandardButtons(QMessageBox.Ok) mess.exec_() def get_Parking_Charges(v_type, index, exit_DT): data = viewData_byCategory(v_type) for row in data: if index == 0: bill = row[3]
def __init__(self): super().__init__() uic.loadUi(Ui_List.Admin_Dashboard, self) self.logger = _generate_log() self.initUi()