Re: [ROOT] GUI window update

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Feb 21 2003 - 10:34:54 MET


Hi Antoni,

You can obtain a non blocking GUI in different ways:
 - call gSystem->ProcessEvents(); in the loop(s) of your
calibration                procedure (not necessarily for each loop index, but
at some regular
   intervals).
 - using a Timer. see class TTimer.

Rene Brun

Antoni Munar wrote:
> 
> Dear rooters,
> 
> I am writting a GUI for a test some  hardware.
> 
> One problem that I have, is that from one window panel I call a procedure
> to perform a calibration, but during the calibration procedure the window
> is of course frozen. In tcl you could invoke a command of the type "update
> [window id]". What is the equivalent in ROOT. My calibration procedure is
> a member function of an TGFrame Object.
> 
> cheers,
> Toni
> 
> ###################################################
> Antoni Munar Ara
> Department of Physics and Astronomy
> David Rittenhouse Laboratory
> University of Pennsylvania
> 209 South 33-rd Street
> Philadelphia, PA (USA)
> 19104-6396



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET