Problem on grid label

Dereje Engida wrote:

Hi there!
I am using grid in to create some selection, and based on the user selection to perform some specific task. Here I attach my simple program. Everything is working as planned, except the following :

1. the user can select yes or no in the Accept row, for each option, and from the datum menu when the user selects refresh, the system will check, those having no and delete the column. it is deleting the stated column, however, the label of those columns next to the deleted column will change to alphabets, instead of maintaining there original column label. can any one assist me in maintaining this?

Looks like a bug, you'll probably need to set the col labels again after the deletion.

2. The second problem I faced is, when i make the grid to be child of panel, to create buttons on the panel, which will be easy for the user to click to perform some tasks, which I put in this program in the menu bar, for the sated example it works well. But when I want to create grid with larger number of columns, only some part of the grid will be visible, and the horizontal scroll bar becomes invisible. what command should i use to make all the grid parts visible using it under panel?

Please provide a sample of this so we can see exactly what you are doing, or trying to do.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Dereje Engida wrote:

Thank you Robin for your response.
I am beginner to programming, you said my first problem is like a bug, can it be fixed?
For my second question, to make it clear, i have included here simple program. it is a modification of the previous one. it is pretty good, when the size is with in the screen. But when the size is beyond that I can not get either the horizontal scroll or can not see the grids. However, I got the scroll bars once i have used the buttons, for example if i add new datum or delete the column. why is this happening and how can i get use of both options with out this limitation?

It's because of the grid.Fit() call. That is setting the grid to be its best size, and since you have so many columns that is quite wide, much wider than the frame. If you switch to using sizers to manage your layout instead of explicit sizes and positions then this and other problems will be resolved

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

OK, não tinha visto este email…

Robin Dunn escreveu:

assinatura_propaganda.gif

···

Um abraço

Duarte

http://www.sistart.com.br