-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello
I have a problem with hiding the widget returned by get_widget.  I use
this like that:


class ClassName(nautilus.LocationWidgetProvider):
  def keypress_F4(self, obj, uri):
    obj.hide()#this is problem:/
   
  def get_widget(self, uri, window):
    xyz = XYZ()
    def on_key_press(widget, event):#this works
      keyname = gtk.gdk.keyval_name(event.keyval)
      print 'press:', keyname
     
      func = getattr(self, 'keypress_' + keyname, None)
      if func:
        return func(xyz, uri)
   
    window.connect('key_press_event', on_key_press)
    return xyz


After press F4 widget gone, but his frame does not. After use
xyz.get_parent ().set_border_width(0) still does not looks like this
before adding a widget.

PS. Sorry for my English

- -- 

Mateusz P (aka Robal)
<nigrantis.tig...@gmail.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMYw1oAAoJENDTxcGZLX55lLEIAIEyhYJND0/T7BMz1gBdy4AX
ZmbatM/7hmv6dYAm5WqnL9MWfA84tnGjwlwPz77QTpAE8uiasdag4JF9ONfeJQzf
0qzsgTiRUz/MiEq4/z3m/5OX/43gZPYXyfm7nVujjXnfJk0UCnYY8t+dceQPDJAj
X4PyAtE+xOIGmpp7cvft80oRFt9R7SoM6FUCbeY+d3F3R8q9veztKTy3VjIvi3yI
t5QLQ+X4zH37cMMZc51nndgXpUnHiN/LvejK04dk0cH3cACNzkeVHzcBD496s0Hi
jBD1ZYko+gDj4+CAhPf+JRe3MCTxxp/x90aQomO5oka8MWCPyJt6334tmP59Bwg=
=aiR6
-----END PGP SIGNATURE-----

-- 
nautilus-list mailing list
nautilus-list@gnome.org
http://mail.gnome.org/mailman/listinfo/nautilus-list

Reply via email to