© Mike Driscoll 2018
Mike DriscollwxPython Recipeshttps://doi.org/10.1007/978-1-4842-3237-8_18

18. Grid Recipes

Mike Driscoll
(1)
Ankeny, New York, USA
 

Recipe 18-1. Syncing Scrolling Between Two Grids

Problem

You will occasionally n eed or want to have two scrolling windows synced. You might want to have this ability when you are comparing two files, such as a diff. Or perhaps you just want to compare two sets of data or perhaps even two photos. In this recipe, we will put two grids in a SplitterWindow and sync them up. Note that I will only be demonstrating syncing the scrolling when you scroll using the scrollbar itself.

Solution

A459092_1_En_18_Fig1_HTML.jpg
Figure 18-1
Syncing ...

Get wxPython Recipes: A Problem - Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.