def updateStatus(self, msg):
# siz = self.GetSize()
if os.path.isfile(msg):
if ".png" in msg:
self.clearScreenShot(self.defaultScreenShotImage)
newScreenShotPath = os.path.join(self.screenShotDir, "screenshot.png")
self.newScreenShot = wx.Bitmap(newScreenShotPath)
print("????????",self.newScreenShot.GetSize())
self.screenShot.SetBitmap(self.newScreenShot)
self.Refresh(eraseBackground=True, rect=None)
self.notUseDetaul = 1
else:
pass
else:
if msg == "?????????PC??":
self.statusBar.ForegroundColour = "red"
self.statusBar.SetLabel(msg)
else:
self.statusBar.ForegroundColour = "blue"
if "ERROR: could not get idle state." in msg:
self.statusBar.SetLabel(msg)
self.statusBar.SetLabel(msg)
评论列表
文章目录