def qr_show(self): from qrcodewidget import QRDialog try: s = str(self.toPlainText()) except: s = unicode(self.toPlainText()) QRDialog(s).exec_()
def qr_show(self): from qrcodewidget import QRDialog QRDialog(str(self.toPlainText())).exec_()