* src/TextDoc.py (PaperStyle.set_height, PaperStyle.set_width):
Add functions. Needed for setting custom size paper. * configure.in: Set RELEASE to CVS-<date> string. svn: r1974
This commit is contained in:
@@ -151,10 +151,18 @@ class PaperStyle:
|
||||
"Returns the page height in cm"
|
||||
return self.height
|
||||
|
||||
def set_height(self,height):
|
||||
"Sets the page height in cm"
|
||||
self.height = height
|
||||
|
||||
def get_width(self):
|
||||
"Returns the page width in cm"
|
||||
return self.width
|
||||
|
||||
def set_width(self,width):
|
||||
"Sets the page width in cm"
|
||||
self.width = width
|
||||
|
||||
def get_height_inches(self):
|
||||
"Returns the page height in inches"
|
||||
return self.height / 2.54
|
||||
|
||||
Reference in New Issue
Block a user