def set_addr(self, addr):
        if self.addr != addr:
            if len(addr) < 128:
                MinSize = 210
            else:
                MinSize = 500
            self.setMinimumSize(MinSize, MinSize)
            self.addr = addr
            self.qr = None
            self.update()
dataset/ETHPy150Open bitxbay/BitXBay/electru/build/lib/electrum_gui/qt/qrcodewidget.py/QRCodeWidget.set_addr/original