1import wx #pip install wxPython
2
3class myFrame(wx.Frame):
4 def __init__(self):
5 super().__init__(parent=None, title="Any Name you want", pos=(200, 100), size=(300,300))
6 self.Icon = wx.Icon("Icon path")
7 self.mainpanel = wx.Panel(self)
8 self.Show()
9
10app = wx.App()
11frame = myFrame()
12app.MainLoop()
13