LeoQtTextBrowser events

18 views
Skip to first unread message

Adrian

unread,
Jun 20, 2017, 9:24:37 PM6/20/17
to leo-e...@googlegroups.com
Hello,

I am working to create my own auto completion plugin. 

I am presently using c.frame.body.widget.textChanged.connect to trigger popups.  Is this the most leonine and/or pythonic way to go about this?

I struggled to subclass LeoQtTextBrowser and make it replace the default.  I had it somewhat working, but it would not save nodes, and did not have syntax coloring.

Thanks,
Adrian

Edward K. Ream

unread,
Jun 21, 2017, 6:36:19 AM6/21/17
to leo-editor
On Tue, Jun 20, 2017 at 8:24 PM, Adrian <develope...@gmail.com> wrote:

I am working to create my own auto completion plugin. 

I am presently using c.frame.body.widget.textChanged.connect to trigger popups.  Is this the most leonine and/or pythonic way to go about this?

​I don't know ;-) ​
 

I would start by looking at the two existing auto completion plugins: ctagscompleter.py and codewisecompleter.py. I would also look at Leo's existing autocompleter code in the AutoCompleterClass class​ in leoKeys.py.

Edward
Reply all
Reply to author
Forward
0 new messages