[Geany-devel] Keybindings for GeanyPy

Lex Trotman elextr at xxxxx
Sat Aug 6 06:21:29 UTC 2011


On 6 August 2011 16:17, Matthew Brush <mbrush at codebrainz.ca> wrote:
> On 08/05/11 23:09, Matthew Brush wrote:
>>
>> On 08/05/11 23:01, Lex Trotman wrote:
>>>
>>> On 6 August 2011 15:05, Matthew Brush<mbrush at codebrainz.ca> wrote:
>>>>
>>>> signals on it (IIR). So plugins would do:
>>>
>>>> geany.object.connect('document-open', on_document_open_handler)
>>>
>>> Does that allow on_document_open_handler() to be a bound member function?
>>>
>
> Sorry, yeah, you could do like:
>
>
>  import geany
>
>  class MyPlugin(geany.Plugin):
>
>    def __init__(self):
>      geany.object.connect('document-open', self.on_document_open)
>
>    def on_document_open(self, *args...):
>      do_stuff()
>
>
> If that's what you meant.

Exactly, coooool.

Cheers
Lex


>
> Cheers,
> Matthew Brush
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>



More information about the Devel mailing list