Use the gtk entry
This commit is contained in:
parent
1412b984e0
commit
a9f26a1faa
@ -25,7 +25,6 @@ from ConfigParser import ConfigParser
|
|||||||
|
|
||||||
from sugar import env
|
from sugar import env
|
||||||
|
|
||||||
from sugar.graphics import entry
|
|
||||||
from sugar.graphics import units
|
from sugar.graphics import units
|
||||||
from sugar.graphics import font
|
from sugar.graphics import font
|
||||||
from sugar.graphics import color
|
from sugar.graphics import color
|
||||||
@ -185,8 +184,9 @@ class EntryBox(hippo.CanvasBox, hippo.CanvasItem):
|
|||||||
self._label.props.font_desc = font.DEFAULT.get_pango_desc()
|
self._label.props.font_desc = font.DEFAULT.get_pango_desc()
|
||||||
self.append(self._label)
|
self.append(self._label)
|
||||||
|
|
||||||
self._entry = entry.Entry()
|
self._entry = gtk.Entry()
|
||||||
self.append(self._entry)
|
entry_item = hippo.CanvasWidget(widget=self._entry)
|
||||||
|
self.append(entry_item)
|
||||||
|
|
||||||
def get_text(self):
|
def get_text(self):
|
||||||
return self._entry.props.text
|
return self._entry.props.text
|
||||||
|
Loading…
Reference in New Issue
Block a user