def createBeanRecipeGui(self, recipe): if self.beanRecipeGui: self.beanRecipeGui.destroy() #These are the 3 potential positions on where to put the recipe pos1 = (-0.2,0,-0.365) #bottom of page #if hasattr(self,'beanRecipeGui1'): # if self.beanRecipeGui1: # self.beanRecipeGui1.destroy() #self.beanRecipeGui1 = BeanRecipeGui.BeanRecipeGui(self, recipe, pos = pos1) # pos2 = (-0.46,0,0.3) #above flower photo #if hasattr(self,'beanRecipeGui2'): # if self.beanRecipeGui2: # self.beanRecipeGui2.destroy() #self.beanRecipeGui2 = BeanRecipeGui.BeanRecipeGui(self, recipe, pos = pos2) # pos3 = (-0.46,0,-0.3) #below flower photo #if hasattr(self,'beanRecipeGui3'): # if self.beanRecipeGui3: # self.beanRecipeGui3.destroy() #self.beanRecipeGui3 = BeanRecipeGui.BeanRecipeGui(self, recipe, pos = pos3) #self.beanRecipeGui = BeanRecipeGui.BeanRecipeGui(self, recipe, pos = pos3) pos4 = (-0.6,0,-0.27) #below flower photo in aspect2dp coords self.beanRecipeGui = BeanRecipeGui.BeanRecipeGui(aspect2dp, recipe, pos = pos4, scale = 1.3, frameColor = (0.8, 0.8, 0.8,1.0), )
def createBeanRecipeGui(self, recipe): if self.beanRecipeGui: self.beanRecipeGui.destroy() pos1 = (-0.2, 0, -0.365) pos2 = (-0.46, 0, 0.3) pos3 = (-0.46, 0, -0.3) pos4 = (-0.6, 0, -0.27) self.beanRecipeGui = BeanRecipeGui.BeanRecipeGui(aspect2dp, recipe, pos=pos4, scale=1.3, frameColor=(0.8, 0.8, 0.8, 1.0))