def __init__(self): QWidget.__init__(self) # loaind ui from xml self.ui = uic.loadUi(os.path.join(DIRPATH, 'about_dialog.ui'), self) add_image_to_label(self.lblIcon, "./images/robot_icon_small.png") # keep the window fixed sized self.setFixedSize(self.size())
def mouth_open(self): add_image_to_label(self.lbl, "./images/robot/mouth_open.png")
def face_normal(self): add_image_to_label(self.lbl, "./images/robot/normal.png")
def look_up(self): add_image_to_label(self.lbl, "./images/robot/look_up.png")
def look_down(self): add_image_to_label(self.lbl, "./images/robot/look_down.png")
def look_right(self): add_image_to_label(self.lbl, "./images/robot/look_right.png")