I *worked around* the bug in that manner, but I don't think we should call it a fix. I also had to disconnect from the expose event to keep the the users input from being continually written over.
import gtk
from photobomb.photobombconfig import getdatapath
from gwibber.lib.gtk import widgets
I *worked around* the bug in that manner, but I don't think we should call it a fix. I also had to disconnect from the expose event to keep the the users input from being continually written over.
import gtk
from photobomb. photobombconfig import getdatapath
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) GwibberPosterVB ox()
poster. input.connect( "submit" ,self.submitted )
poster. button_ send.connect( "clicked" , self.submitted)
self.expose_ event = poster. connect( "expose- event", self.on_ expose_ input, contents)
self.add( poster)
self.show_ all()
poster = widgets.
def on_expose_ input(self, widget, event, contents):
widget. disconnect( self.expose_ event)
widget. input.set_ text(contents)
def submitted(self, *args):
self.destroy( )