Hi all,
somehow I do not get the auto-completition of Spyder (2.3.1 out of current
Debian Sid) working for GTK usage.
Following code was taken (and modified) from the PyGtk tutorial:
import pygtk
pygtk.require('2.0')
import gtk
dialog = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.
BUTTONS_CLOSE)
dialog.set_markup("Message")
dialog.set_title(APP_NAME + " - Error")
dialog.show()
gtk.main()
And this one from another tutorial, using another kind of import:
from gi.repository import Gtk
message = "\n<b>Error.</b>\n"+ message
dialog = Gtk.MessageDialog(None, 0,
Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, "unformated message")
dialog.set_title(APP_NAME + " - Error")
dialog.run()
In both cases I do not get the usual completition popups (except of the
parts already used in code) – be it for classes of modules, their methods
or constants – and I do not get any documentation for any methods like
'dialog.run()' or 'dialog.show()' at all.
I also tried to add some directorys to PYTHONPATH in Spyder:
/usr/lib/python2.7/dist-packages/gi/overrides/
/usr/lib/python2.7/dist-packages/gi/repository/
/usr/lib/python2.7/dist-packages/gi/_gobject/
/usr/lib/python2.7/dist-packages/gobject/
/usr/lib/python2.7/dist-packages/glib/
/usr/lib/python2.7/dist-packages/gtk-2.0/
/usr/lib/python2.7/dist-packages/gtk-2.0/gio/
/usr/lib/python2.7/dist-packages/gtk-2.0/gnome/
/usr/lib/python2.7/dist-packages/gtk-2.0/gnomevfs/
/usr/lib/python2.7/dist-packages/gtk-2.0/bonobo
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk
which also made no difference (even after restarting Spyder)
The code is in either case working as expected, so that should not be the
problem.
If anyone has an idea how to fix this I'd be quite happy.
(As I am quite new to Python, Spyder and also GTK, these trys might also
not be "the way" to import GTK libs, so if anybody could help out in any
direction I'd be happy.)
Thanks, Jaleks
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.