def display_options(options, settings):
 table = []
 for (idx, opt) in enumerate(options.keys()):
  tmp = []
  tmp.append((idx + 1))
  tmp.append(options[opt].display)
  tmp.append(options[opt].getStr())
  tmp.append(options[opt].type)
  tmp.append(options[opt].required)
  table.append(tmp)
 if (len(table) > 0):
  config.pptable(([settings] + table))
 else:
  Msg(' DCTB Module has no options.')
 print ((((((color.B_YELLOW + '0') + color.B_GREEN) + ') ') + color.B_WHITE) + 'Back') + color.END)
 return table

def display_options ( options , settings ) : table = [ ] for ( idx , opt ) in enumerate ( options . keys ( ) ) : tmp = [ ] tmp . append ( ( idx + 1 ) ) tmp . append ( options [ opt ] . display ) tmp . append ( options [ opt ] . getStr ( ) ) tmp . append ( options [ opt ] . type ) tmp . append ( options [ opt ] . required ) table . append ( tmp ) if ( len ( table ) > 0 ) : config . pptable ( ( [ settings ] + table ) ) else : Msg ( ' DCTB Module has no options.' ) print ( ( ( ( ( ( color . B_YELLOW + '0' ) + color . B_GREEN ) + ') ' ) + color . B_WHITE ) + 'Back' ) + color . END ) return table
given a modules options and the column headers .