PyGTK Drag and Drop error

Posted on 2007-08-01
Last Modified: 2010-08-05
I have currently started learning about Python and its GUI library GTK (PyGTK) However I have tried the example:

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

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

I tried googling the error but have had no luck.

Any suggestions?
Question by:xDamox
    LVL 25

    Accepted Solution

    Place the following file in the directory that is in:

    From the instructions:

      A button with a xpm pixmap (in is the source for the drag
    LVL 16

    Author Comment

    Thanks that work perfect

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    A set of related code is known to be a Module, it helps us to organize our code logically which is much easier for us to understand and use it. Module is an object with arbitrarily named attributes which can be used in binding and referencing. …
    Here I am using Python IDLE(GUI) to write a simple program and save it, so that we can just execute it in future. Because when we write any program and exit from Python then program that we have written will be lost. So for not losing our program we…
    Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
    Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    27 Experts available now in Live!

    Get 1:1 Help Now