self.m_panel4 = wx.Panel( self.m_notebook5, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
#添加下面两行
self.icon1=wx.Icon(name="sunny.ico",type=wx.BITMAP_TYPE_ICO)
self.SetIcon(self.icon1)
self.m_panel4 = wx.Panel( self.m_notebook5, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
#添加下面两行
self.icon1=wx.Icon(name="sunny.ico",type=wx.BITMAP_TYPE_ICO)
self.SetIcon(self.icon1)
转载于:https://www.cnblogs.com/suncf/p/10986344.html