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.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since c23f303 was
c23f303,
checked in by lewis, 8 years ago
|
Added backbone of corfunc perspective
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | """ |
---|
2 | Corfunc perspective |
---|
3 | """ |
---|
4 | import wx |
---|
5 | import logging |
---|
6 | from sas.sasgui.guiframe.plugin_base import PluginBase |
---|
7 | from sas.sasgui.guiframe.gui_manager import MDIFrame |
---|
8 | from sas.sasgui.perspectives.corfunc.corfunc_panel import CorfuncPanel |
---|
9 | |
---|
10 | class Plugin(PluginBase): |
---|
11 | """ |
---|
12 | This class defines the interface for a plugin class for a correlation |
---|
13 | function perspective |
---|
14 | """ |
---|
15 | |
---|
16 | def __init__(self): |
---|
17 | PluginBase.__init__(self, name="Correlation Function") |
---|
18 | logging.info("Correlation function plug-in started") |
---|
19 | self._always_active = True |
---|
20 | |
---|
21 | def get_panels(self, parent): |
---|
22 | """ |
---|
23 | Define the GUI panels |
---|
24 | """ |
---|
25 | self.parent = parent |
---|
26 | self.frame = MDIFrame(self.parent, None, 'None', (100,200)) |
---|
27 | # self.test_panel = PanelBase(parent=self.frame) |
---|
28 | # self.test_panel.set_manager(self) |
---|
29 | # self.frame.set_panel(self.test_panel) |
---|
30 | # self.perspective.append("testwindow") |
---|
31 | self.corfunc_panel = CorfuncPanel(parent=self.frame) |
---|
32 | self.frame.set_panel(self.corfunc_panel) |
---|
33 | self.corfunc_panel.set_manager(self) |
---|
34 | self.perspective.append(self.corfunc_panel.window_name) |
---|
35 | |
---|
36 | return [self.corfunc_panel] |
---|
Note: See
TracBrowser
for help on using the repository browser.