serina
serina

Reputation: 171

how to do a zoom in/out with wxpython

how to do a zoom in/out with wxpython? what are the very basics for this purpose? I googled this, but could not find much, thanks!!

Upvotes: 1

Views: 3923

Answers (2)

Mike Driscoll
Mike Driscoll

Reputation: 33111

You should look at FloatCanvas or FloatCanvas2. I know one of them has a zooming (and maybe panning) feature. You can get ideas about drawing rectangles from Whyteboard. Here's a few links:

http://wiki.wxpython.org/FloatCanvas http://www.wxpython.org/docs/api/wx.lib.floatcanvas-module.html http://whyteboard.org/

Upvotes: 2

fseto
fseto

Reputation: 10478

Instead of zoom, perhaps 'scaling' is what you're looking for:

http://www.wxpython.org/docs/api/wx.Size-class.html#Scale

Upvotes: 2

Related Questions