How do we implement zoom with wx.PseudoDc and it’s drawing element.
I have seen the script in demo “FloatCanvas.py” but it seems there is a problem with text. It’s not responding to zoom properly.
Thanks
How do we implement zoom with wx.PseudoDc and it’s drawing element.
I have seen the script in demo “FloatCanvas.py” but it seems there is a problem with text. It’s not responding to zoom properly.
Thanks
Prashant Saxena wrote:
How do we implement zoom with wx.PseudoDc and it's drawing element.
I have seen the script in demo "FloatCanvas.py" but it seems there is a problem with text. It's not responding to zoom properly.
What do you mean by "properly"?
There are two types of text objects in FloatCanvas:
Text: this text stays the same size regardless of zoom level -- always 12 points for example.
ScaledText: This kind scales with the zoom -- it is defined in world coordinates and will stay the same size relative to everything else.
If you think FloatCanvas would be useful, I suggest to check out the wiki and additional small demos in SVN:
http://morticia.cs.dal.ca/FloatCanvas/
http://svn.wxwidgets.org/viewvc/wx/wxPython/3rdParty/FloatCanvas/
to check out the latest version:
svn co http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/FloatCanvas/ FloatCanvas
And perhaps look through the archives of and/or join the mailing list:
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Prashant Saxena wrote:
How do we implement zoom with wx.PseudoDc and it's drawing element.
wx.PseudoDC doesn't support playback of scale operations.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!