Login

Vertical and Horizontal Line to geraldo report

Author:
lucmult
Posted:
April 30, 2010
Language:
Python
Version:
1.1
Tags:
geraldo report
Score:
0 (after 0 ratings)

It's fixed the right and bottom for each use.

A vertical line is a line with the same right and left, so it fixed the right attribute to be the same value of the left attribute.

A horizontal line is a line with the same bottom and top, so it fixed the bottom to be the same value of the top attribute.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
class VLine(Line):
    def __getattribute__(self, name):
        if name == 'right':
            return self.left
        return super(VLine, self).__getattribute__(name)


class HLine(Line):
    def __getattribute__(self, name):
        if name == 'bottom':
            return self.top
        return super(HLine, self).__getattribute__(name)

More like this

  1. Unit Test Profiling by justquick 6 years ago
  2. Anticollate? Disinterleave? by lemonlaug 5 years, 1 month ago
  3. Widget for DateTime values on Geraldo Reports by marinho 5 years, 10 months ago
  4. Widget for Money values on Geraldo Reports by marinho 5 years, 10 months ago
  5. Group sequence into rows and columns for a TABLE by davidwtbuxton 4 years ago

Comments

Please login first before commenting.