/[fenfire]/fenfire/org/fenfire/demo/text-mm.py
ViewVC logotype

Diff of /fenfire/org/fenfire/demo/text-mm.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by tuukkah, Wed Aug 27 08:06:26 2003 UTC revision 1.7 by tuukkah, Wed Aug 27 10:08:09 2003 UTC
# Line 106  class MMScene: Line 106  class MMScene:
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):
# Line 181  def tellCommands(): Line 181  def tellCommands():
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
# Line 243  while 1: Line 244  while 1:
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:

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26