[Glade-users] simuler clic sur GtkFileChooserButton
Alexey Kurochkin
alexey.kurochkin at pathfinderlwd.com
Thu Aug 27 14:49:12 EDT 2009
On Thu, 2009-08-27 at 19:43 +0200, Frucot Jean-Louis wrote:
> > in C it would be
> > something like this:
> >
> > gtk_widget_mnemonic_activate (GTK_WIDGET (myFileChooserButton), FALSE);
> > gtk_window_activate_focus (GTK_WINDOW (myMainWindow));
> >
> >
> >
> It works fine with (in python):
> self.myFileChooserButton.emit("mnemonic-activate",False)
> self.myMainWindow.emit("activate-focus")
>
> thanks
>
It probably makes not much difference, but you do not have to emit
signals directly. If I understand the syntax correctly more proper
translation would be:
self.myFileChooserButton.mnemonic_activate(False)
self.myMainWindow.activate_focus()
More information about the Glade-users
mailing list