how to create simple window in wxpython

Solutions on MaxInterview for how to create simple window in wxpython by the best coders in the world

showing results for - "how to create simple window in wxpython"
Jaylen
30 Jan 2020
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
similar questions
queries leading to this page
how to create simple window in wxpython