def main(args=sys.argv): app = QApplication(args) editor = QTextEdit() nb=NumberBar(edit=editor) nb.show() editor.show() return app.exec_()
def main(args=sys.argv): app = QApplication(args) editor = QTextEdit() nb = NumberBar(edit=editor) nb.show() editor.show() return app.exec_()
def show(self): if self.controller: self.controller.setSponsor() if self.typ == "QDialog": QDialog.show(self) elif self.typ == "QTextEdit": QTextEdit.show(self) elif self.typ == "QFrame": QFrame.show(self) else: print "don't know about self.typ == %r" % (self.typ, )
def show(self): if self.controller: self.controller.setSponsor() if self.typ == "QDialog": QDialog.show(self) elif self.typ == "QTextEdit": QTextEdit.show(self) elif self.typ == "QFrame": QFrame.show(self) else: print "don't know about self.typ == %r" % (self.typ,)