Hi,  I'm trying to use the McMillan python installer package 
(http://www.mcmillan-inc.com/install1.html) on some sources 
that use pygtk.  I'm having some problems doing so.  I was
wondering if anyone has gotten this to work in the past?

I'm aware that the installer requires me to specify which
imports are hidden in native C code.  I believe I've caught
most of these (and handling some of them manually)..  But..
after getting past that hurdle I'm seeing very weird behavior.

in libglade.c:pylibglade_register_classes there is a failure
during import:

    if ((module = PyImport_ImportModule("gtk._gtk")) != NULL) {
        PyObject *moddict = PyModule_GetDict(module);

        _PyGtkWidget_Type = (PyTypeObject *)PyDict_GetItemString(moddict, "Widget");
        if (_PyGtkWidget_Type == NULL) {
            PyErr_SetString(PyExc_ImportError,
                "cannot import name Widget from gtk._gtk");
            return;
        }

The "Widget" type is missing from the gtk._gtk module.  In fact,
I did an inventory of the class and found of the 702 normal attributes,
there were only 569 present.  The missing attributes are:

  AccelGroup AccelLabel Accessible Adjustment Alignment Arrow
  AspectFrame Bin Box Button ButtonBox Calendar CellEditable
  CellRenderer CellRendererPixbuf CellRendererText CellRendererToggle
  CheckButton CheckMenuItem CList ColorSelection ColorSelectionDialog
  Combo Container CTree CTreeNode Curve Dialog DrawingArea Editable
  [...]
  TreeSortable TreeStore TreeView TreeViewColumn VBox VButtonBox Viewport 
  VPaned VRuler VScale VScrollbar VSeparator Widget Window WindowGroup

ie.. just about all of the widget types.  I'm not too familiar with
the innards of pygtk (getting more familiar with it now).  Does this
ring a bell to anyone?  How is the process of defining this set of
attributes different than the rest of the pygtk attributes?

Any help or hints appreciated...

Tim N.

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to