Exemplo n.º 1
0
 def __update_choice(self):
     # fill choice control
     self.choice.Clear()
     action_classes = fsm.get_action_classes()
     action_classes.sort()
     self.choice.AppendItems( action_classes )
     # select current action
     class_name = self.__get_action().getactionclass()
     self.choice.SetStringSelection( class_name )
Exemplo n.º 2
0
def create_default_action( path ):
    action = pynebula.new( 'nactiondesc', path )
    action_classes = fsm.get_action_classes()
    if len(action_classes) == 0:
        return None
    action.setactionclass( str(action_classes[0]) )
##    action.setintarg(1)
##    action.setactiontype(8)
##    action.appendintarg(1)
    return action