gui/component.py
def snapshot(self):
        "Capture the screen appearance of the control (to be used as facade)"
        width, height = self.wx_obj.GetSize()
        bmp = wx.EmptyBitmap(width, height)
        wdc = wx.ClientDC(self.wx_obj)
        mdc = wx.MemoryDC(bmp)
        mdc.Blit(0, 0, width, height, wdc, 0, 0)
        #bmp.SaveFile("test.bmp", wx.BITMAP_TYPE_BMP)
        wdc.Destroy()
        mdc.Destroy()
        return bmp
def snapshot(self):
        "Capture the screen appearance of the control (to be used as facade)"
        width, height = self.wx_obj.GetSize()
        bmp = wx.EmptyBitmap(width, height)
        wdc = wx.ClientDC(self.wx_obj)
        mdc = wx.MemoryDC(bmp)
        mdc.Blit(0, 0, width, height, wdc, 0, 0)
        #bmp.SaveFile("test.bmp", wx.BITMAP_TYPE_BMP)
        wdc.Destroy()
        mdc.Destroy()
        return bmp
def snapshot ( self ) : width , height = self . wx_obj . GetSize ( ) bmp = wx . EmptyBitmap ( width , height ) wdc = wx . ClientDC ( self . wx_obj ) mdc = wx . MemoryDC ( bmp ) mdc . Blit ( 0 , 0 , width , height , wdc , 0 , 0 ) #bmp.SaveFile("test.bmp", wx.BITMAP_TYPE_BMP)
 wdc . Destroy ( ) mdc . Destroy ( ) return bmp
Capture the screen appearance of the control (to be used as facade)
Capture the screen appearance of the control ( to be used as facade )