Listbook background colour

Hi

Is there a way to change the icon background colour in a listbook widget (it is white in screenshot)?

Thx in advance

Chris

Exemple.jpg

As can be seen in the WIT (http://wiki.wxpython.org/Widget_Inspection_Tool) the wx.ListBook object has a wx.ListView as a child. Currently it is always the first child. but you may want to check that. You can get access to a widget's children using the GetChildren() method or the Children property, so setting the bg color of the listctrl would look something like this:

  assert isinstance(listbook.Children[0], wx.ListCtrl)
  listbook.Children[0].SetBackgroundColour('pink')

···

On 8/31/10 5:06 AM, Christian D�molis wrote:

Hi

Is there a way to change the icon background colour in a listbook widget
(it is white in screenshot)?

--
Robin Dunn
Software Craftsman

Thx a lot.

I didn’t know this inspection widget. Great tool.

···

2010/8/31 Robin Dunn robin@alldunn.com

On 8/31/10 5:06 AM, Christian Démolis wrote:

Hi

Is there a way to change the icon background colour in a listbook widget

(it is white in screenshot)?

As can be seen in the WIT (http://wiki.wxpython.org/Widget_Inspection_Tool) the wx.ListBook object has a wx.ListView as a child. Currently it is always the first child. but you may want to check that. You can get access to a widget’s children using the GetChildren() method or the Children property, so setting the bg color of the listctrl would look something like this:

    assert isinstance(listbook.Children[0], wx.ListCtrl)

    listbook.Children[0].SetBackgroundColour('pink')

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en