def __get_current_transition_path(self):
     gui_name = self.list_transitions.GetStringSelection()
     if gui_name == "":
         return None
     else:
         return fsm.find_path( self.__get_transitions_path(), gui_name,
             get_transition_gui_name )
Example #2
0
 def __on_change_state(self, event):
     state_path = fsm.find_path(
         fsm.get_fsm_of_transition(self.transition_path),
         self.choice_state.GetStringSelection(),
         fsmstates.get_state_gui_name)
     if self.__get_transition().gettargetstatebyindex(
             self.target_index).getfullname() != state_path:
         self.__get_transition().settargetstatebyindex(
             self.target_index, pynebula.lookup(state_path))
         fsmevents.signal_fsm_change(self, self.target_index)
Example #3
0
 def __on_change_state(self, event):
     state_path = fsm.find_path(
         fsm.get_fsm_of_transition( self.transition_path ),
         self.choice_state.GetStringSelection(),
         fsmstates.get_state_gui_name
         )
     if self.__get_transition().gettargetstatebyindex( self.target_index ).getfullname() != state_path:
         self.__get_transition().settargetstatebyindex(
             self.target_index, pynebula.lookup( state_path ) )
         fsmevents.signal_fsm_change(self, self.target_index)
Example #4
0
 def __get_current_state_path(self):
     gui_name = self.list_states.GetStringSelection()
     if gui_name == "":
         return None
     else:
         return fsm.find_path( self.fsm_path, gui_name, get_state_gui_name )