[wx-dev] [ wxwindows-Bugs-1844246 ] ScrolledPanel repaint problem with 2.8.7.1 on Linux

SourceForge.net noreply at sourceforge.net
Wed Apr 23 20:13:06 PDT 2008


Bugs item #1844246, was opened at 2007-12-04 09:50
Message generated for change (Comment added) made by pcor
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1844246&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxGTK specific
Group: Platform specific
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Dan Koch (dbkoch)
Assigned to: Nobody/Anonymous (nobody)
Summary: ScrolledPanel repaint problem with 2.8.7.1 on Linux 

Initial Comment:
This is a repost of a problem I first saw with 2.8.6.1 except that I've included some sample code this time. To recap:

1. Clicking on a wx.ScrolledPanel to set focus and using the mouse wheel to scroll causes the panel to repaint with a stutter - multiple images of child wx.Button widgets appear. Robin Dunn asked me to mention that it also happens with widgets on a normal wxScrolledWindow. I guess that means it's not specific to wxPython.

2. Dragging on the scrollbar itself works fine.

3. Clicking above and below the scrollbar works fine.

This is on a Fedora 7 system.

Thanks,
Dan

#! /usr/bin/env python

import wx
import wx.lib.scrolledpanel

class MyFrame(wx.Frame):

	def __init__(self):
		
		wx.Frame.__init__(self, None, title='My Frame', size=(640,480))
		
		panel = wx.lib.scrolledpanel.ScrolledPanel(self)
		sizer = wx.GridSizer(2, 2, 100, 100)
		
		for label in ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 
'eight', 'nine', 'ten']:
			button = wx.Button(panel, -1, label)
			sizer.Add(button, 0, wx.ALIGN_CENTER | wx.ALL, 5)
		
		panel.SetSizer(sizer)
		panel.SetupScrolling(scroll_x=True, scroll_y=True, rate_x=20, rate_y=20)
		

if __name__ == '__main__':
	app = wx.PySimpleApp()
	frame = MyFrame()
	frame.Show()
	app.MainLoop()


-- 
Dr. Daniel B. Koch
Oak Ridge National Lab
http://www.ornl.gov/sci/gist/bios/bio_koch.html
(865) 241-9096

----------------------------------------------------------------------

>Comment By: Paul Cornett (pcor)
Date: 2008-04-23 20:13

Message:
Logged In: YES 
user_id=1084745
Originator: NO

I believe this has been fixed as of rev 53277.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1844246&group_id=9863


More information about the wx-dev mailing list