Эх сурвалжийг харах

Small bugfix in Cairo test.

Taddeus Kroes 13 жил өмнө
parent
commit
08b630b084
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      tests/cairotest.py

+ 3 - 1
tests/cairotest.py

@@ -103,7 +103,9 @@ def create_context_window(w, h, callback):
 
 
 def draw(*args):
-    print 'draw'
+    if not cr:
+        return
+
     # Background
     cr.rectangle(0, 0, *root.get_size())
     cr.set_source_rgb(0, 1, 0)