~ubuntu-branches/ubuntu/karmic/ibus/karmic-updates

« back to all changes in this revision

Viewing changes to ibus/text.py

  • Committer: Bazaar Package Importer
  • Author(s): LI Daobing
  • Date: 2009-07-23 20:22:09 UTC
  • mfrom: (1.1.4 upstream) (6.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090723202209-bmgqa80g1umg8l2p
Tags: 1.2.0.20090723-1
new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
from attribute import AttrList
30
30
 
31
31
class Text(Serializable):
 
32
    __gtype_name__ = "PYIBusText"
32
33
    __NAME__ = "IBusText"
33
34
    def __init__ (self, text="", attrs=None):
34
35
        super(Text, self).__init__()
57
58
        self.__text = struct.pop(0)
58
59
        self.__attrs = deserialize_object(struct.pop(0))
59
60
 
60
 
serializable_register(Text)
61
 
 
62
61
def test():
63
62
    text = Text("Hello")
64
63
    value = serialize_object(text)