def updateUI(self, capsdir):
print("---UPDATING USER INTERFACE ---")
capsdir = self.capsfolder_box.GetValue()
fframe = self.firstframe_box.GetValue()
lframe = self.lastframe_box.GetValue()
if fframe == '':
fframe = 0
if lframe == '':
lframe = len(cap_files) - 1
last_pic = str(capsdir + cap_files[lframe])
first_pic = str(capsdir + cap_files[fframe])
self.firstframe_box.SetValue(str(fframe))
self.lastframe_box.SetValue(str(lframe))
self.updatelastpic(lframe)
self.updatefirstpic(fframe)
#Cap graph
cap_size_graph = self.graph_caps(cap_files, graphdir)
scale_size_graph = first_pic = self.scale_pic(cap_size_graph, 300)
self.cap_thumb.SetBitmap(wx.BitmapFromImage(scale_size_graph))
评论列表
文章目录