Re: [PyQt] Issue with pyqtSlot(QModelIndex, QModelIndex)

2010-07-26 Thread : linjunhalida
pythonxy is this: http://www.pythonxy.com/ my os is windows. I'm still using 4.6, sorry cannot help... 2010/7/27 Sybren A. Stüvel > On Tue, Jul 27, 2010 at 12:36:02PM +0800, 机械唯物主义 : linjunhalida wrote: > > in my OS, works OK. pythonxy 4.6 > > What's pythonxy? And w

[PyQt] cannot emit destroyed event

2010-07-21 Thread : linjunhalida
here is my code, and after close the window, stop method is not triggered as expected. what's wrong? windows + pyqt4.5.4 from PyQt4.QtCore import * from PyQt4.QtGui import * class MyClass(QWidget): def __init__(self): QWidget.__init__(self) self.destroyed.connect(self.stop) d

Re: [PyQt] Get Signals from all buttons in the form

2010-07-19 Thread : linjunhalida
or: buttons = [QPushButton("button %d" % i) for i in range(12)] for button in buttons: button.clicked.connect(lambda button=button: do_something(button)) On Tue, Jul 20, 2010 at 8:57 AM, Doug Bell wrote: > starglider develop wrote: >> Hi, >> I have a form with 12 QPushButtons and need to con