简体   繁体   中英

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!!

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

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

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM