Changeset d472e86 in sasview


Ignore:
Timestamp:
Oct 10, 2016 4:01:35 PM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
a28e52b
Parents:
3e1c9e5
git-author:
Piotr Rozyczko <rozyczko@…> (10/10/16 16:00:37)
git-committer:
Piotr Rozyczko <rozyczko@…> (10/10/16 16:01:35)
Message:

C models also available through Edit Custom Model/Advanced?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/calculator/pyconsole.py

    rec72ceb rd472e86  
    110110                    size=(PANEL_WIDTH, PANEL_HEIGHT)): 
    111111        self.config = None 
     112 
    112113        editor.EditorNotebookFrame.__init__(self, parent=parent, 
    113                                         title=title, size=size, 
    114                                         filename=filename) 
     114                                        title=title, size=size) 
    115115        self.parent = parent 
    116116        self._manager = manager 
     
    126126        self.dataDir = dataDir 
    127127        self.Centre() 
     128 
     129        # See if there is a corresponding C file 
     130        if filename != None: 
     131            c_filename = os.path.splitext(filename)[0] + ".c" 
     132            if os.path.isfile(c_filename): 
     133                self.bufferCreate(c_filename) 
     134 
     135            # If not, just open the requested .py, if any. 
     136            # Needs to be after the C file so the tab focus is correct. 
     137            if os.path.isfile(filename): 
     138                    self.bufferCreate(filename) 
    128139 
    129140        self.Bind(wx.EVT_MENU, self.OnNewFile, id=wx.ID_NEW) 
Note: See TracChangeset for help on using the changeset viewer.