souce code is s.py, when I set PYSIDE=False, everything is fine with Qt, when I set PYSIDE=True, press ok button has no result.
is it a issue?
#!/usr/bin/env python #-*- coding:utf-8 -*- """ module: s """ PYSIDE = True if PYSIDE: from PySide.QtCore import * from PySide.QtGui import * else: from PyQt4.QtCore import * from PyQt4.QtGui import * app = QApplication([]) class P(QDialog): def __init__(self): super(P, self).__init__() self.btOK = QPushButton('&OK') self.btOK.clicked.connect(self.input) l = QHBoxLayout(self) l.addWidget(self.btOK) def checkOpen(func): def new_func(self, *args, **kw): app.aboutQt() func(self, *args, **kw) return new_func @checkOpen def input(self, e=None): self.btOK.setText('input') def main(): p = P() p.exec_() if __name__=="__main__": main()
_______________________________________________ PySide mailing list PySide@lists.openbossa.org http://lists.openbossa.org/listinfo/pyside