296 |
wxGRIDTABLE_NOTIFY_ROWS_APPENDED, |
wxGRIDTABLE_NOTIFY_ROWS_APPENDED, |
297 |
newRows - curRows) # how many |
newRows - curRows) # how many |
298 |
self.GetView().ProcessTableMessage(msg) |
self.GetView().ProcessTableMessage(msg) |
299 |
#self.GetView().FitInside() # XXX: only with wxWindows2.4 |
self.GetView().FitInside() |
300 |
elif newRows < curRows: |
elif newRows < curRows: |
301 |
msg = wxGridTableMessage(self, |
msg = wxGridTableMessage(self, |
302 |
wxGRIDTABLE_NOTIFY_ROWS_DELETED, |
wxGRIDTABLE_NOTIFY_ROWS_DELETED, |
303 |
curRows - newRows, # position |
curRows - newRows, # position |
304 |
curRows - newRows) # how many |
curRows - newRows) # how many |
305 |
self.GetView().ProcessTableMessage(msg) |
self.GetView().ProcessTableMessage(msg) |
306 |
#self.GetView().FitInside() # XXX: only with wxWindows2.4 |
self.GetView().FitInside() |
307 |
|
|
308 |
def __SetRow(self, row, group): |
def __SetRow(self, row, group): |
309 |
"""Set a row's data to that of the group. |
"""Set a row's data to that of the group. |
580 |
|
|
581 |
|
|
582 |
class Classifier(NonModalDialog): |
class Classifier(NonModalDialog): |
583 |
|
|
584 |
def __init__(self, parent, interactor, name, layer): |
def __init__(self, parent, name, layer): |
585 |
NonModalDialog.__init__(self, parent, interactor, name, |
NonModalDialog.__init__(self, parent, name, |
586 |
_("Classifier: %s") % layer.Title()) |
_("Classifier: %s") % layer.Title()) |
587 |
|
|
588 |
panel = wxPanel(self, -1, size=(100, 100)) |
panel = wxPanel(self, -1, size=(100, 100)) |