Ignore:
Timestamp:
Dec 21, 2011 10:03:07 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
7983000f
Parents:
dda70f7
Message:

modified path and enabled New menu for custom model editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/pyconsole.py

    r490b281 r86be650  
    7070        if not title.count('Python Shell'): 
    7171            # Delete menu item (open and new) if not python shell 
    72             self.fileMenu.Delete(wx.ID_NEW) 
     72            #self.fileMenu.Delete(wx.ID_NEW) 
    7373            self.fileMenu.Delete(wx.ID_OPEN) 
    7474         
     
    157157        if self.buffer and self.buffer.doc.filedir: 
    158158            filedir = self.buffer.doc.filedir 
     159        if not filedir: 
     160            filedir = self.dataDir 
    159161        result = editor.openSingle(directory=filedir,   
    160162                            wildcard='Python Files (*.py)|*.py') 
     
    171173        if self.buffer and self.buffer.doc.filedir: 
    172174            filedir = self.buffer.doc.filedir 
     175        if not filedir: 
     176            filedir = self.dataDir 
    173177        result = editor.saveSingle(directory=filedir,  
    174178                                   filename='untitled.py', 
Note: See TracChangeset for help on using the changeset viewer.