title: Kivy - Add an icon to tab buttons
body: <p>I am using a TabbedPanel in Kivy, it works perfectly well, but I would like to customize the tab buttons a bit and add a icon next to the text.</p>
  
  <p>Right now I have something like this :
  <a href="https://i.stack.imgur.com/pvAkH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pvAkH.png" alt="Current tab"></a></p>
  
  <p>And I would like something like that :
  <a href="https://i.stack.imgur.com/7iD4w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7iD4w.png" alt="Tab with icons"></a></p>
  
  <p>My kv file is as follows :</p>
  
  <pre><code>&lt;KivyMasterPanel&gt;
      do_default_tab: False
      id: MasterPanel
      tab_width: self.size[0]/len(self.tab_list)
  
      TabbedPanelItem:
          id: tab_A
          text: 'A'
  
      TabbedPanelItem:
          id: tab_B
          text: 'B'
  
      TabbedPanelItem:
          id: tab_C
          text: 'C'
  </code></pre>
  
  <p>Is there something I can use instead of TabbedPannelItem.text to put a BoxLayout or something inside. If possible I would like to be able to create my tabs using a kv file, but if it is not possible, no problem.</p>
  
  <p>Thank you all in advance for your help.</p>