What is the best way to set the background color for a wxFrame containing a wxGrid where
the wxGrid is smaller than the wxFrame? I want to set the space in the frame that is not occupied
by the grid to have a background colour of black rather than the default.
What is the best way to set the background color for a wxFrame containing a wxGrid where
the wxGrid is smaller than the wxFrame? I want to set the space in the frame that is not occupied
by the grid to have a background colour of black rather than the default.
frame.SetBackgroundColour("black")
Keep in mind that if the grid is the only child of the frame then the frame will by default resize it to fill the frame. If you want to have space around the grid then you'll either need to use a sizer, or implement your own EVT_SIZE handler and resize/reposition the grid how you want it.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!