Skip to content

Commit b4143c2

Browse files
author
Sam Fries
committed
Fixed text_vcs_interact_no_plot to work with new interact/open logic
1 parent d285ba0 commit b4143c2

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
21
import vcs
3-
x=vcs.init()
2+
import sys
3+
4+
x = vcs.init()
45
x.drawlogooff()
56
x.open()
7+
8+
inter = x.backend.renWin.GetInteractor()
9+
10+
11+
def end_interact(obj, event):
12+
print "Interaction began"
13+
inter.TerminateApp()
14+
sys.exit(0)
15+
16+
inter.AddObserver("StartEvent", end_interact)
617
x.interact()
18+
19+
# Should not reach this point
20+
print "Did not start interact."
21+
sys.exit(1)

0 commit comments

Comments
 (0)