Changeset 98 for trunk

Show
Ignore:
Timestamp:
09/12/08 01:41:04 (4 years ago)
Author:
lgs
Message:

Add str method to the Area class

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/chart.py

    r96 r98  
    543543    def __init__(self, x, y, w, h): 
    544544        self.x, self.y, self.w, self.h = x, y, w, h 
     545 
     546    def __str__(self): 
     547        return "<pycha.chart.Area@(%.2f, %.2f) %.2fx%.2f" % (self.x, self.y, 
     548                                                             self.w, self.h) 
    545549 
    546550class Option(dict):