Re: [Geany-Devel] Python question

2014-04-25 Thread Matthew Brush
On 14-04-24 09:44 PM, Pavel Roschin wrote: I'm played with GeanyPy plugin and faced with a problem. Here is the source code I created to get current document from sidebar: def press(self, widget, event, data=None): if event.button != 2: return

Re: [Geany-Devel] Python question

2014-04-25 Thread Matthew Brush
On 14-04-24 11:35 PM, Matthew Brush wrote: On 14-04-24 09:44 PM, Pavel Roschin wrote: I'm played with GeanyPy plugin and faced with a problem. Here is the source code I created to get current document from sidebar: def press(self, widget, event, data=None): if event.button != 2:

Re: [Geany-Devel] Python question

2014-04-25 Thread Pavel Roschin
On 14-04-24 09:44 PM, Pavel Roschin wrote: I'm played with GeanyPy plugin and faced with a problem. Here is the source code I created to get current document from sidebar: def press(self, widget, event, data=None): if event.button != 2: return

Re: [Geany-Devel] Python question

2014-04-25 Thread Matthew Brush
On 14-04-25 10:18 AM, Pavel Roschin wrote: On 14-04-24 09:44 PM, Pavel Roschin wrote: I'm played with GeanyPy plugin and faced with a problem. Here is the source code I created to get current document from sidebar: def press(self, widget, event, data=None): if

Re: [Geany-Devel] Python question

2014-04-25 Thread Lex Trotman
It should be in the current library (not sure correct term), like if it was C, you would call `dlopen(NULL, ...)`. I'm not familiar enough with ctypes to say exactly but if it had a function like `load_library()` I'd expect you would pass `None` where it expects a filename. Alternatively, you