Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Torsten's answer is correct, but a little incomplete, so in the spirit of <a href="http://xkcd.com/979/" rel="nofollow">http://xkcd.com/979/</a> here is the procedure I recently settled on after much trial-and-error:</p> <p>Open yada.glade in Glade interface designer. Go to edit->project and change the project type to GtkBuilder and make sure it targets the latest version (2.24 as of this writing). Save the file, being sure that it saves in GtkBuilder format, and change the name from yada.glade to yada.ui</p> <p>Open yada.py and change the following code: </p> <pre><code>gladefile = relativize_filename(os.path.join("glade", "yada.glade")) self.wTree = gtk.glade.XML(gladefile, self.windowname) </code></pre> <p>to:</p> <pre><code>uifile = relativize_filename(os.path.join("glade", "yada.ui")) self.wTree = gtk.Builder() self.wTree.add_from_file(uifile) </code></pre> <p>Similarly change all instances of <code>self.wTree.get_widget(...)</code> to <code>self.wTree.get_object(...)</code> </p> <p>Change <code>self.wTree.signal_autoconnect(dic)</code> to <code>self.wTree.connect_signals(dic)</code></p> <p>If your code depends on the name assigned the widget in the interface designer, change <code>widget.get_name()</code> to <code>gtk.Buildable.get_name(widget)</code>. <code>widget.get_name()</code> now just returns the widget type. EDIT: You also need to change <code>widget.set_name('my_widget')</code> to <code>gtk.Buildable.set_name(widget, 'my_widget')</code>.</p> <p>Delete <code>import gtk.glade</code></p> <p>I found numerous unused signals defined in the yada.ui xml file, I had to open the xml file and manually delete them to eliminate the warnings they caused.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload