Added missing setters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ecd16d74ce
commit
84c8e900a6
@ -118,6 +118,14 @@ class Diagram(object):
|
||||
return self._gridSpacing * int(x / self._gridSpacing + 0.5), self._gridSpacing * int(y / self._gridSpacing + 0.5)
|
||||
return x, y
|
||||
|
||||
def SetGridSpacing(self, spacing):
|
||||
"""Sets grid spacing."""
|
||||
self._gridSpacing = spacing
|
||||
|
||||
def SetSnapToGrid(self, snap):
|
||||
"""Sets snap-to-grid mode."""
|
||||
self._snapToGrid = snap
|
||||
|
||||
def GetGridSpacing(self):
|
||||
"""Return the grid spacing."""
|
||||
return self._gridSpacing
|
||||
|
Loading…
Reference in New Issue
Block a user