PyPN basics

Discussion Forums discussion PyPN basics

This topic contains 0 voices and has 3 replies.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
July 11, 2008 at 11:32 am #444

es_es
Member

I started using PN and would like to customize it for my needs with minor efforts so I would like to use PyPN for this and I have few questions:

1. Is there any documentation describing PyPN and scintilla APIs?

2. Is there access to CTags dictionary from PyPN?

3. Do results of CTags reside in memory or dumped to a file during a work of PN?

4. Can I create dialogs in PyPN in order to add my own fuctionality?

Thanks.

July 14, 2008 at 9:31 am #16009

simon
Key Master

1. There are a couple of scripts around on the forums for extracting pydoc from the current APIs, I’m hoping to publish something to the website/wiki soon.

2. Currently no, but you can popen ctags yourself right now. I’ll enable access to the taggers in a future release.

3. CTags results are kept in memory, they never touch a file.

4. Hmm, I haven’t tried this. You can use the InputBox to get some text from the user, but anything else would require one of the python UI libraries. I haven’t got time to play with that at the moment, but if you do let me know how you get on!

July 15, 2008 at 10:47 pm #16010

kuukkeli
Member

About the first question. I personally didn’t find the output of the scripts simon mentions too helpful. My primary guides for using PyPN are two of its source files (mod_pn.cpp and mod_scintilla.cpp) and Scintilla documentation found here.

For PyPN sources go to Google Code and browse to “trunk” -> “pnwtl” -> “pypn”. Also imminent error messages often contain helpful info about missing / incorrect parameters.

May 27, 2011 at 10:47 am #16011

CoDEmanX
Member

4. tkinter/tcl do not work, ’cause argv[] is not defined. But one could use these gui frameworks to create a dialog, compile it (py2exe) and add it as tool to PN.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.