(self, widget, event)
handle button events in Gtk.Entry.
handle button events in Gtk.Entry.
handle button events in Gtk . Entry .
def _on_entry_buttonpress (self, widget, event):
        """handle button events in Gtk.Entry."""
        # Block right clicks to avoid a deadlock.
        # The correct solution here would be for _entry_to_label to trigger a
        # deferred execution handler and for that handler to check if focus is
        # in a GtkMenu. The problem being that we are unable to get a context
        # menu for the GtkEntry.
        if event.button == 3:
            return True
def _on_entry_buttonpress ( self , widget , event ) : # Block right clicks to avoid a deadlock. # The correct solution here would be for _entry_to_label to trigger a # deferred execution handler and for that handler to check if focus is # in a GtkMenu. The problem being that we are unable to get a context # menu for the GtkEntry. if event . button == 3 : return True