code: def get_kwargs(self):
          
  
          kwargs = {}
  
          if self.font_face:
              kwargs["fontname"] = repr(self.font_face)
          if self.font_size:
              kwargs["fontsize"] = repr(self.font_size)
          if self.font_style in self.style_wx2mpl:
              kwargs["fontstyle"] = repr(self.style_wx2mpl[self.font_style])
          if self.font_weight in self.weight_wx2mpl:
              kwargs["fontweight"] = repr(self.weight_wx2mpl[self.font_weight])
  
          kwargs["color"] = color2code(self.colorselect.GetValue())
  
          code = ", ".join(repr(key) + ": " + kwargs[key] for key in kwargs)
  
          code = "{" + code + "}"
  
          return code
docs: Return kwargs dict for text