parameters: (self, style={})
docstring: push a new level on the stack with a style dictionnary containing style:value pairs
docstring_summary: push a new level on the stack with a style dictionnary containing style:value pairs
docstring_tokens: push a new level on the stack with a style dictionnary containing style : value pairs
function: def push(self, style={}):
          """push a new level on the stack with a style dictionnary containing style:value pairs"""
          _style = {}
          for attr in style:
              if attr in self.cmds and not style[attr] in self.cmds[attr]:
                  print('WARNING: ESC/POS PRINTING: ignoring invalid value: %s for style %s' % (style[attr], utfstr(attr)))
              else:
                  _style[attr] = self.enforce_type(attr, style[attr])
          self.stack.append(_style)
function_tokens: def push ( self , style = { } ) : _style = { } for attr in style : if attr in self . cmds and not style [ attr ] in self . cmds [ attr ] : print ( 'WARNING: ESC/POS PRINTING: ignoring invalid value: %s for style %s' % ( style [ attr ] , utfstr ( attr ) ) ) else : _style [ attr ] = self . enforce_type ( attr , style [ attr ] ) self . stack . append ( _style )