dummyapp

sans.guiframe.dummyapp

Dummy application. Allows the user to set an external data manager

class sans.guiframe.dummyapp.SansView
class sans.guiframe.dummyapp.TestPlugin(name='Test_plugin')

Bases: sans.guiframe.gui_manager.Plugin

get_context_menu(graph=None)

This method is optional.

When the context menu of a plot is rendered, the get_context_menu method will be called to give you a chance to add a menu item to the context menu.

A ref to a Graph object is passed so that you can investigate the plot content and decide whether you need to add items to the context menu.

This method returns a list of menu items. Each item is itself a list defining the text to appear in the menu, a tool-tip help text, and a call-back method.

Parameters:
  • graph – the Graph object to which we attach the context menu
Returns:

a list of menu items with call-back function

get_panels(parent)

Create and return the list of wx.Panels for your plug-in. Define the plug-in perspective.

Panels should inherit from DefaultPanel defined below, or should present the same interface. They must define “window_caption” and “window_name”.

Parameters:
  • parent – parent window
Returns:

list of panels

get_perspective()
Get the list of panel names for this perspective
get_tools()
Returns a set of menu entries for tools
on_perspective(event)

Call back function for the perspective menu item. We notify the parent window that the perspective has changed.

Parameters:
  • event – menu event
populate_menu(id, parent)

Create and return the list of application menu items for the plug-in.

Parameters:
  • id – deprecated. Un-used.
  • parent – parent window
Returns:

plug-in menu

post_init()
Post initialization call back to close the loose ends
set_default_perspective()
Call back method that True to notify the parent that the current plug-in can be set as default perspective. when returning False, the plug-in is not candidate for an automatic default perspective setting

Table Of Contents

Previous topic

dataFitting

Next topic

gui_manager

This Page