about wxpython and grid, two problems snif ;)

R

ricky

hello

i need your help for two problemes :

1) is it possible to easily hide some row, and recover them ?

2) is it possible to have different colours on the label columns?
for instance, when a row is selected, having the label of THIS row, and
only this row, colorised in red ?

thanks for your answer and thanks to wxpython ;)
 
J

Josiah Carlson

i need your help for two problemes :

1) is it possible to easily hide some row, and recover them ?

Make the row height 0.

2) is it possible to have different colours on the label columns?
for instance, when a row is selected, having the label of THIS row, and
only this row, colorised in red ?

Checking the documentation, it seems that one can create a custom cell
renderer (subclass of wx.GridCellRenderer) that used a red background,
or perhaps one that subclassed wx.Grid and made calls to renderers with
the proper 'attr' argument "it will draw the rectangle with the
background colour from attr and set the text colour and font."

Honestly, I've not done this, so I don't know how difficult it would be.

- Josiah
 

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

Forum statistics

Threads
474,209
Messages
2,571,089
Members
47,687
Latest member
IngridXxj

Latest Threads

Top