control_panel_gui_3.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:GoPiGo3 作者: DexterInd 项目源码 文件源码
def OnEraseBackground(self, evt):
        """
        Add a picture to the background
        """
        # yanked from ColourDB.py
        dc = evt.GetDC()

        if not dc:
            dc = wx.ClientDC(self)
            rect = self.GetUpdateRegion().GetBox()
            dc.SetClippingRect(rect)
        dc.Clear()  
        # bmp = wx.Bitmap("/home/pi/Desktop/GoBox/Troubleshooting_GUI/dex.png") # Draw the photograph.
        # dc.DrawBitmap(bmp, 0, 400)                        # Absolute position of where to put the picture
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号