Changeset f6bb24d in sasview for src/sas/sasgui
- Timestamp:
- Mar 22, 2017 4:32:23 PM (8 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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 24fc06a
- Parents:
- e075203
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/parameters_panel_slicer.py
re075203 rf6bb24d 66 66 else: 67 67 title = wx.StaticText(self, -1, 68 "Slicer Parameters ", style=wx.ALIGN_LEFT)68 "Slicer Parameters:", style=wx.ALIGN_LEFT) 69 69 self.bck.Add(title, (1, 0), (1, 2), 70 70 flag=wx.LEFT | wx.ALIGN_CENTER_VERTICAL, border=15) … … 124 124 125 125 # batch slicing parameters 126 iy += 1 127 button_label = "Batch Slicing" 128 self.batch_slicer_button = wx.Button(parent=self, label=button_label) 129 self.Bind(wx.EVT_BUTTON, self.onToggleBatchSlicing) 126 title_text = "Batch Slicing Options:" 127 title = wx.StaticText(self, -1, title_text, style=wx.ALIGN_LEFT) 128 iy += 1 129 ln = wx.StaticLine(self, -1, style=wx.LI_VERTICAL) 130 ln.SetSize((60,60)) 131 self.bck.Add(ln, (iy, ix), (1, 2), 132 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 133 iy += 1 134 self.bck.Add(title, (iy, ix), (1, 1), 135 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 136 iy += 1 137 id = wx.NewId() 138 # TODO: Get list of data objects already loaded 139 choices = ("a", "b", "c", "d") 140 self.data_list = wx.CheckListBox(parent=self, id=id, 141 choices=choices, 142 name="Apply Slicer to Data Sets:") 143 self.bck.Add(self.data_list, (iy, ix), (1, 1), 144 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 145 iy += 1 146 button_label = "Apply Slicer to Selected Files" 147 self.batch_slicer_button = wx.Button(parent=self, 148 label=button_label) 149 self.Bind(wx.EVT_BUTTON, self.onBatchSlice) 130 150 self.bck.Add(self.batch_slicer_button, (iy, ix), (1, 1), 131 151 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 132 self.batch_slice_params = wx.GridBagSizer(5, 5) 133 self.bck.Hide(item=self.batch_slice_params, recursive=True) 134 iy += 1 135 self.bck.Add(self.batch_slice_params, (iy, ix), (1, 1), 136 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 137 iy += 1 138 ix = 1 152 # TODO: Check box for saving file 153 # TODO: append to file information and file type 154 # TODO: Send to fitting options 155 156 iy += 1 139 157 self.bck.Add((5, 5), (iy, ix), (1, 1), 140 158 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 5) … … 178 196 wx.PostEvent(self.parent, event) 179 197 180 def on ToggleBatchSlicing(self, evt=None):181 """ 182 Batch slicing parametersbutton is pushed198 def onBatchSlice(self, evt=None): 199 """ 200 Batch slicing button is pushed 183 201 :param evt: Event triggering hide/show of the batch slicer parameters 184 202 """ 185 if self.bck.IsShown(item=self.batch_slice_params): 186 self.bck.Hide(item=self.batch_slice_params, recursive=True) 187 else: 188 self.bck.Show(item=self.batch_slice_params, recursive=True) 203 for item in self.data_list.Checked: 204 print item 205 # Process each data file 206 # TODO: plot data 207 # TODO: apply slicer 208 # TODO: save file (if desired) 209 # TODO: send to fitting (if desired) 210 plot = None 211 slicer = None 212 f_name = None 189 213 190 214 def onChangeSlicer(self, evt):
Note: See TracChangeset
for help on using the changeset viewer.