def __init__(self): self.pm = propManager.propManager() self.host = self.pm.get('DB_HOST') self.port = self.pm.get('DB_PORT') self.db = self.pm.get('DB_NAME') conn.conn.__init__(self)
def __init__(self): logger.started() logger.info('about to create the prop mgr') self.pm = propManager.propManager() logger.info('about to create the mysql conn') self.conn = mysqlConn.mysqlConn() self.recipes = [] self.ingreds = {} self.recipesIngredients = {} root = Tk() root.title('Shopping Manager') logger.info('about to init ingredients') self.initIngreds() logger.info('about to ingest recipes ingredients') self.ingestRecipiesIngredients() logger.info('about to init recipes') self.initRecipes() self.frame = Frame(root,width=1000, height=200) self.frame.pack(expand=YES, fill=BOTH) self.recipesFrame = Frame(self.frame, bg='Blue', bd=10) self.recipesFrame.pack(expand=YES, fill=BOTH, side=LEFT) self.ingredsFrame = Frame(self.frame, bg='Green', bd=10) self.ingredsFrame.pack(expand=YES, fill=BOTH, side=LEFT) self.listFrame = Frame(self.frame, bg='Red', bd=10) self.listFrame.pack(expand=YES, fill=BOTH, side=LEFT) self.recipesCanv = Canvas(self.recipesFrame, bg='Yellow') self.recipesCanv.pack(expand=YES, fill=BOTH, side=TOP) self.ingredsCanv = Canvas(self.ingredsFrame, bg='pink') self.ingredsCanv.pack(expand=YES, fill=BOTH, side=TOP) self.listCanv = Canvas(self.listFrame, bg='orange') self.listCanv.pack(expand=YES, fill=BOTH, side=TOP)
def __init__(self): self.pm = propManager.propManager() self.user = self.pm.get('DB_USER') self.passwd = self.pm.get('DB_PWD')