Question about wx BoxSizer background

G

Gandalf

I'm creating a table with gridSizer, and I'm trying to set cell
background like I use to do with HTML

so I tried this:
BoxName =wx.BoxSizer(wx.HORIZONTAL)
BoxName.SetBackgroundColour('#cce8fa')

and it told me their is no sauce function

so what is the right way to do it?


thanks!
 
M

Miki

Hello,
I'm creating a table with gridSizer,  and I'm trying to set cell
background like I use to do with HTML

so I tried this:
BoxName =wx.BoxSizer(wx.HORIZONTAL)
BoxName.SetBackgroundColour('#cce8fa')

and it told me their is no sauce function
A sizer is just for layout management, it does not show on the screen.
You need to set the color of the items inside the sizer or the item
the this is it's main sizer.

HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top