Flicker in listctrl auto width mixin

Robin, is it possible change this method in lib/mixins/listctrl.py
wxPython 2.6?

class ListCtrlAutoWidthMixin:
    (...)

    def _onResize(self, event):
        """ Respond to the wx.ListCtrl being resized.
            We automatically resize the last column in the list.
        """
        if 'gtk2' in wx.PlatformInfo:
            self._doResize()
        else:
            wx.CallAfter(self._doResize)
        event.Skip()

    (...)

It is to avoid a flicker issue in gtk2 port.

In the msw (the other platform where I can test) this problem doesn't
happen.

Ricardo Pedroso wrote:

Robin, is it possible change this method in lib/mixins/listctrl.py
wxPython 2.6?

class ListCtrlAutoWidthMixin:
    (...)

    def _onResize(self, event):
        """ Respond to the wx.ListCtrl being resized.
            We automatically resize the last column in the list.
        """
        if 'gtk2' in wx.PlatformInfo:
            self._doResize()
        else:
            wx.CallAfter(self._doResize)
        event.Skip()

    (...)

It is to avoid a flicker issue in gtk2 port.

It does help a bit, I'll check in the change.

···

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