473,508 Members | 2,357 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question about wx BoxSizer background

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!
Aug 21 '08 #1
2 2467
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,
--
Miki <mi*********@gmail.com>
http://pythonwise.blogspot.com

Aug 22 '08 #2
thanks!
Aug 22 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1457
by: Laszlo Zsolt Nagy | last post by:
Hi All, Here is the code of a frame: import wx class PanelDatabaseDefinition(wx.Panel): def __init__(self,parent): wx.Panel.__init__(self,parent) self.sizer = wx.BoxSizer(wx.VERTICAL)...
0
968
by: skol | last post by:
I have a SplitterWindow and two panels p1 and p2 in it. I can put GenericDirCtrl into the left panel (p1), however it (DirCtrl) stays small. I'd like to stretch it in the whole of p1. The...
7
315
by: John Salerno | last post by:
I have the following code: class DataAccessFrame(wx.Frame): menu_items = def __init__(self): wx.Frame.__init__(self, None, title='Database Access Panel')
1
1241
by: Eric_Dexter | last post by:
I am just trying to acess a function in wordgrid (savefile) to a button that is defined in TestFrame. I can't seem to make it work I either get an error that my variable isn't global or it makes...
5
1454
by: eric dexter | last post by:
I am just trying to acess a function in wordgrid (savefile) to a button that is defined in TestFrame. I can't seem to make it work I either get an error that my variable isn't global or it makes...
1
1151
by: MrQ | last post by:
I have some problems putting widgets ina BoxSizer. I experiment a lot but it doesn't seems to do what i like, i must be missing something. What i'm trying to do is to add button1 to a boxsizer for...
0
915
by: Jesse Aldridge | last post by:
So in the code below, I'm binding some events to a text control in wxPython. The way I've been doing it is demonstrated with the Lame_Event_Widget class. I want to factor out the repeating...
0
784
by: Gandalf | last post by:
the following code's panel elements doesn't react like a table though is haze boxsizer What is wrong here? : panel3=wx.Panel(self,-1,(10,10), style=wx.SIMPLE_BORDER, size=(370, 150))...
2
1111
by: Andy | last post by:
I want to dynamically update a list of elements shown as a checkbox list. A file is used to store the elements, and elements can be added and deleted from the list. The trouble is that the window...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.