Changeset c8d22ec in sasview
- Timestamp:
- Jun 22, 2015 12:21:22 AM (9 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 74d5dbf
- Parents:
- d20eb45
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/local_config.py
r0ea31ca rc8d22ec 12 12 __version__ = sas.sasview.__version__ 13 13 __build__ = sas.sasview.__build__ 14 __download_page__ = 'http://sourceforge.net/projects/sasview/files/' 15 __update_URL__ = ['svn.code.sf.net', 16 '/p/sasview/code/trunk/sasview.latestversion'] 14 __download_page__ = 'https://github.com/SasView/sasview/releases' 15 __update_URL__ = ['https://github.com/SasView/sasview.git'] 17 16 18 17 … … 24 23 25 24 # Debug message should be written to a file? 26 __EVT_DEBUG_2_FILE__ 25 __EVT_DEBUG_2_FILE__ = False 27 26 __EVT_DEBUG_FILENAME__ = "debug.log" 28 27 … … 39 38 '''Reference the following website: http://www.sasview.org''' 40 39 _acknowledgement_preamble_bullet3 =\ 41 '''Send us your reference for our records: sansdanse@gmail.com''' 40 '''Reference the model you used if appropriate (see documentation for refs)''' 41 _acknowledgement_preamble_bullet4 =\ 42 '''Send us your reference for our records: developers@sasview.org''' 42 43 _acknowledgement_publications = \ 43 '''This work benefited from the use of the SasView application, originally 44 '''This work benefited from the use of the SasView application, originally 44 45 developed under NSF award DMR-0520547. 45 46 ''' 46 47 _acknowledgement = \ 47 48 '''This work originally developed as part of the DANSE project funded by the NSF 48 under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS 49 under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS 49 50 and ILL. 50 51 … … 60 61 logging.info("icon path: %s" % icon_path) 61 62 media_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "media")) 62 test_path = 63 test_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "test")) 63 64 64 65 _nist_logo = os.path.join(icon_path, "nist_logo.png") … … 92 93 PLUGIN_STATE_EXTENSIONS = ['.fitv', '.inv', '.prv'] 93 94 PLUGINS_WLIST = ['Fitting files (*.fitv)|*.fitv', 94 95 95 'Invariant files (*.inv)|*.inv', 96 'P(r) files (*.prv)|*.prv'] 96 97 PLOPANEL_WIDTH = 415 97 98 PLOPANEL_HEIGTH = 370 98 99 DATAPANEL_WIDTH = 235 99 100 DATAPANEL_HEIGHT = 700 100 SPLASH_SCREEN_PATH = os.path.join(icon_path, "SVwelcome_mini.png")101 TUTORIAL_PATH = os.path.join(media_path, "Tutorial.pdf")101 SPLASH_SCREEN_PATH = os.path.join(icon_path, "SVwelcome_mini.png") 102 TUTORIAL_PATH = os.path.join(media_path, "Tutorial.pdf") 102 103 DEFAULT_STYLE = GUIFRAME.MULTIPLE_APPLICATIONS|GUIFRAME.MANAGER_ON\ 103 104 |GUIFRAME.CALCULATOR_ON|GUIFRAME.TOOLBAR_ON … … 105 106 SPLASH_SCREEN_HEIGHT = 366 106 107 SS_MAX_DISPLAY_TIME = 2000 107 WELCOME_PANEL_ON 108 WELCOME_PANEL_ON = True 108 109 WELCOME_PANEL_SHOW = False 109 110 CLEANUP_PLOT = False … … 131 132 def printEVT(message): 132 133 if __EVT_DEBUG__: 134 """ 135 :TODO - Need method doc string 136 """ 133 137 print "%g: %s" % (time.clock(), message) 134 138 135 139 if __EVT_DEBUG_2_FILE__: 136 140 out = open(__EVT_DEBUG_FILENAME__, 'a') 137 141 out.write("%10g: %s\n" % (time.clock(), message)) 138 142 out.close() 139 -
src/sas/guiframe/acknowledgebox.py
r0ea31ca rc8d22ec 21 21 (os.path.isfile("%s/%s.pyc" % (path, 'local_config'))): 22 22 fObj, path, descr = imp.find_module('local_config', [path]) 23 config = imp.load_module('local_config', fObj, path, descr) 23 config = imp.load_module('local_config', fObj, path, descr) 24 24 else: 25 25 # Try simply importing local_config 26 26 import local_config as config 27 27 except: 28 # Didn't find local config, load the default 28 # Didn't find local config, load the default 29 29 import config 30 30 31 31 32 32 class DialogAcknowledge(wx.Dialog): 33 33 """ 34 34 "Acknowledgement" Dialog Box 35 35 36 36 Shows the current method for acknowledging SasView in 37 37 scholarly publications. 38 38 39 39 """ 40 40 41 41 def __init__(self, *args, **kwds): 42 42 43 43 kwds["style"] = wx.DEFAULT_DIALOG_STYLE 44 44 wx.Dialog.__init__(self, *args, **kwds) 45 45 46 46 self.ack = wx.TextCtrl(self, style=wx.TE_LEFT|wx.TE_MULTILINE|wx.TE_BESTWRAP|wx.TE_READONLY|wx.TE_NO_VSCROLL) 47 47 self.ack.SetValue(config._acknowledgement_publications) 48 self.ack.SetMinSize((-1, 55))48 self.ack.SetMinSize((-1, 55)) 49 49 self.preamble = wx.StaticText(self, -1, config._acknowledgement_preamble) 50 50 items = [config._acknowledgement_preamble_bullet1, 51 51 config._acknowledgement_preamble_bullet2, 52 config._acknowledgement_preamble_bullet3] 52 config._acknowledgement_preamble_bullet3, 53 config._acknowledgement_preamble_bullet4] 53 54 self.list1 = wx.StaticText(self, -1, "\t(1) " + items[0]) 54 55 self.list2 = wx.StaticText(self, -1, "\t(2) " + items[1]) 55 56 self.list3 = wx.StaticText(self, -1, "\t(3) " + items[2]) 57 self.list4 = wx.StaticText(self, -1, "\t(4) " + items[3]) 56 58 self.static_line = wx.StaticLine(self, 0) 57 59 self.__set_properties() 58 60 self.__do_layout() 59 61 60 62 def __set_properties(self): 61 63 """ 64 :TODO - add method documentation 62 65 """ 63 66 # begin wxGlade: DialogAbout.__set_properties … … 70 73 def __do_layout(self): 71 74 """ 75 :TODO - add method documentation 72 76 """ 73 77 # begin wxGlade: DialogAbout.__do_layout … … 78 82 sizer_titles.Add(self.list2, 0, wx.ALL|wx.EXPAND, 5) 79 83 sizer_titles.Add(self.list3, 0, wx.ALL|wx.EXPAND, 5) 84 sizer_titles.Add(self.list4, 0, wx.ALL|wx.EXPAND, 5) 80 85 sizer_titles.Add(self.static_line, 0, wx.ALL|wx.EXPAND, 0) 81 86 sizer_titles.Add(self.ack, 0, wx.ALL|wx.EXPAND, 5) … … 86 91 self.Centre() 87 92 # end wxGlade 88 93 89 94 90 95 ##### testing code ############################################################ 91 96 class MyApp(wx.App): 92 97 """ 98 Class for running module as stand alone for testing 93 99 """ 94 100 def OnInit(self): 95 101 """ 102 Defines an init when running as standalone 96 103 """ 97 104 wx.InitAllImageHandlers() -
src/sas/guiframe/config.py
r0ea31ca rc8d22ec 9 9 __version__ = '0.0.0' 10 10 __build__ = '1' 11 __download_page__ = 'http://sourceforge.net/projects/sasview/files/' 12 __update_URL__ = ['svn.code.sf.net', 13 '/p/sasview/code/trunk/sasview.latestversion'] 11 __download_page__ = 'https://github.com/SasView/sasview/releases' 12 __update_URL__ = ['https://github.com/SasView/sasview.git'] 14 13 15 14 … … 21 20 22 21 # Debug message should be written to a file? 23 __EVT_DEBUG_2_FILE__ 22 __EVT_DEBUG_2_FILE__ = False 24 23 __EVT_DEBUG_FILENAME__ = "debug.log" 25 24 … … 36 35 '''Reference the following website: http://www.sasview.org''' 37 36 _acknowledgement_preamble_bullet3 =\ 38 '''Send us your reference for our records: sansdanse@gmail.com''' 37 '''Reference the model you used if appropriate (see documentation for refs)''' 38 _acknowledgement_preamble_bullet4 =\ 39 '''Send us your reference for our records: developers@sasview.org''' 39 40 _acknowledgement_publications = \ 40 '''This work benefited from the use of the SasView application, originally 41 '''This work benefited from the use of the SasView application, originally 41 42 developed under NSF award DMR-0520547. 42 43 ''' 43 44 _acknowledgement = \ 44 45 '''This work originally developed as part of the DANSE project funded by the NSF 45 under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS 46 under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS 46 47 and ILL. 47 48 … … 85 86 PLUGINS_WLIST = [] 86 87 PLUGIN_STATE_EXTENSIONS = [] 87 SPLASH_SCREEN_PATH = "images/danse_logo.png" 88 SPLASH_SCREEN_PATH = "images/danse_logo.png" 88 89 DEFAULT_STYLE = GUIFRAME.SINGLE_APPLICATION 89 90 SPLASH_SCREEN_WIDTH = 500 90 91 SPLASH_SCREEN_HEIGHT = 300 91 WELCOME_PANEL_ON 92 WELCOME_PANEL_ON = False 92 93 TUTORIAL_PATH = None 93 94 SS_MAX_DISPLAY_TIME = 1500 … … 125 126 126 127 def printEVT(message): 128 """ 129 :TODO - need method documentation 130 """ 127 131 if __EVT_DEBUG__: 128 132 print "%g: %s" % (time.clock(), message) 129 133 130 134 if __EVT_DEBUG_2_FILE__: 131 135 out = open(__EVT_DEBUG_FILENAME__, 'a') -
src/sas/guiframe/documentation_window.py
rd20eb45 rc8d22ec 41 41 called 42 42 (self, parent, dummy_id, path, url_instruction, title, size=(850, 540)) 43 44 :param path: path to html file beginning AFTER /doc/ and ending in the 43 44 :param path: path to html file beginning AFTER /doc/ and ending in the 45 45 file.html 46 46 :param url_instructions: anchor string or other query e.g. '#MyAnchor … … 65 65 #file:/// be another constant at the beginning that yields // for Mac 66 66 #and /// for PC. 67 #Note added June 21, 2015 PDB 67 #Note added June 21, 2015 PDB 68 68 file_path = os.path.join(docs_path, path) 69 69 url = "file:///" + urllib.quote(file_path, r'/\:')+ url_instruction
Note: See TracChangeset
for help on using the changeset viewer.