Repainting damaged parts of ScrolledWindow

I've got a ScrolledWIndow on one of my Linux programs, and inside I
placed various controls. The problem is that when I scroll the window
the controls become damaged and I don't know how to repaint them. Is
there a way to repaint the damaged controls at the end of a scroll
event?

Thanks,

Isaac

Catch the EVT_SCROLLWIN and doe something like

def OnScroll(self, event):
    event.Skip()
    wx.CallAfter(self.Refresh)

···

On 2/16/07, Isaac Wagner <geekyisaac@gmail.com> wrote:

I've got a ScrolledWIndow on one of my Linux programs, and inside I
placed various controls. The problem is that when I scroll the window
the controls become damaged and I don't know how to repaint them. Is
there a way to repaint the damaged controls at the end of a scroll
event?

Thanks,

Isaac

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

--
Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com
OpenRPG+ Lead Developer
~~http://openrpg.digitalxero.net
XeroPortal Creator
~~http://www.digitalxero.net
Web Admin for Thewarcouncil.us
~~http://www.thewarcouncil.us

Thanks, I'll try that. BTW: Why is it better to use CallAfter, rather
than just calling Refresh() inside the event handler?

···

On 2/16/07, Dj Gilcrease <digitalxero@gmail.com> wrote:

Catch the EVT_SCROLLWIN and doe something like

def OnScroll(self, event):
    event.Skip()
    wx.CallAfter(self.Refresh)

On 2/16/07, Isaac Wagner <geekyisaac@gmail.com> wrote:
> I've got a ScrolledWIndow on one of my Linux programs, and inside I
> placed various controls. The problem is that when I scroll the window
> the controls become damaged and I don't know how to repaint them. Is
> there a way to repaint the damaged controls at the end of a scroll
> event?
>
> Thanks,
>
> Isaac
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>

--
Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com
OpenRPG+ Lead Developer
~~http://openrpg.digitalxero.net
XeroPortal Creator
~~http://www.digitalxero.net
Web Admin for Thewarcouncil.us
~~http://www.thewarcouncil.us

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

I dont think it matters, thats just the way I do it

···

On 2/19/07, Isaac Wagner <geekyisaac@gmail.com> wrote:

Thanks, I'll try that. BTW: Why is it better to use CallAfter, rather
than just calling Refresh() inside the event handler?