def __init__(self,parent,i_size): i_col_list = list() i_col_list.append("name") i_col_list.append("format") self.prev_config ={"pos":(i_size[0]+140,60),"parent":parent} super(imgList,self).__init__(parent,i_size,i_col_list) b_prev=wx.Button(parent,wx.ID_ANY,"Preview",(i_size[0]+20,160),(70,30),wx.BU_EXACTFIT) b_prev.Bind(wx.EVT_BUTTON, self.OnPrev,b_prev) self.T = thumbnailer() self.prev_init_state() wx.StaticText(parent,wx.ID_ANY,"Preview",pos=(i_size[0]+140,40)) self.chkbx=wx.CheckBox(parent,wx.ID_ANY," Img Seq",pos =(i_size[0]+20,200))
def get_thumb(self,in_path): config = {"format":".png","frame_size":"", "i_path":in_path, "o_path":"/tmp/imgGUI/" } t = thumbnailer() t.UpdateConfig(config) t.Run()