Belle II Software  release-08-01-10
Basf2IPythonPrompt Class Reference
Inheritance diagram for Basf2IPythonPrompt:
Collaboration diagram for Basf2IPythonPrompt:

Public Member Functions

def in_prompt_tokens (self, cli=None)
 
def out_prompt_tokens (self)
 

Detailed Description

Provide slightly customized prompts when running basf2 interactively

Definition at line 31 of file interactive.py.

Member Function Documentation

◆ in_prompt_tokens()

def in_prompt_tokens (   self,
  cli = None 
)
Input prompt

Definition at line 34 of file interactive.py.

34  def in_prompt_tokens(self, cli=None):
35  """Input prompt"""
36  return [(Token.Prompt, "basf2 in ["),
37  (Token.PromptNum, str(self.shell.execution_count)),
38  (Token.Prompt, ']: ')]
39 

◆ out_prompt_tokens()

def out_prompt_tokens (   self)
Output prompt

Definition at line 40 of file interactive.py.


The documentation for this class was generated from the following file: