@@ -2215,7 +2215,7 @@ def setChoices(self,block):
22152215 self ._choices = collections .OrderedDict ([(_ ('New init phase' ),self .OnInitPhase ), (_ ('New peek' ),self .OnPeek ), (_ ('New all peek' ),self .OnAllPeek ),
22162216 (_ ('New poke' ),self .OnPoke ), (_ ('New hold in state' ),self .OnInsertHoldInState ), (_ ('New passivate in state' ),self .OnInsertPassivateInState ),
22172217 (_ ('New passivate state' ),self .OnInsertPassivateState ), (_ ('New Phase test' ),self .OnInsertPhaseIs ), (_ ('New debugger stdout' ),self .OnInsertDebug ),
2218- (_ ('Get state' ),self .OnInsertGetState ), (_ ('Get sigma' ),self .OnInsertGetSigma ), (_ ('Get elapsed' ),self .OnInsertGetElapsed ), (_ ('Get message value' ),self .OnInsertGetMsgValue ), (_ ('Get message time' ),self .OnInsertGetMsgTime )])
2218+ (_ ('Get state' ),self .OnInsertGetState ), (_ ('Get phase' ), self . OnInsertGetPhase ), ( _ ( 'Get sigma' ),self .OnInsertGetSigma ), (_ ('Get elapsed' ),self .OnInsertGetElapsed ), (_ ('Get message value' ),self .OnInsertGetMsgValue ), (_ ('Get message time' ),self .OnInsertGetMsgTime )])
22192219 else :
22202220 if 'PyPDEVS' in getattr (builtins , 'DEFAULT_DEVS_DIRNAME' ):
22212221 self ._choices = collections .OrderedDict ([(_ ("New add sub model" ),self .OnAddModel ),(_ ("New remove sub model" ),self .OnRemoveModel ),(_ ("New port connection" ),self .OnDisConnectPorts ),(_ ("New port connection" ),self .OnConnectPorts ),(_ ('New debugger stdout' ),self .OnInsertDebug )])
@@ -2349,13 +2349,20 @@ def OnInsertGetState(self, event):
23492349 cp .AddText ("self.getState()" )
23502350 self .Notification (True , _ ('%s modified' % (os .path .basename (cp .GetFilename ()))), '' , '' )
23512351
2352+ def OnInsertGetPhase (self , event ):
2353+ """ Insert a sentence to get the status.
2354+ """
2355+ cp = self .nb .GetCurrentPage ()
2356+ cp .AddText ("self.getPhase()" )
2357+ self .Notification (True , _ ('%s modified' % (os .path .basename (cp .GetFilename ()))), '' , '' )
2358+
23522359 def OnInsertGetStatus (self , event ):
23532360 """ Insert a sentence to get the status.
23542361 """
23552362 cp = self .nb .GetCurrentPage ()
23562363 cp .AddText ("self.getStatus()" )
23572364 self .Notification (True , _ ('%s modified' % (os .path .basename (cp .GetFilename ()))), '' , '' )
2358-
2365+
23592366 def OnInsertGetSigma (self , event ):
23602367 """ Insert a sentence to get the sigma value.
23612368 """
0 commit comments