ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 992199e was
b7c7a1c,
checked in by Gervaise Alina <gervyh@…>, 14 years ago
|
working on guiframe
|
-
Property mode set to
100644
|
File size:
971 bytes
|
Line | |
---|
1 | |
---|
2 | """ |
---|
3 | plugin DataLoader responsible of loading data |
---|
4 | """ |
---|
5 | |
---|
6 | from sans.guiframe.plugin_base import PluginBase |
---|
7 | |
---|
8 | class Plugin(PluginBase): |
---|
9 | |
---|
10 | def __init__(self, standalone=False): |
---|
11 | PluginBase.__init__(self, name="DataLaoder", standalone=standalone) |
---|
12 | |
---|
13 | def populate_file_menu(self): |
---|
14 | """ |
---|
15 | get a menu item and append it under file menu of the application |
---|
16 | add load file menu item and load folder item |
---|
17 | """ |
---|
18 | hint_load_folder = "Read file(s) from a folder and load" |
---|
19 | hint_load_folder += " them into the application" |
---|
20 | hint_load_file = "Read files and load them into the application" |
---|
21 | return [["Load File", hint_load_file, self._load_file], |
---|
22 | ["Load Folder", hint_load_folder ,self._load_file]] |
---|
23 | |
---|
24 | def _load_file(self, event): |
---|
25 | """ |
---|
26 | Load file(s) |
---|
27 | """ |
---|
28 | def _load_folder(self, event): |
---|
29 | """ |
---|
30 | Load entire folder |
---|
31 | """ |
---|
Note: See
TracBrowser
for help on using the repository browser.