Bump. Could someone help me about this issue? On Tue, Jul 27, 2010 at 10:30 AM, Fabio Mauri <[email protected]> wrote: > Hi, > > the whole file is quite big, but I think that the following is the > interesting part (if you need something more, ask me and I'll post > it): > > class UPnPgui(QtCore.QObject, Ui_Wdw): > > def __init__(self, sear): > self.version = "0.5b" > self.s = sear > self.serva = [] # services list > self.timeout = 0 > self.val = QRegExpValidator(QRegExp("[0-9]{1,7}"), None) > self.refreshing = False > self.INTERNAL = 0 > self.EXTERNAL = 1 > self.MIN = 2 > self.MAX = 3 > self.t = None > self.upSer = None > self.unlock_t = None > return > > def doConnections(self): > self.updateThread = myUpdate() > QObject.connect(self.refresh, SIGNAL("clicked()"), self.refreshList) > QObject.connect(self.clearSel, SIGNAL("clicked()"), self.noneSelected) > QObject.connect(self.auto_2, SIGNAL("stateChanged(int)"), > self.manageAuto) > QObject.connect(self.time, SIGNAL("editingFinished()"), > self.manageTime) > self.objList.itemDoubleClicked.connect(self.showItem) > self.updateThread.update.connect(self.autoRefresh) > self.updateThread.newTimeout.connect(self.updateThread.updateTimeout) > self.manageTime() > self.manageAuto(Qt.Checked) > # refreshing thread starts.. > self.updateThread.start() > return > > ------------------------------------------------------------------------------------------- > > if __name__ == "__main__": > s = Searcher() > searchThread = Thread(target=runSearcher, args=(s,)) > searchThread.start() > app = QtGui.QApplication(sys.argv) > window = QtGui.QWidget() > ui = UPnPgui(s) > ui.setupUi(window) > ui.doConnections() > window.show() > window.geometry() > window.setWindowTitle(window.windowTitle() + " version " + ui.version) > sys.exit(runApp(app)) > > > > On Tue, Jul 27, 2010 at 10:20 AM, makhamisa senekane > <[email protected]> wrote: >> >> Hi, >> could you please provide us with your code, because I run most of my >> applications on windows XP, and they work very well(using signal/slot >> connections). >> Makhamisa >> >> On Tue, Jul 27, 2010 at 10:15 AM, Fabio Mauri <[email protected]> wrote: >>> >>> Hi all, I'm trying to get an application run on both windows xp and ubuntu >>> 10.04 platforms. >>> My app imports twisted, coherence and PyQt. >>> The problem is that under windows XP the signals seems not to be connected >>> to slots, even if the QObject.connect() returns True. >>> Clicking on buttons have no effect. >>> Any idea? >>> >>> Thanks in advance. >>> >>> -- >>> Fabio Mauri >>> >>> _______________________________________________ >>> PyQt mailing list [email protected] >>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt >> >> >> >> -- >> "No trees were killed in the sending of this message. However a large number >> of electrons were terribly inconvenienced. " > > > > -- > Fabio Mauri >
-- Fabio Mauri _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
