comparison engine/extensions/pychan/widgets/textbox.py @ 255:51cc05d862f2

Merged editor_rewrite branch to trunk. This contains changes that may break compatibility against existing clients. For a list of changes that may affect your client, see: http://wiki.fifengine.de/Changes_to_pychan_and_FIFE_in_editor_rewrite_branch
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 08 Jun 2009 16:00:02 +0000
parents a2d5e2721489
children 48c99636453e
comparison
equal deleted inserted replaced
254:10b5f7f36dd4 255:51cc05d862f2
17 ==== 17 ====
18 The text can be read and set via L{distributeData} and L{collectData}. 18 The text can be read and set via L{distributeData} and L{collectData}.
19 """ 19 """
20 20
21 ATTRIBUTES = Widget.ATTRIBUTES + [UnicodeAttr('text'),Attr('filename')] 21 ATTRIBUTES = Widget.ATTRIBUTES + [UnicodeAttr('text'),Attr('filename')]
22 DEFAULT_HEXPAND = 1
23 DEFAULT_VEXPAND = 1
22 24
23 def __init__(self,text=u"",filename = "", **kwargs): 25 def __init__(self,text=u"",filename = "", **kwargs):
24 self.real_widget = fife.TextBox() 26 self.real_widget = fife.TextBox()
25 self.text = text 27 self.text = text
26 self.filename = filename 28 self.filename = filename