#!/usr/bin/python """ An example of embedding a simple VBox into a window that takes a string arguement and pre-populates the text input to post via gwibber. """ from gwibber.lib.gtk import widgets import gtk class MicroblogDialog(gtk.Window): def __init__(self, contents): gtk.Window.__init__(self) self.set_default_size(420,140) poster = widgets.GwibberPosterVBox() poster.input.connect("submit",self.submitted) self.add(poster) self.show_all() poster.input.set_text(contents) def submitted(self, *args): self.destroy() MicroblogDialog("http://www.gwibber.com/asd/asdas/asd/") gtk.main()