Answers for "wxpython change background color"

0

wxpython change background color

import wx

class my_window(wx.Frame):
    def __init__(self, parent, id):
        wx.Frame.__init__(self,parent,id,'My Window', size=(300,200))

        #Panel for frame
        self.panel = wx.Panel(self)
        self.SetBackgroundColour('blue')

if __name__ == "__main__":
    app=wx.PySimpleApp()
    frame=my_window(parent=None,id=-1)
    frame.Show()
    app.MainLoop()
Posted by: Guest on February-24-2021

Code answers related to "wxpython change background color"

Python Answers by Framework

Browse Popular Code Answers by Language