Questions tagged [gtkbuilder]

76 questions
11
votes
3 answers

How to repeatedly show a Dialog with PyGTK / Gtkbuilder?

I have created a PyGTK application that shows a Dialog when the user presses a button. The dialog is loaded in my __init__ method with: builder = gtk.Builder() builder.add_from_file("filename") builder.connect_signals(self) self.myDialog =…
Julian
  • 994
  • 1
  • 9
  • 19
11
votes
3 answers

Using custom widgets with glade / Gtkbuilder

I'm developing an application with Gtk and Glade. My impression is that it's common practice to create a subclass of GtkWindow for your main window, but I'm stuck on how I would construct my subclass from a GtkBuilder definition. Does anyone know…
Masterofpsi
  • 769
  • 6
  • 17
6
votes
1 answer

Dialog breaks when using GtkBuilder to automatically connect signals, but works when manually connecting signals

I want to have a dialog window where some buttons close the dialog and others don't. The way I do this is by using the response signal from the Gtk.Dialog to call emit_stop_by_name('response') on the dialog. (If someone knows of a better way of…
dumbmatter
  • 9,351
  • 7
  • 41
  • 80
6
votes
2 answers

GtkBuilder and "names"

I've been trying to get the "names" of all GtkWidgets in a GtkBuilder object. I've managed to get all objects from the builder object via gtk_builder_get_objects() and store them in a GSList. However, when I use gtk_widget_get_name() on the gobjects…
seininn
  • 411
  • 5
  • 13
5
votes
2 answers

What are the steps to convert from using libglade to GtkBuilder? (Python)

I have a small project that uses libglade and use the following to load the xml file: self.gladefile = "sdm.glade" self.wTree = gtk.glade.XML(self.gladefile) self.window = self.wTree.get_widget("MainWindow") if (self.window): …
lfaraone
  • 49,562
  • 17
  • 52
  • 70
5
votes
1 answer

Custom Gtk Widget with template UI

I've created a custom Gtk Widget with a template, and I want to use it on other Gtk Builder file. What I've done: Wrote a .ui file with