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 2c0f2a5 was
c77d859,
checked in by Gervaise Alina <gervyh@…>, 16 years ago
|
new interface design —→ proposition
|
-
Property mode set to
100644
|
File size:
2.2 KB
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | import wx |
---|
4 | |
---|
5 | class PageInfo(object): |
---|
6 | """ |
---|
7 | Contains info to reconstruct a page |
---|
8 | """ |
---|
9 | def __init__(self, parent,model=None, data=None): |
---|
10 | |
---|
11 | """ |
---|
12 | Initialization of the Panel |
---|
13 | """ |
---|
14 | #TODO: remove this once the inheritence is cleaned up |
---|
15 | ## Data member to store the dispersion object created |
---|
16 | self._disp_obj_dict = {} |
---|
17 | |
---|
18 | #Data used for fitting |
---|
19 | self.data = data |
---|
20 | # flag to allow data2D plot |
---|
21 | self.enable2D=False |
---|
22 | # model on which the fit would be performed |
---|
23 | self.model = model |
---|
24 | #fit page manager |
---|
25 | self.manager = None |
---|
26 | #Store the parent of this panel parent |
---|
27 | # For this application fitpanel is the parent |
---|
28 | self.parent = parent |
---|
29 | # Event_owner is the owner of model event |
---|
30 | self.event_owner = None |
---|
31 | |
---|
32 | # Contains link between model ,all its parameters, and panel organization |
---|
33 | self.parameters=[] |
---|
34 | # Contains list of parameters that cannot be fitted and reference to |
---|
35 | #panel objects |
---|
36 | self.fixed_param=[] |
---|
37 | # Contains list of parameters with dispersity and reference to |
---|
38 | #panel objects |
---|
39 | self.fittable_param=[] |
---|
40 | #list of dispersion paramaters |
---|
41 | self.disp_list=[] |
---|
42 | #contains link between a model and selected parameters to fit |
---|
43 | self.param_toFit=[] |
---|
44 | #dictionary of model type and model class |
---|
45 | self.model_list_box =None |
---|
46 | ## list of check box |
---|
47 | self.list_of_radiobox={} |
---|
48 | ## save current value of combobox |
---|
49 | self.formfactorcombobox = "" |
---|
50 | self.structurecombobox = "" |
---|
51 | ## Qrange |
---|
52 | self.qmin=None |
---|
53 | self.qmax=None |
---|
54 | self.npts=None |
---|
55 | ##page name |
---|
56 | self.page_name="" |
---|
57 | |
---|
58 | |
---|
59 | def save_radiobox_state(self, object ): |
---|
60 | """ |
---|
61 | save radiobox state |
---|
62 | @param object: radiobox |
---|
63 | self.list_of_check= ["label", id, state] |
---|
64 | |
---|
65 | """ |
---|
66 | label = object.GetLabel() |
---|
67 | id = object.GetId() |
---|
68 | state = object.GetValue() |
---|
69 | self.list_of_radiobox[label]=[label, id, state] |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | |
---|
Note: See
TracBrowser
for help on using the repository browser.