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 8db3904 was
5878f190,
checked in by Gervaise Alina <gervyh@…>, 14 years ago
|
add loading back
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
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 | |
---|
22 | return [["Load File", hint_load_file, self.parent._on_open], |
---|
23 | #["Load File", hint_load_file, self._load_file], |
---|
24 | ["Load Folder", hint_load_folder ,self._load_folder]] |
---|
25 | |
---|
26 | def _load_file(self, event): |
---|
27 | """ |
---|
28 | Load file(s) |
---|
29 | """ |
---|
30 | def _load_folder(self, event): |
---|
31 | """ |
---|
32 | Load entire folder |
---|
33 | """ |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.