Chris,
The tab with the grid is almost working now, there's a display disparity
that really puzzles me, and I don't know where to look for the source as no
error or warning messages are generated by python.
At the top of the module I define column labels:
colLabels = ('Components', 'Subcomponents', 'Variable', 'Current 1',
'Current 2', 'Current 3', 'Current 4', 'Current 5',
'Current 6', 'Current 7', 'Current 8', 'Current 9',
'Current 10', 'Current 11', 'Current 12', 'No Action',
'Alt 2', 'Alt 3', 'Alt 4', 'Alt 5', 'Alt 6', 'Alt 7',
'Alt 8', 'Alt 9', 'Alt 10', 'Alt 11', 'Alt 12', 'Alt 13',
'Alt 14', 'Alt 15')
and in the GenericTable class is the function:
def GetColLabelValue(self, col):
if self.colLabels:
return self.colLabels[col]
When I invoke the application and click on the appropriate tab, the grid
displays, but the first 5-1/2 labels are not visible; it starts with "
ent 3". However, if I scroll horizontally to the right, then back to the
left, the column labels become visible. It's as if there was some window
hiding the labels, but the column dividers are still visible although the
column label boxes are empty.
Have you any idea where I start looking for the source of this anomaly?
Thanks,
Rich
···
On Wed, 29 Aug 2007, Chris Mellon wrote:
In the grid API, the "table" is what describes the data - it's essentially
the model in MVC. As such, it's responsible for describing the data as
well as providing it. The wx.grid.GridTableBase API has methods that you
must implement to provide the number of columns, the column labels, and so
on.
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863