gui/component.py
def __on_erase_background(self, evt):
        "Draw the image as background"
        if self._bitmap:
            dc = evt.GetDC()
            
            if not dc:
                dc = wx.ClientDC(self)
                r = self.wx_obj.GetUpdateRegion().GetBox()
                dc.SetClippingRegion(r.x, r.y, r.width, r.height)
                                                           
            if self._background_tiling:
                self.__tile_background(dc)
            else:
                dc.DrawBitmapPoint(self._bitmap.get_bits(), (0, 0))
def __on_erase_background(self, evt):
        "Draw the image as background"
        if self._bitmap:
            dc = evt.GetDC()
            
            if not dc:
                dc = wx.ClientDC(self)
                r = self.wx_obj.GetUpdateRegion().GetBox()
                dc.SetClippingRegion(r.x, r.y, r.width, r.height)
                                                           
            if self._background_tiling:
                self.__tile_background(dc)
            else:
                dc.DrawBitmapPoint(self._bitmap.get_bits(), (0, 0))
def __on_erase_background ( self , evt ) : if self . _bitmap : dc = evt . GetDC ( ) if not dc : dc = wx . ClientDC ( self ) r = self . wx_obj . GetUpdateRegion ( ) . GetBox ( ) dc . SetClippingRegion ( r . x , r . y , r . width , r . height ) if self . _background_tiling : self . __tile_background ( dc ) else : dc . DrawBitmapPoint ( self . _bitmap . get_bits ( ) , ( 0 , 0 ) )
Draw the image as background
Draw the image as background