PyQt QTable

Alex Martelli aleax at aleax.it
Thu Apr 18 16:10:52 EDT 2002


Michael Melchert wrote:

> self.connect(qtb,SIGNAL('clicked(....)'),self.the_method)] my problem
> arises from the parameters which are defined for
> QTable.clicked(int,int,int,QPoint&). what would be the correct way to
> write the connect() call, especially regarding the QPoint& reference? And
> how would the connected python method be defined?

import sys
import qt
import qttable
 
a = qt.QApplication(sys.argv)
 
table = qttable.QTable()
def tableClicked(a,b,c,d):
    print 'clicked',a,b,c,d
a.connect(table, qt.SIGNAL("clicked(int,int,int,const QPoint&)"), 
tableClicked)
 
a.setMainWidget(table)
table.show()
a.exec_loop()


Alex




More information about the Python-list mailing list