• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 947
  • Last Modified:

PyGTK Drag and Drop error

I have currently started learning about Python and its GUI library GTK (PyGTK) However I have tried the example:

http://python.developpez.com/cours/pygtktutorial/php/pygtken/sec-DNDMethods.php#dragndropfig

Which is a simple drag and drop and I get the error

Traceback (most recent call last):
  File "test.py", line 10, in <module>
    import gtkxpm
ImportError: No module named gtkxpm

I tried googling the error but have had no luck.

Any suggestions?
0
xDamox
Asked:
xDamox
1 Solution
 
clockwatcherCommented:
Place the following file in the directory that test.py is in:

  http://python.developpez.com/cours/pygtktutorial/php/pygtken/examples/gtkxpm.py

From the instructions:

  A button with a xpm pixmap (in gtkxpm.py) is the source for the drag
0
 
xDamoxAuthor Commented:
Thanks that work perfect
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now