Vertical Sync between 2 grids ...

This issue seems to be fixed in wxPython 3.0 …

···

On Monday, May 6, 2013 10:57:17 AM UTC+2, Stéphane Bausson wrote:

Hello

I try to sync vertically 2 grids …
The problem I have in the example attached is that the 2 grid are really synced when I use the vertical scrolling bar … When I scroll with Mouse wheele there is a shift of 1 to 2 lines between 2 grids …

Any idea to avoid this ?

Thanks

Stephane

This(attached test.py) seems to react the same way I sync multiple(2+) widgets all at once with a mixin I wrote.

Yes, sometimes the sync might be off by a hair… Not sure exactly why…

I recall Mike Driscoll had a similar syncing post on the Mouse vs. Python Blog, but I don’t think his worked with mouse scrolling right off the bat.
His example might or might not help iron out a difference here.

If it is truly fixed with wxPy3.0, then I wouldn’t worry about it too much if you are not planning on providing backwards-compatible support on wxVersions with your project.

But yeah, I always noticed that(slight bit off alignment) also on older wx versions.

Yeah, it does not work with mouse scrolling. The article is here for those of interested in reading it: wxPython 201: Syncing Scrolling Between Two Grids - Mouse Vs Python

I never did figure out how to tell it how to scroll using the mouse.

  • Mike
···

On Friday, January 10, 2014 5:33:49 PM UTC-6, Metallicow wrote:

This(attached test.py) seems to react the same way I sync multiple(2+) widgets all at once with a mixin I wrote.

Yes, sometimes the sync might be off by a hair… Not sure exactly why…

I recall Mike Driscoll had a similar syncing post on the Mouse vs. Python Blog, but I don’t think his worked with mouse scrolling right off the bat.
His example might or might not help iron out a difference here.

I do confirm the split issue is fixed with 3.0 … But I am facing a more annoying issue that is not being able the wheel mouse scrolling on a grid … Even Grip.py from demo does not work for me on Linux (Ubuntu, Arch, …) but works on Windows 7 …

···

On Saturday, January 11, 2014 12:33:49 AM UTC+1, Metallicow wrote:

This(attached test.py) seems to react the same way I sync multiple(2+) widgets all at once with a mixin I wrote.

Yes, sometimes the sync might be off by a hair… Not sure exactly why…

I recall Mike Driscoll had a similar syncing post on the Mouse vs. Python Blog, but I don’t think his worked with mouse scrolling right off the bat.
His example might or might not help iron out a difference here.

If it is truly fixed with wxPy3.0, then I wouldn’t worry about it too much if you are not planning on providing backwards-compatible support on wxVersions with your project.

But yeah, I always noticed that(slight bit off alignment) also on older wx versions.

El 13/01/2014 19:27, Mike Driscoll escribi�:

...
Yeah, it does not work with mouse scrolling. The article is here for
those of interested in reading it:
wxPython 201: Syncing Scrolling Between Two Grids - Mouse Vs Python

I never did figure out how to tell it how to scroll using the mouse.

Hi,

wx '2.8.12.1 (msw-unicode)'

event.Position always returns 0 on mouse scroll.

Works fine if use event.GetEventObject().GetScrollPos(orientation) instead.

···

--
Oswaldo