Here's a code sample that doesn't require messing with the expose event:
import gtk
from gwibber.lib.gtk import widgets
class MicroblogDialog(gtk.Window):
def __init__(self, contents, parent=None):
gtk.Window.__init__(self)
self.set_default_size(420,140)
poster = widgets.GwibberPosterVBox(content=contents)
poster.input.connect("submit",self.submitted)
poster.button_send.connect("clicked", self.submitted)
self.add(poster)
self.show_all()
def submitted(self, *args):
self.destroy()
MicroblogDialog("This is a test")
gtk.main()
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/739923
Title:
GwibberPosterVBox reports an error and does not submit
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs