Re: Window (CList) update semantics
- From: Chas Owens <alas widomaker com>
- To: Tom Jennings <tomj wps com>
- Cc: Gtk-Perl-MailingList <gtk-perl-list gnome org>
- Subject: Re: Window (CList) update semantics
- Date: Wed, 01 Jan 2003 20:31:15 -0500
On Wed, 2003-01-01 at 19:05, Tom Jennings wrote:
Can anyone tell me how to get a CList row to update immediately
when I change a cell with set_text()? I'm changing a cell inside
a handler with:
...
$widget-> freeze;
$widget-> set_text ("NEW CELL CONTENTS");
$widget-> thaw;
The window doesn't update until the handler returns.
I've got a process that takes some time (seconds to minutes),
started by a button, and I need to update a cell during this
extended process.
Any hints appreciated. It seems outside the scope of the GTK
Ref page...
tomj
Perl is not multi-threaded (at least not by default). This means that
nothing can happen until the handler returns or you code for it to
happen. I have found that saying
Gtk->main_iteration while Gtk->event_pending;
solves this sort of problem.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]