开发者

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜