parameters: (self)
return_statement: return cmd
docstring: converts the current style to an escpos command string
docstring_summary: converts the current style to an escpos command string
docstring_tokens: converts the current style to an escpos command string
function: def to_escpos(self):
          """ converts the current style to an escpos command string """
          cmd = ''
          ordered_cmds = sorted(self.cmds, key=lambda x: self.cmds[x]['_order'])
          for style in ordered_cmds:
              cmd += self.cmds[style][self.get(style)]
          return cmd
function_tokens: def to_escpos ( self ) : cmd = '' ordered_cmds = sorted ( self . cmds , key = lambda x : self . cmds [ x ] [ '_order' ] ) for style in ordered_cmds : cmd += self . cmds [ style ] [ self . get ( style ) ] return cmd