|
From: Ogz <com...@gm...> - 2005-07-25 13:18:12
|
burncmd =3D "growisofs -M " + burner + " " + "-R -J" + " " + some_files
self.label_something.set_text(txt)
while gtk.events_pending():
gtk.main_iteration(False)
ssh =3D Ssh(user,host)
ssh.login()
print ssh.sendcmd(burncmd, readtype=3D2)
print 'i want to see this line but never reurns from READ_ALL'
And after sendcmd the program never returns. It waits for ever!
I tried readtype =3D 1 which works sometimes fine, wometimes not.
So i need readtype 2 without crushes, any solution?
***************************************************************************
On 7/25/05, pier carteri <pie...@gm...> wrote:
> Hi Ogz,
>=20
> On 7/25/05, Ogz <com...@gm...> wrote:
> > Here is a code that should show a text at a label and continue with
> > ssh connection:
> >=20
> > .......
> > some code
> > .......
> >=20
> >=20
> > txt =3D "test"
> >=20
> > self.lbl_burn.set_text(txt)
> > self.MainWindow_Sefir.show_all ()
>=20
> I suspect (but I'm not completely sure) that here you should use
> =20
> while gtk.event_pending():
> gtk.main_iteration()
> =20
> Regards=20
> =20
> Pier
> =20
>
|