title: How to use XBM image data in Python without referencing external file
body: <p>Apologies if this is a duplicate; I've been searching with every combination of keywords I can think of but I can't find an article that addresses this.</p>
  
  <p>I'm building a Python Tkinter application (Python 2.7.x, Win 7) which includes buttons with image data (drawn from XBM files).  For example,</p>
  
  <pre><code>self._ResetIcon  = tk.BitmapImage(file='ResetIcon.xbm')
  self._Reset      = tk.Button(self,
                               width=20, height=20,
                               image=self._ResetIcon,
                               command=self._reset)
  </code></pre>
  
  <p>Now I'm 99.9% sure there's a way to include the XBM image data as a declaration of some kind directly in the Python module itself, rather than pulling it from the external file.  But I can't find anything online that describes how to do it.</p>
  
  <p>Is there a way to do this?</p>