Answers for "how to create simple window in wxPython"

0

how to create simple window in wxPython

import wx #pip install wxPython

class myFrame(wx.Frame):
  def __init__(self):
    super().__init__(parent=None, title="Any Name you want", pos=(200, 100), size=(300,300))
    self.Icon = wx.Icon("Icon path")
    self.mainpanel = wx.Panel(self)
    self.Show()

app = wx.App()
frame = myFrame()
app.MainLoop()
Posted by: Guest on August-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language