1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2018 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. module:: wx.lib.floatcanvas.NavCanvas
.. currentmodule:: wx.lib.floatcanvas.NavCanvas
.. highlight:: python
.. _wx.lib.floatcanvas.NavCanvas:
==========================================================================================================================================
|phoenix_title| **wx.lib.floatcanvas.NavCanvas**
==========================================================================================================================================
Combines :class:`~lib.floatcanvas.FloatCanvas.FloatCanvas` with Navigation
controls onto a :class:`Panel`
In the following very simple sample ``self`` is a frame, but it could be another
container type control::
from wx.lib.floatcanvas import NavCanvas, FloatCanvas
#Add the Canvas
self.Canvas = NavCanvas.NavCanvas(self, -1,
size=(500, 500),
ProjectionFun=None,
Debug=0,
BackgroundColor="White",
).Canvas
# add a circle
cir = FloatCanvas.Circle((10, 10), 100)
self.Canvas.AddObject(cir)
# add a rectangle
rect = FloatCanvas.Rectangle((110, 10), (100, 100), FillColor='Red')
self.Canvas.AddObject(rect)
self.Canvas.Draw()
Many samples are available in the `wxPhoenix/samples/floatcanvas` folder.
|class_summary| Classes Summary
===============================
================================================================================ ================================================================================
:ref:`~wx.lib.floatcanvas.NavCanvas.NavCanvas` :class:`~lib.floatcanvas.NavCanvas.NavCanvas` encloses a
================================================================================ ================================================================================
|
.. toctree::
:maxdepth: 1
:hidden:
wx.lib.floatcanvas.NavCanvas.NavCanvas
|