def on_paint(self, event):
wx.BufferedPaintDC(self, self.buffer)
'''
cdc = wx.ClientDC(self)
#cdc.BeginDrawing()
if self.ips.roi != None:
self.ips.roi.draw(cdc, self.to_panel_coor)
if self.ips.mark != None:
self.ips.mark.draw(cdc, self.to_panel_coor, cur=self.ips.cur, k = self.get_scale())
if self.ips.unit!=(1,'pix'):
self.draw_ruler(cdc)
#cdc.EndDrawing()
'''
评论列表
文章目录