[Glade-users] simuler clic sur GtkFileChooserButton



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()





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]