We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 852e4e3 commit af196d0Copy full SHA for af196d0
examples/dynamic_demo.py
@@ -1,6 +1,6 @@
1
#!/usr/bin/env python
2
-import pygtk
3
-pygtk.require('2.0')
+
+import gobject
4
import gtk
5
6
from pylab import *
@@ -16,13 +16,12 @@ def updatefig(*args):
16
lines[0].set_data(ind, X[:,updatefig.count])
17
manager.canvas.draw()
18
updatefig.count += 1
19
- if updatefig.count<10: return gtk.TRUE
20
- else: return gtk.FALSE
+ if updatefig.count<10:
+ return True
21
+ else:
22
+ return False
23
24
updatefig.count = 0
25
-gtk.timeout_add(300, updatefig)
26
+gobject.timeout_add(300, updatefig)
27
show()
-
28
0 commit comments