Changeset 3ec4b8f in sasview for src/sas


Ignore:
Timestamp:
Jul 11, 2016 4:36:55 AM (8 years ago)
Author:
lewis
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)
Message:

Add some comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/corfunc/corfunc_panel.py

    r9f7dde3 r3ec4b8f  
    3030        self.SetWindowVariant(variant=FONT_VARIANT) 
    3131        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 
    3435        self._output_ids = None 
    3536        self.state = None 
     
    5051        if self._manager is not None: 
    5152            self._manager.show_data(data=data, reset=True) 
     53        # TODO: Set values of lower and upper q appropriately when data is 
     54        # loaded in 
    5255 
    5356 
     
    156159        self._output_ids = dict() 
    157160        for i in range(len(label_strings)): 
     161            # Create a label and a text box for each poperty 
    158162            label = wx.StaticText(self, -1, label_strings[i]) 
    159163            output_box = OutputTextCtrl(self, wx.NewId(), size=(50, 20), 
    160164                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 
    161167            self._output_ids[label_strings[i]] = output_box.GetId() 
    162168            output_sizer.Add(label, (i, 0), (1, 1), wx.LEFT | wx.EXPAND, 15) 
     
    169175            wx.LEFT | wx.RIGHT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 
    170176 
    171  
     177        # Controls 
    172178        controlbox = wx.StaticBox(self, -1, "Controls") 
    173179        controlbox_sizer = wx.StaticBoxSizer(controlbox, wx.VERTICAL) 
Note: See TracChangeset for help on using the changeset viewer.