11 |
__version__ = "$Revision$" |
__version__ = "$Revision$" |
12 |
|
|
13 |
from wxPython.wx import wxListCtrl, wxLC_REPORT, wxLIST_AUTOSIZE_USEHEADER, \ |
from wxPython.wx import wxListCtrl, wxLC_REPORT, wxLIST_AUTOSIZE_USEHEADER, \ |
14 |
EVT_LIST_ITEM_SELECTED, true, false |
EVT_LIST_ITEM_SELECTED |
15 |
from wxPython.grid import wxPyGridTableBase, wxGrid, wxGRID_VALUE_STRING, \ |
from wxPython.grid import wxPyGridTableBase, wxGrid, wxGRID_VALUE_STRING, \ |
16 |
wxGridTableMessage, wxGRIDTABLE_NOTIFY_ROWS_APPENDED, \ |
wxGridTableMessage, wxGRIDTABLE_NOTIFY_ROWS_APPENDED, \ |
17 |
wxGRIDTABLE_NOTIFY_ROWS_DELETED, wxGRIDTABLE_REQUEST_VIEW_GET_VALUES |
wxGRIDTABLE_NOTIFY_ROWS_DELETED, wxGRIDTABLE_REQUEST_VIEW_GET_VALUES |
219 |
# of the table and will destroy it when done. Otherwise you |
# of the table and will destroy it when done. Otherwise you |
220 |
# would need to keep a reference to it and call it's Destroy |
# would need to keep a reference to it and call it's Destroy |
221 |
# method later. |
# method later. |
222 |
self.SetTable(self.table, true) |
self.SetTable(self.table, True) |
223 |
|
|
224 |
#self.SetMargins(0,0) |
#self.SetMargins(0,0) |
225 |
self.AutoSizeColumn(0, true) |
self.AutoSizeColumn(0, True) |
226 |
|
|
227 |
#self.SetSelectionMode(wxGrid.wxGridSelectRows) |
#self.SetSelectionMode(wxGrid.wxGridSelectRows) |
228 |
|
|