Will PyPN or C++ extension system allow me to do this…

Discussion Forums discussion Will PyPN or C++ extension system allow me to do this…

This topic contains 0 voices and has 1 reply.

Viewing 2 posts - 1 through 2 (of 2 total)
Author Posts
Author Posts
March 12, 2010 at 11:45 am #1148

brainwipe
Member

I have an application in PHP that I coded in PN. It’s spread across a number of files and I would like to write a tool to help me refactor and perform ‘class exploring’ type functions. The sorts of tasks I will need to do are:

Searching lots of files.

Pulling out class names, member variables and method signatures.

Building some sort of hierarchy in a GUI.

Modifying batches of files base on a series of rules.

I’ve eyeballed the documentation and it’s not obvious to my fatherhood-addled brain whether PyPN will be powerful enough or whether it’s time to relearn a bit of C++ (I’m a C# .NET sort of person) and write a plug-in. Are making GUI extensions possible for PN?

[edit]What I’d really like is some sort of .NET interface for writing PN add-ons but that’s an ask so large, it can be seen from space![/edit]

March 13, 2010 at 6:05 am #17029

simon
Key Master

You can achieve almost anything you like in PyPN, given that you have all of Python available to you, but GUI is likely to be a challenge.

There’s no specific support for GUI extensions (yet) but also nothing that blocks you from launching UI. I’d almost recommend starting by just launching your tool as an .exe with whatever information you need from PN, and go from there.

Creating a .NET extension should be a case of making a wrapper for the PN api with Managed C++, but it’s something I haven’t had a chance to get around to trying yet. GUI integration would again probably be more difficult.

There’s possibly an answer in the above text, but if not feel free to ask for clarifications – happy to help you explore ideas and also to add to/modify the api to help out where it makes sense.

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

You must be logged in to reply to this topic.