106 |
# convert from java.util.Set to list |
# convert from java.util.Set to list |
107 |
for component in comps.toArray(): |
for component in comps.toArray(): |
108 |
components.append(component) |
components.append(component) |
109 |
components.remove(centered) |
components.remove(largest) |
110 |
return components, largest |
return components, largest |
111 |
|
|
112 |
def __init__(self): |
def __init__(self): |
181 |
keys = cmds.keys() |
keys = cmds.keys() |
182 |
keys.sort() |
keys.sort() |
183 |
print keys |
print keys |
184 |
|
print "What, or where to, shall we? ", |
185 |
|
|
186 |
def look(arg=None, examineOnly=0): |
def look(arg=None, examineOnly=0): |
187 |
if arg == None: arg = '' # they don't let me write arg == null || arg.strip |
if arg == None: arg = '' # they don't let me write arg == null || arg.strip |
244 |
print '*' * 5 |
print '*' * 5 |
245 |
line = '' |
line = '' |
246 |
while line == '': |
while line == '': |
247 |
print "What, or where to, shall we? ", |
print "> ", |
248 |
line = stdin.readline().lstrip()[:-1] |
line = stdin.readline().lstrip()[:-1] |
249 |
print # there's some odd space character output, this hides it |
print # there's some odd space character output, this hides it |
250 |
try: |
try: |