[wxPython-users] mouse enter window event woes...
Christopher Barker
Chris.Barker at noaa.gov
Mon Aug 28 14:12:33 PDT 2006
Chris Spencer wrote:
> "repaint" of the controls. Astoundingly, a <control>.Refresh()
> *oftentimes* does not force a repaint, so I've stopped using it in
> favor of flickering the control off then on again.
from the wx docs:
"""
wxWindow::Refresh
Causes this window, and all of its children recursively (except under
wxGTK1 where this is not implemented), to be repainted. Note that
repainting doesn't happen immediately but only during the next event
loop iteration, if you need to update the window immediately you should
use Update instead.
"""
and:
"""
wxWindow::Update
Calling this method immediately repaints the invalidated area of the
window and all of its children recursively while this would usually only
happen when the flow of control returns to the event loop. Notice that
this function doesn't refresh the window and does nothing if the window
hadn't been already repainted. Use Refresh first if you want to
immediately redraw the window unconditionally.
"""
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list