MCPcopy Create free account
hub / github.com/ActiveState/code / quit

Method quit

recipes/Python/361168_Vpython_example/recipe-361168.py:105–115  ·  view source on GitHub ↗

Quit Terminates manipulations in the block world.

(self)

Source from the content-addressed store, hash-verified

103 bl.moveTo(b.position)
104
105 def quit(self):
106 """
107 Quit
108
109 Terminates manipulations in the block world.
110 """
111 # Print the output
112 stacks = self.stacks
113 for i in range(stacks.blockCount):
114 lst = ' '.join([str(bl.initialPosition) for bl in stacks[i]])
115 print '%2d: %s' % (i, lst)
116
117
118class Stacks(object):

Callers 15

parseFunction · 0.95
test1Function · 0.95
recipe-498210.pyFile · 0.45
testFunction · 0.45
recipe-473810.pyFile · 0.45
recipe-82233.pyFile · 0.45
do_exitFunction · 0.45
get_buildFunction · 0.45
close_allMethod · 0.45
CloseWinMethod · 0.45
popPeekFunction · 0.45
quitFunction · 0.45

Calls 3

rangeFunction · 0.85
strFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected