View Single Post
juise-'s Avatar
Posts: 186 | Thanked: 192 times | Joined on Jan 2010 @ Finland
#3
Originally Posted by ErikHK View Post
www.erikhk.net/tmp/cairotest.py
Code:
    gobject.timeout_add(1,self.tick)
I didn't look through your code properly or try it, but it seems that above line will make your code to try to do the whole drawing thing 1000 times in a second. It's highly unlikely that this is what you wanted.

Edit: was pointed out above already.

Generally, when using GUI libraries, you'll only want to invalidate areas that have actually changed.