Changeset d955bf19 in sasview for guiframe/dummyapp.py
- Timestamp:
- Jun 3, 2010 11:36:56 AM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- d7a39e5
- Parents:
- 83f4445
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/dummyapp.py
rd68c655 rd955bf19 1 1 """ 2 3 2 Dummy application. 3 Allows the user to set an external data manager 4 4 """ 5 5 import gui_manager … … 9 9 def populate_menu(self, id, parent): 10 10 """ 11 Create and return the list of application menu 12 items for the plug-in. 13 14 @param id: deprecated. Un-used. 15 @param parent: parent window 16 @return: plug-in menu 11 Create and return the list of application menu 12 items for the plug-in. 13 14 :param id: deprecated. Un-used. 15 :param parent: parent window 16 17 :return: plug-in menu 18 17 19 """ 18 20 import wx … … 34 36 def get_panels(self, parent): 35 37 """ 36 Create and return the list of wx.Panels for your plug-in. 37 Define the plug-in perspective. 38 39 Panels should inherit from DefaultPanel defined below, 40 or should present the same interface. They must define 41 "window_caption" and "window_name". 42 43 @param parent: parent window 44 @return: list of panels 38 Create and return the list of wx.Panels for your plug-in. 39 Define the plug-in perspective. 40 41 Panels should inherit from DefaultPanel defined below, 42 or should present the same interface. They must define 43 "window_caption" and "window_name". 44 45 :param parent: parent window 46 47 :return: list of panels 48 45 49 """ 46 50 ## Save a reference to the parent … … 59 63 def get_tools(self): 60 64 """ 61 65 Returns a set of menu entries for tools 62 66 """ 63 67 def _test_dialog(event): … … 70 74 def get_context_menu(self, graph=None): 71 75 """ 72 This method is optional. 76 This method is optional. 77 78 When the context menu of a plot is rendered, the 79 get_context_menu method will be called to give you a 80 chance to add a menu item to the context menu. 73 81 74 When the context menu of a plot is rendered, the 75 get_context_menu method will be called to give you a 76 chance to add a menu item to the context menu. 77 78 A ref to a Graph object is passed so that you can 79 investigate the plot content and decide whether you 80 need to add items to the context menu. 81 82 This method returns a list of menu items. 83 Each item is itself a list defining the text to 84 appear in the menu, a tool-tip help text, and a 85 call-back method. 86 87 @param graph: the Graph object to which we attach the context menu 88 @return: a list of menu items with call-back function 82 A ref to a Graph object is passed so that you can 83 investigate the plot content and decide whether you 84 need to add items to the context menu. 85 86 This method returns a list of menu items. 87 Each item is itself a list defining the text to 88 appear in the menu, a tool-tip help text, and a 89 call-back method. 90 91 :param graph: the Graph object to which we attach the context menu 92 93 :return: a list of menu items with call-back function 89 94 """ 90 95 return [["Menu text", … … 96 101 def __init__(self): 97 102 """ 98 103 Initialization 99 104 """ 100 105 self.gui = gui_manager.ViewApp(0)
Note: See TracChangeset
for help on using the changeset viewer.