Package madgraph :: Package interface :: Module madgraph_interface :: Class AskforCustomize
[hide private]
[frames] | no frames]

Class AskforCustomize

source code

              object --+            
                       |            
extended_cmd.OriginalCmd --+        
                           |        
       extended_cmd.BasicCmd --+    
                               |    
      extended_cmd.SmartQuestion --+
                                   |
                                  AskforCustomize

A class for asking a question where in addition you can have the set command define and modifying the param_card/run_card correctly

Instance Methods [hide private]
 
__init__(self, question, allow_arg=[], default=None, mother_interface=None, *arg, **opt)
Instantiate a line-oriented interpreter framework.
source code
 
default(self, line)
Default action if line is not recognized
source code
 
reask(self, reprint_opt=True) source code
 
do_set(self, line) source code
 
get_question(self)
define the current question.
source code
 
complete_set(self, text, line, begidx, endidx)
Complete the set command
source code
 
do_help(self, line)
help message
source code
 
cmdloop(self, intro=None)
Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.
source code

Inherited from extended_cmd.SmartQuestion: __call__, complete_help, completedefault, completenames, emptyline, get_names, onecmd, postcmd, preloop

Inherited from extended_cmd.BasicCmd: complete, deal_multiple_categories, getTerminalSize, print_suggestions, set_readline_completion_display_matches_hook

Inherited from extended_cmd.OriginalCmd: columnize, parseline, postloop, precmd, print_topics

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from extended_cmd.BasicCmd: list_completion, path_completion, split_arg

Class Variables [hide private]

Inherited from extended_cmd.SmartQuestion: allowpath

Inherited from extended_cmd.OriginalCmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Properties [hide private]

Inherited from extended_cmd.SmartQuestion: answer

Inherited from object: __class__

Method Details [hide private]

__init__(self, question, allow_arg=[], default=None, mother_interface=None, *arg, **opt)
(Constructor)

source code 

Instantiate a line-oriented interpreter framework.

The optional argument 'completekey' is the readline name of a completion key; it defaults to the Tab key. If completekey is not None and the readline module is available, command completion is done automatically. The optional arguments stdin and stdout specify alternate input and output file objects; if not specified, sys.stdin and sys.stdout are used.

Overrides: object.__init__
(inherited documentation)

default(self, line)

source code 

Default action if line is not recognized

Overrides: extended_cmd.OriginalCmd.default

reask(self, reprint_opt=True)

source code 
Overrides: extended_cmd.SmartQuestion.reask

do_help(self, line)

source code 

help message

Overrides: extended_cmd.OriginalCmd.do_help

cmdloop(self, intro=None)

source code 

Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.

Overrides: extended_cmd.OriginalCmd.cmdloop
(inherited documentation)