NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Data > GbtFitsMonitor > GbtFitsMonitorTroubleshooting > GbtFitsMonitorProgrammersManual
   Changes | Index | Contents | Search | Statistics | Jump to Topic
Programmer's Manual


  Main     Continuum     SpectralLine     Usage     Versions     Updates     Troubleshooting     Programmer's Manual  



Background Information

GFM is part of the Sparrow package. To become a developer, you will need to register for a Source Forge account and ask AmyShelton to add you as a developer. Source Forge hosts the repository for Sparrow and hence GFM.

GFM itself was written using the DEAP programming framework. Details on the usage of this framework can be found in the DEAP Programmer's Manual.

One can write plugins to GFM without knowing much about the DEAP programming framework. However, a working knowledge of the DEAP User's Manual is required to take advantage of DEAP's plotting capabilities.


Plugin Creation Overview

This overview shows how one might create a GFM plugin. Plugin files are placed in the gfm/plugins/ directory where represents the backend from which the plugin extracts its data.

What do I need to import?

# DEAP imports
from   document    import Document
from   gui         import DEAPPanel

# Other imports
from   wxPython.wx import *
import plugins

How do I declare the class for my plugin?

For simplistic plugins, use:

class MyPlugin(plugins.GFMPlugin)

For more sophisticated functionality, use:

class MyPlugin(plugins.PlotPlugin)

Note: A PlotPlugin is a GFMPlugin.

Topic GbtFitsMonitorProgrammersManual . { Edit | Attach | Ref-By | Printable | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.3 - 16 Feb 2005 - 15:52 GMT - AmyShelton
Parents: GbtFitsMonitor > GbtFitsMonitorTroubleshooting
Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.

Data.GbtFitsMonitorProgrammersManual moved from Data.GfmProgrammersManual on 13 May 2004 - 19:48 by AmyShelton - put it back