Re: [pygtk] set_text problem

2005-07-25 Thread Ogz
Ok, thanx
You are right. I should have checked before asking. 

On 7/25/05, Phillip Calvin <[EMAIL PROTECTED]> wrote:
> 3.7. While my callback is executing, nothing is refreshed in the
> application windows!
> 
> 
> The SSH commands block the code from continuing until they finish, and
> GTK does not have a chance to draw until the function exits.  Try
> putting the block of code in the FAQ entry above directly after the
> set_text().
> 
> While by no means do I want to discourage you from using the mailing
> list if you have a nasty problem, please do check the excellent FAQ
>  page first and see if your
> question is already answered there -- it's quite thorough.
> 
> Ogz wrote:
> 
> >[snip]
> >
> >self.lbl_burn.set_text(txt)
> >
> >ssh = Ssh(user,host)
> >ssh.login()
> >
> >I can not see the effect of the first set_text till teh Caution_window
> >opens. If i take the ssh part out then it works correctly.
> >
> >
> >
>
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] set_text problem

2005-07-25 Thread Phillip Calvin
3.7. While my callback is executing, nothing is refreshed in the 
application windows! 



The SSH commands block the code from continuing until they finish, and 
GTK does not have a chance to draw until the function exits.  Try 
putting the block of code in the FAQ entry above directly after the 
set_text().


While by no means do I want to discourage you from using the mailing 
list if you have a nasty problem, please do check the excellent FAQ 
 page first and see if your 
question is already answered there -- it's quite thorough.


Ogz wrote:


[snip]

self.lbl_burn.set_text(txt)

ssh = Ssh(user,host)
ssh.login()

I can not see the effect of the first set_text till teh Caution_window
opens. If i take the ssh part out then it works correctly.

 


___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] set_text problem

2005-07-25 Thread pier carteri
Hi Ogz,On 7/25/05, Ogz <[EMAIL PROTECTED]> wrote:
Here is a code that should show a text at a label and continue withssh connection:...some code...txt = "test"self.lbl_burn.set_text(txt)self.MainWindow_Sefir.show_all
()
I suspect (but I'm not completely sure) that here you should use

while gtk.event_pending():
    gtk.main_iteration()
 
Regards 

Pier

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] set_text problem

2005-07-24 Thread Ogz
Here is a code that should show a text at a label and continue with
ssh connection:

...
some code
...


txt = "test"

self.lbl_burn.set_text(txt)
self.MainWindow_Sefir.show_all()
print txt

ssh = Ssh(user,host)
ssh.login()

result = ssh.sendcmd(burncmd, readtype=0)

.
some code
.

caution = CautionWindow()
caution.Caution_label.set_text('ok')

responselast = caution.Caution_window.run()

I can not see the effect of the first set_text till teh Caution_window
opens. If i take the ssh part out then it works correctly.

I dont know why it is not set the label.

Will be happy if someone help.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/