* 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:
parent
84972ea9f2
commit
81a0f157d4
@ -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>
|
2003-08-08 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
* src/PaperMenu.py: Add A3 size to the default size list.
|
* src/PaperMenu.py: Add A3 size to the default size list.
|
||||||
* src/plugins/FamilyGroup.py: Remove setup() call.
|
* src/plugins/FamilyGroup.py: Remove setup() call.
|
||||||
|
@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
|
|||||||
dnl May need to run automake && aclocal first
|
dnl May need to run automake && aclocal first
|
||||||
AC_INIT(src/gramps.py)
|
AC_INIT(src/gramps.py)
|
||||||
AM_INIT_AUTOMAKE(gramps, 0.9.3)
|
AM_INIT_AUTOMAKE(gramps, 0.9.3)
|
||||||
RELEASE=1
|
RELEASE=CVS-$(date +%G%m%d)
|
||||||
|
|
||||||
VERSIONSTRING=$VERSION
|
VERSIONSTRING=$VERSION
|
||||||
if test x"$RELEASE" != "x"
|
if test x"$RELEASE" != "x"
|
||||||
|
@ -151,10 +151,18 @@ class PaperStyle:
|
|||||||
"Returns the page height in cm"
|
"Returns the page height in cm"
|
||||||
return self.height
|
return self.height
|
||||||
|
|
||||||
|
def set_height(self,height):
|
||||||
|
"Sets the page height in cm"
|
||||||
|
self.height = height
|
||||||
|
|
||||||
def get_width(self):
|
def get_width(self):
|
||||||
"Returns the page width in cm"
|
"Returns the page width in cm"
|
||||||
return self.width
|
return self.width
|
||||||
|
|
||||||
|
def set_width(self,width):
|
||||||
|
"Sets the page width in cm"
|
||||||
|
self.width = width
|
||||||
|
|
||||||
def get_height_inches(self):
|
def get_height_inches(self):
|
||||||
"Returns the page height in inches"
|
"Returns the page height in inches"
|
||||||
return self.height / 2.54
|
return self.height / 2.54
|
||||||
|
Loading…
Reference in New Issue
Block a user