Parent Directory | Revision Log | Patch
revision 1.2 by jlenton, Mon Nov 24 15:56:27 2003 UTC | revision 1.3 by jlenton, Mon Nov 24 23:39:00 2003 UTC | |
---|---|---|
# | Line 20 | Line 20 |
20 | ||
21 | from UserList import UserList | from UserList import UserList |
22 | ||
23 | from errors import * | |
24 | ||
25 | __all__ = ("Box",) | __all__ = ("Box",) |
26 | ||
27 | Left = -1 | Left = -1 |
# | Line 31 class Box(UserList): | Line 33 class Box(UserList): |
33 | for i in ('parent', 'line', 'column', 'width', 'height', 'align', 'vfill', 'raw', 'wrap'): | for i in ('parent', 'line', 'column', 'width', 'height', 'align', 'vfill', 'raw', 'wrap'): |
34 | #print "%s: %s" % (i, kw[i]) | #print "%s: %s" % (i, kw[i]) |
35 | setattr(self, i, kw[i]) | setattr(self, i, kw[i]) |
36 | if self.vfill and not self.width: | |
37 | raise InvalidTemplateError, "you must specify the width of a box you want to vfill (I can't guess at everything)" | |
38 | self.encoder = self.parent.encoder | self.encoder = self.parent.encoder |
39 | self(*args) | self(*args) |
40 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |