[Glade-users] gtk.glade.XML and GtkBuilder
- From: tadeboro at gmail.com (Tadej Borovšak)
- Subject: [Glade-users] gtk.glade.XML and GtkBuilder
- Date: Sat, 17 Apr 2010 23:38:18 +0200
Hello.
libglade is deprecated in favor of GtkBuilder, so you don't need to
import gtk.glade at all. Updated code for your menu item callback
would look something like this:
----------------
def on_about_menu_item_activate( self, data=None ):
builder = gtk.Builder()
builder.add_from_file( "tutoriel.glade" )
about = builder.get_object( "aboutdialog" );
about.run()
about.hide()
---------------
Tadej
--
Tadej Borov?ak
tadeboro.blogspot.com
tadeboro at gmail.com
tadej.borovsak at gmail.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]