the program that generated this gui is given belowimport wx class sampleframe(wx frame)def __init__(self)super(__init__(parent=nonetitle='sample app'size=( )set up the first panel to be at position (the defaultand of size by with blue background self panel wx panel(selfself panel setsize( self panel setbackgroundcolour(wx colour( )set up the second panel to be at position and of size by with red background self panel wx panel(selfself panel setsize( self panel setbackgroundcolour(wx colour( )class mainapp(wx app)def oninit(self)""initialise the main gui application""frame sampleframe(frame show(return true run the gui application app mainapp(app mainloop(