1 |
# Copyright (c) 2001 by Intevation GmbH |
# Copyright (c) 2001, 2002 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
17 |
ALIGN_LEFT = "left" |
ALIGN_LEFT = "left" |
18 |
ALIGN_RIGHT = "right" |
ALIGN_RIGHT = "right" |
19 |
ALIGN_BASELINE = "baseline" |
ALIGN_BASELINE = "baseline" |
20 |
|
|
21 |
class Label: |
class Label: |
22 |
|
|
23 |
def __init__(self, x, y, text, halign, valign): |
def __init__(self, x, y, text, halign, valign): |
45 |
def RemoveLabel(self, index): |
def RemoveLabel(self, index): |
46 |
del self.labels[index] |
del self.labels[index] |
47 |
self.changed(CHANGED) |
self.changed(CHANGED) |
48 |
|
|
49 |
|
def ClearLabels(self): |
50 |
|
"""Remove all labels""" |
51 |
|
del self.labels[:] |
52 |
|
self.changed(CHANGED) |