[EMAIL PROTECTED] wrote:
Nope. Does't work. Running Python 2.3.4 on Debian, Linux kernel 2.6.
This is actually test code for a larger project...

# flash the selected wx.TextControl

for flasher in range(4):
    self.textField.SetBackgroundColour(255, 0, 0)
self.textField.Update()
    time.sleep(0.8)
    self.textField.SetBackgroundColour(255, 255, 223)
self.textField.Update()
    time.sleep(0.8)

Even when I add an explicit call to repaint the TextCtrl between each
sleep, things appear to be 'queued' until after the loop is fnished.
Very bizarre.

If you use .Refresh() request still queued.

/m

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to