Skip to content

Commit

Permalink
Added rotation to Label for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sivasankariit committed Nov 7, 2012
1 parent 0026a8c commit 89b3dd6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Label.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ def labelProperties(self):
def labelProperties(self, propsobj):
self.labelProperties.update(propsobj)

@property
def rotation(self):
return self._labelProperties["rotation"]

@rotation.setter
def rotation(self, value):
self._labelProperties["rotation"] = value

def hasArrow(self, style="->", color="black"):
"""
Defines an arrow between the label's text and its point. Valid arrow
Expand Down

0 comments on commit 89b3dd6

Please sign in to comment.