def __init__(self, app, window): # Application (front end) instance self.app = app # Root window instance from the main app self.window = window # Instantiate database object self.db = Database('Database1.db') # Connect to utilities self.utils = Utils() # Get access to scripts self.scripts = Scripts.Scripts(self.db) # The limit to number of records in the Customer table # Warning: If you increase limit, need to add more names in names.txt self.recordLimit = 1000 # Current user username self.user = '' # Current user's permissions in the application self.permissions = {} # Email setting self.email = False