how to do a zoom in/out with wxpython
how to do a zoom in/out w开发者_StackOverflow社区ith 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/
精彩评论