Browse Source

*** empty log message ***

Joe Shochet 25 năm trước cách đây
mục cha
commit
59a57c9f94
2 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 1 0
      direct/src/fsm/FSM.py
  2. 3 1
      direct/src/tkpanels/FSMInspector.py

+ 1 - 0
direct/src/fsm/FSM.py

@@ -7,6 +7,7 @@ class FSM(DirectObject):
 
     # create FSM DirectNotify category
     notify = directNotify.newCategory("FSM")
+    notify.setDebug(1)
 
     # special methods
     

+ 3 - 1
direct/src/tkpanels/FSMInspector.py

@@ -20,7 +20,7 @@ class FSMInspector(AppShell):
     def __init__(self, fsm, **kw):
         INITOPT = Pmw.INITOPT
         optiondefs = (
-            ('title',     self.appname,       None),
+            ('title', fsm.getName(), None),
             ('gridSize', '0.25i', self._setGridSize),
             )
         self.defineoptions(kw, optiondefs)
@@ -424,6 +424,8 @@ class StateInspector(Pmw.MegaArchetype):
 
     def inspectSubMachine(self):
         print 'inspect ' + self.tag + ' subMachine'
+        for childFSM in self.state.getChildren():
+            FSMInspector(childFSM)
 
     def enteredState(self):
         self._canvas.itemconfigure(self.marker, fill = 'Red')