Steve,
I have ran into this problem before. In unicon's GUI "display" method
should do a redraw
statusField.set_label("Restarting ICE...")
self.display() # self is the whole dialog object
Ii've just tested it under Windows and it worked. but I remember having
problems under linux. Sometimes I end up doing this
self.init()
self.resize()
self.display()
Maybe there are cleaner ways to do it that I'm not aware of. Let me know if
you find any.
Thanks,
Jafar
On Fri, Jul 10, 2009 at 10:33 AM, Steve Wampler <swamp...@noao.edu> wrote:
>
> Is there a way to update a component's display from within
> event handling code? I want to display a status item while
> an event is processing (in addition to the 'hour glass'
> cursor), but haven't found anything that works. The
> event handling code in question is:
>
> method on_restartIce(ev)
> d := YesNoDialog("Really restart ICE?")
> d.show_modal()
> if d.isYes() then {
> statusField.set_label("Restarting ICE...")
> WAttrib(win,"pointer="||("wait"|"watch"))
> system(ATST||"/bin/stopIceServices")
> system(ATST||"/bin/startIceServices")
> WAttrib(win,"pointer=arrow")
> statusField.set_label("")
> }
> end
>
> But the change to the label never appears (the two system
> calls take about 10 seconds to complete). I've also tried
> using a TextField in place of a Label, so I don't think
> the problem is with changing a label, but somehow related
> to the event handling thread?
>
> Thanks for any pointers/tips!
>
> --
> Steve Wampler -- swamp...@noao.edu
> The gods that smiled on your birth are now laughing out loud.
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Unicon-group mailing list
> Unicon-group@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/unicon-group
>
--
"Let there be no compulsion in religion: Truth stands out clear from error"
[The Holy Qur'an 2:256]
"Injustice anywhere is a threat to justice everywhere" Dr. King
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group