* 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:
Alex Roitman 2003-08-09 21:08:20 +00:00
parent d33937c7b9
commit 6ba9a5fb5b
3 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-08-09 Alex Roitman <shura@alex.neuro.umn.edu>
* 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.
2003-08-08 Alex Roitman <shura@alex.neuro.umn.edu>
* src/PaperMenu.py: Add A3 size to the default size list.
* src/plugins/FamilyGroup.py: Remove setup() call.

View File

@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
dnl May need to run automake && aclocal first
AC_INIT(src/gramps.py)
AM_INIT_AUTOMAKE(gramps, 0.9.3)
RELEASE=1
RELEASE=CVS-$(date +%G%m%d)
VERSIONSTRING=$VERSION
if test x"$RELEASE" != "x"

View File

@ -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