[Glade-users] Accessing elements on a dialog

Tristan Van Berkom tristan.van.berkom at gmail.com
Thu Oct 22 18:23:42 EDT 2009


You can access GtkDialog->action_area an ->vbox, they
are both common container areas in the dialog.

Generally though, if you added widgets to the GtkDialog inside
Glade, you should be able to get them by name directly from
the GtkBuilder.

The cases where you want to access widgets inside a stock
composite widget (dialog in this case) should be slim to none
(i.e. if you need to play with internal widgets of any of the GTK+
stock dialogs, you're probably using it wrong, or you are
needing to compensate for some bug in GTK+).

Cheers,
          -Tristan


On Thu, Oct 22, 2009 at 7:56 PM, Pablo Recio Quijano
<rikutheronin at gmail.com> wrote:
> Hi.
>
> I built a dialog, that contains a GtkFileChooserButton (I'm working with
> python). I'm trying to access to it's contents, but I really don't know how.
> Im trying something like that:
>
> def on_btn_apply_clicked(self, widget, data=None):
>         filechooser = self.quick_game.file_chooser_team_a
>
> But the response is:
>
> AttributeError: 'gtk.Dialog' object has no attribute 'file_chooser_es_a'
>
> I guess that there is some other way to access elements on a dialog, window
> or whatever, but I really can't find it.
>
> Thanks!
>
> --
> Pablo Recio Quijano
>
> Estudiante de Ingeniería Informática (UCA)
> Becario en Alquimia Proyectos Digitales
>
> _______________________________________________
> Glade-users maillist  -  Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>
>


More information about the Glade-users mailing list