change background color wxpython code example
Example: 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()