[pygtk] Confusing warning from Glade

skip at pobox.com skip at pobox.com
Wed Oct 1 03:08:20 WST 2008


I have PYTHONSTARTUP set:

    % env | grep python.py
    PYTHONSTARTUP=/home/titan/skipm/.python.py

For some reason, when I try to load a Glade file it peeks in that file and
complains:

    >>> GLADEFILE = "makefiltergui.glade"
    >>> import gtk.glade
    >>> wtree = gtk.glade.XML(GLADEFILE)
    /home/titan/skipm/.python.py:1: GtkWarning: Ignoring the separator setting
      from __future__ import division

    (.:26491): libglade-WARNING **: could not find a parent that handles
    internal children for `vbox'

Why does gtk.glade.XML care about my PYTHONSTARTUP file???

If I unset PYTHONSTARTUP it complains about __main__:

    >>> GLADEFILE = "makefiltergui.glade"
    >>> import gtk.glade
    >>> wtree = gtk.glade.XML(GLADEFILE)
    __main__:1: GtkWarning: Ignoring the separator setting

    (.:26496): libglade-WARNING **: could not find a parent that handles
    internal children for `vbox'

This is Python 2.4.5 and Gtk 2.10:

    >>> gtk.gtk_version
    (2, 10, 11)
    >>> gtk.pygtk_version
    (2, 10, 4)
    >>> sys.version
    '2.4.5 (#4, Apr 12 2008, 09:09:16) \n[GCC 3.4.1]'

Thx,

-- 
Skip Montanaro - skip at pobox.com - http://www.webfast.com/~skip/


More information about the pygtk mailing list