def handleSize(self):
        if self.geometry==None:
            self.geometry=self.parent.geometry
            wdth = "%.2f" % ((float(self.parent.geometry.rect.width)/float(self.parent.geometry.rect.width))*100)
            hgth = "%.2f" % ((float(self.parent.geometry.rect.height)/float(self.parent.geometry.rect.height))*100)
            if self.widget.name=="gbValidation":
                print self.widget.name,wdth,hgth
            if self.widget['class']!="QPanel":
                self.thiswidget.setHeight(str(hgth)+"%")
            else:
                self.thiswidget.setHeight(str(self.parent.geometry.rect.height)+"px")
            self.thiswidget.setWidth(str(wdth)+"%")
        else:
            wdth = "%.2f" % ((float(self.geometry.rect.width)/(float(self.parent.geometry.rect.width)-float(self.geometry.rect.x)))*100)
            hgth = "%.2f" % ((float(self.geometry.rect.height)/(float(self.parent.geometry.rect.height)-float(self.geometry.rect.y)))*100)
            if self.widget.name=="gbValidation":
                print self.widget.name,wdth,hgth
            if self.widget['class']!="QLineEdit":
                #if self.widget['class']!="QPanel":
                self.thiswidget.setHeight(str(hgth)+"%")
                #else:
                #    self.thiswidget.setHeight(str(self.geometry.rect.height)+"px")
            self.thiswidget.setWidth(str(wdth)+"%")

    #get title from xml properties
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/qtui2mj.py/aWidget.handleSize/original