Re: [gedit-list] First steps in making a plugin



Paolo Borelli skrev:
Il giorno mer, 20/06/2007 alle 22.05 +0200, August Karlstrom ha scritto:
[...]
$ cat test.py
import gedit

class ExamplePyPlugin(gedit.Plugin):
         def activate(self, window):
                 pass

         def deactivate(self, window):
                 pass

         def update_ui(self, window):
                 pass

$ python test.py
Traceback (most recent call last):
   File "test.py", line 1, in <module>
     import gedit
ImportError: No module named gedit


you cannot run a gedit plugin in a python console, the gedit module is
provided at runtime by gedit itself

OK, I see. I had some unrelated problem and I thought it had to do with the above output from python. Thus far I have a minimal working plugin.


Thanks,

August



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]