- Timestamp:
- Jul 11, 2016 4:36:55 AM (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.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 4198ea8
- Parents:
- 9f7dde3
- git-author:
- Lewis O'Driscoll <lewis.o'driscoll@…> (07/01/16 11:37:57)
- git-committer:
- Lewis O'Driscoll <lewis.o'driscoll@…> (07/11/16 04:36:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/corfunc/corfunc_panel.py
r9f7dde3 r3ec4b8f 30 30 self.SetWindowVariant(variant=FONT_VARIANT) 31 31 self._manager = manager 32 self._data = data 33 self._data_name_box = None 32 self._data = data # The data to be analysed 33 self._data_name_box = None # Text box to show name of file 34 # Dictionary for saving IDs of text boxes used to display output data 34 35 self._output_ids = None 35 36 self.state = None … … 50 51 if self._manager is not None: 51 52 self._manager.show_data(data=data, reset=True) 53 # TODO: Set values of lower and upper q appropriately when data is 54 # loaded in 52 55 53 56 … … 156 159 self._output_ids = dict() 157 160 for i in range(len(label_strings)): 161 # Create a label and a text box for each poperty 158 162 label = wx.StaticText(self, -1, label_strings[i]) 159 163 output_box = OutputTextCtrl(self, wx.NewId(), size=(50, 20), 160 164 value="-", style=wx.ALIGN_CENTER_HORIZONTAL) 165 # Save the ID of each of the text boxes for accessing after the 166 # output data has been calculated 161 167 self._output_ids[label_strings[i]] = output_box.GetId() 162 168 output_sizer.Add(label, (i, 0), (1, 1), wx.LEFT | wx.EXPAND, 15) … … 169 175 wx.LEFT | wx.RIGHT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 170 176 171 177 # Controls 172 178 controlbox = wx.StaticBox(self, -1, "Controls") 173 179 controlbox_sizer = wx.StaticBoxSizer(controlbox, wx.VERTICAL)
Note: See TracChangeset
for help on using the changeset viewer.