Guys, I am trying to change the background color of my window in WxPython.
Here is what I got:
Why doesn't it work?
import wx
class my_window(wx.Frame):
def __int__(self, parent, id):
wx.Frame.__int__(self,parent,id,'My Window', size=(300,200))
self.Colours()
def Colours(self):
self.pnl1.SetBackgroundColour(wx.BLACK)
if __name__ == "__main__":
app=wx.PySimpleApp()
frame=my_window(parent=None,id=-1)
frame.Show()
app.MainLoop()