From: Lothar Scholz Date: 2005-07-13T03:29:16+09:00 Subject: Re: Updating GUIs Hello Joe, JVD> Hi, JVD> I'm still fairly new to writing GUIs. A common approach to me is to JVD> write some model classes that have a function called "update". That JVD> function should get called a few times a second, and then the GUI JVD> should get updated reflecting those changes. JVD> What's the best way to do this? Should I have a Ruby thread that JVD> calls the update function, sleeps for 0.2 seconds, and then loops? JVD> How should the GUI get notified of those changes? Only update/invalidate when you must update and then update/invalidate the smallest possible rectangle. Thats the normal rule for writing GUI's -- Best regards, emailto: scholz at scriptolutions dot com Lothar Scholz http://www.ruby-ide.com CTO Scriptolutions Ruby, PHP, Python IDE 's