DataViewCtrl column labels messed up

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

DataViewCtrl column labels messed up

Marco Prosperi

hello, sometimes when I drag the separator of two column labels to resize the column I get the column labels messed up as in the attached figure. This beaviour doesn't happen always (py3.5, wx404a1 snapshot, win10). These are my findings and my workaround (I don't have any EVT_HEADER*RESIZ* associated event handler in my original code):
- looks like EVT_HEADER_END_RESIZE and EVT_HEADER_RESIZING are not propagated from HeaderCtrl to DataViewCtrl (at least they don't appear in widgetInspector)
- If I bind an empty event handler to EVT_HEADER_RESIZING event type for HeaderCtrl I loose live update on resizing column labels but don't get the column labels messed up while/after resizing (see code below)

is anybody having the same problem?

in DataViewCtrl subclass __init__  
self.header = [x for x in self.GetChildren() if x.__class__.__name__=='Control'][0]

    def OnHeaderResizing(self,evt):

You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit