gtk.Entry.__init__( self )
class TextView ( gtk.TextView ) :
- def __init__ ( self , placeholder=None ) :
+ def __init__ ( self ) :
gtk.TextView.__init__( self )
- if placeholder :
- self.set_placeholder( placeholder )
def set_placeholder( self , text ) :
self.get_buffer().set_text( text )
buttons = gtk.VBox(homogeneous=False, spacing=0)
hbox.pack_end(buttons, expand=False)
- textview = hildon.TextView( "Scan results ..." )
+ textview = hildon.TextView()
+ textview.set_placeholder( "Scan results ..." )
textview.set_editable( False )
textview.set_cursor_visible( False )
textview.modify_font( pango.FontDescription("Courier 12") )