[Glade-users] Possible bug with File-chooser dialog?



On Tue, 2010-01-05 at 22:53 +0100, Tadej Borov?ak wrote:
Hello.

Using pygtk code, destroying the dialog in callback function does not
produce error but using the gtk.builder object, it does.Thinking about
it, it isn't really a bug but more of a quirk?

Actually, this is not GtkBulder's fault. You're having problems
because there are two rather distinct ways of dealing with pop-up
dialogs. I described this topic in one of my blog post[1], where you
can get more information (I think there's even some PyGTK code in this
post;). Before switching to GtkBuilder, you probably created dialog on
the fly when needed, while now you only create it at applications
startup.

Tadej

[1] http://tadeboro.blogspot.com/2009/05/using-pop-up-windows.html


I am in the process of converting pyGTK code to glade in my program. The
program is split into a number of files stored in packages. I want to
store the glade files in the packages and call them up on the fly inside
the packages. Is this possible or do I have to create all widgets at
startup and pass the builder objects to the package classes?    






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