[PyKDE] PyQt Qthreads

Carles Pina i Estany carles at pina.cat
Wed Nov 1 16:46:29 GMT 2006


Hi!

On Nov/01/2006, Gregor Kling wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello Carles,
> > Hope that will help...
> Yes that does thanks.

ok happy,


> The update_host_find_dialog(host) does:
>  if (self.first):
>      <setting the header>
> 
>     nk = host.get_name_ipv4()[0]
>     host_id = nk.get_name()
>     tw.insertRow(row)
>     domain = host.get_domain_ipv4()
>     dname = domain.get_domain_name()
>     ti = QtGui.QTableWidgetItem()
>     ti.setText(str(host_id))
>     tw.setItem(row,0,ti)
>     ti = QtGui.QTableWidgetItem()
>     ti.setText(str(dname))
>     tw.setItem(row,1,ti)
>     self.row += 1
>     tw.resizeColumnsToContents()
> 
>     print "RowCount: " + str(tw.rowCount())
> 
> I can see the RowCount is exactly coherent to the expected value,
> but the tablewidget still is not dutiful in representing the data.

You mean that is not updating the representation (graphics) in that
time? ¿?
If you do from other method, called from other event (buttonclicked)
then it works?



-- 
Carles Pina i Estany		GPG id: 0x8CBDAE64
	http://pinux.info	Manresa - Barcelona




More information about the PyQt mailing list