diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-22 12:51:04 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-22 12:51:04 +0800 |
| commit | e0eca135a0e541e2097075c548fadf01d4fbd8c0 (patch) | |
| tree | 9893f804d95924b089bd61150ca7a9aff5856e69 /ibus/attribute.py | |
| parent | c97e02d2acf1297072b3bc33ab25d23eae205803 (diff) | |
| download | ibus-e0eca135a0e541e2097075c548fadf01d4fbd8c0.tar.gz ibus-e0eca135a0e541e2097075c548fadf01d4fbd8c0.tar.xz ibus-e0eca135a0e541e2097075c548fadf01d4fbd8c0.zip | |
Add ATTR_UNDERLINE_*.
Diffstat (limited to 'ibus/attribute.py')
| -rw-r--r-- | ibus/attribute.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ibus/attribute.py b/ibus/attribute.py index 3925d1d..57e390b 100644 --- a/ibus/attribute.py +++ b/ibus/attribute.py @@ -23,6 +23,10 @@ __all__ = ( "ATTR_TYPE_UNDERLINE", "ATTR_TYPE_FOREGROUND", "ATTR_TYPE_BACKGROUND", + "ATTR_UNDERLINE_NONE", + "ATTR_UNDERLINE_SINGLE", + "ATTR_UNDERLINE_DOUBLE", + "ATTR_UNDERLINE_LOW", "Attribute", "AttributeUnderline", "AttributeForeground", @@ -39,6 +43,11 @@ ATTR_TYPE_UNDERLINE = 1 ATTR_TYPE_FOREGROUND = 2 ATTR_TYPE_BACKGROUND = 3 +ATTR_UNDERLINE_NONE = 0 +ATTR_UNDERLINE_SINGLE = 1 +ATTR_UNDERLINE_DOUBLE = 2 +ATTR_UNDERLINE_LOW = 3 + class Attribute: def __init__ (self, type, value, start_index, end_index): self._type = type |
