def __init__(self, parent, title, hist):
wx.Frame.__init__(self, parent, title=title, style = wx.DEFAULT_DIALOG_STYLE)
logopath = os.path.join(root_dir, 'data/logo.ico')
self.SetIcon(wx.Icon(logopath, wx.BITMAP_TYPE_ICO))
if len(hist)==3:self.rgb(hist)
else: self.gray(hist)
评论列表
文章目录