Changeset 1452132 in sasview
- Timestamp:
- Aug 23, 2012 6:13:24 PM (12 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:
- f9d8cd5
- Parents:
- 754c436
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/aboutbox.py
r3c965fd r1452132 104 104 config._acknowledgement) 105 105 self.static_line_2 = wx.StaticLine(self, -1) 106 self.bitmap_button_nist = wx.BitmapButton(self, -1, wx.NullBitmap) 107 self.bitmap_button_umd = wx.BitmapButton(self, -1, wx.NullBitmap) 108 self.bitmap_button_sns = wx.BitmapButton(self, -1, wx.NullBitmap) 106 109 self.bitmap_button_nsf = wx.BitmapButton(self, -1, 107 110 wx.NullBitmap) … … 113 116 self.__set_properties() 114 117 self.__do_layout() 115 118 119 self.Bind(wx.EVT_BUTTON, self.onNistLogo, self.bitmap_button_nist) 120 self.Bind(wx.EVT_BUTTON, self.onUmdLogo, self.bitmap_button_umd) 121 self.Bind(wx.EVT_BUTTON, self.onSnsLogo, self.bitmap_button_sns) 116 122 self.Bind(wx.EVT_BUTTON, self.onNsfLogo, self.bitmap_button_nsf) 117 123 self.Bind(wx.EVT_BUTTON, self.onDanseLogo, self.bitmap_button_danse) … … 137 143 138 144 # set bitmaps for logo buttons 145 image = file_dir + "/images/nist_logo.png" 146 if os.path.isfile(config._nist_logo): 147 image = config._nist_logo 148 logo = wx.Bitmap(image) 149 self.bitmap_button_nist.SetBitmapLabel(logo) 150 151 image = file_dir + "/images/umd_logo.png" 152 if os.path.isfile(config._umd_logo): 153 image = config._umd_logo 154 logo = wx.Bitmap(image) 155 self.bitmap_button_umd.SetBitmapLabel(logo) 156 157 158 image = file_dir + "/images/sns_logo.png" 159 if os.path.isfile(config._sns_logo): 160 image = config._sns_logo 161 logo = wx.Bitmap(image) 162 self.bitmap_button_sns.SetBitmapLabel(logo) 163 139 164 image = file_dir + "/images/nsf_logo.png" 140 165 if os.path.isfile(config._nsf_logo): … … 173 198 wx.NORMAL, 0, "")) 174 199 self.hyperlink_paper.Enable(True) 200 self.bitmap_button_nist.SetSize(self.bitmap_button_nist.GetBestSize()) 201 self.bitmap_button_umd.SetSize(self.bitmap_button_umd.GetBestSize()) 202 self.bitmap_button_sns.SetSize(self.bitmap_button_sns.GetBestSize()) 175 203 self.bitmap_button_nsf.SetSize(self.bitmap_button_nsf.GetBestSize()) 176 204 self.bitmap_button_danse.SetSize(self.bitmap_button_danse.GetBestSize()) … … 216 244 wx.LEFT|wx.TOP|wx.BOTTOM|wx.ADJUST_MINSIZE, 7) 217 245 sizer_main.Add(self.static_line_2, 0, wx.EXPAND, 0) 246 sizer_logos.Add(self.bitmap_button_nist, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 247 sizer_logos.Add(self.bitmap_button_umd, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 248 sizer_logos.Add(self.bitmap_button_sns, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 218 249 sizer_logos.Add(self.bitmap_button_nsf, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 219 250 sizer_logos.Add(self.bitmap_button_danse, 0, … … 233 264 # end wxGlade 234 265 266 def onNistLogo(self, event): 267 """ 268 """ 269 # wxGlade: DialogAbout.<event_handler> 270 launchBrowser(config._nist_url) 271 event.Skip() 272 273 def onUmdLogo(self, event): 274 """ 275 """ 276 # wxGlade: DialogAbout.<event_handler> 277 launchBrowser(config._umd_url) 278 event.Skip() 279 280 def onSnsLogo(self, event): 281 """ 282 """ 283 # wxGlade: DialogAbout.<event_handler> 284 launchBrowser(config._sns_url) 285 event.Skip() 286 235 287 def onNsfLogo(self, event): 236 288 """ -
sansview/local_config.py
rc329f4d r1452132 30 30 _do_tutorial = True 31 31 _acknowledgement = \ 32 '''This software was developed by the University of Tennessee as part of the33 Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 34 project funded by the US National Science Foundation. 32 '''This work originally developed as part of the DANSE project funded by the NSF 33 under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS 34 and ILL. 35 35 36 36 ''' … … 38 38 _download = "https://sourceforge.net/projects/sansviewproject/" 39 39 _authors = [] 40 _paper = "http:// danse.us/trac/sans/newticket"41 _license = "mailto:sans danse@gmail.com"40 _paper = "http://sourceforge.net/apps/trac/sansviewproject/report" 41 _license = "mailto:sansviewproject-developers@lists.sourceforge.net" 42 42 43 43 … … 47 47 test_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "test")) 48 48 49 _nist_logo = "images/nist_logo.png" 50 _umd_logo = "images/umd_logo.png" 51 _sns_logo = "images/sns_logo.png" 49 52 _nsf_logo = os.path.join(icon_path, "nsf_logo.png") 50 53 _danse_logo = os.path.join(icon_path, "danse_logo.png") 51 54 _inst_logo = os.path.join(icon_path, "utlogo.gif") 55 _nist_url = "http://www.nist.gov/" 56 _umd_url = "http://www.umd.edu/" 57 _sns_url = "http://neutrons.ornl.gov/" 52 58 _nsf_url = "http://www.nsf.gov" 53 59 _danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" … … 55 61 _corner_image = os.path.join(icon_path, "angles_flat.png") 56 62 _welcome_image = os.path.join(icon_path, "SVwelcome.png") 57 _copyright = "(c) 2009 - 2012, University of Tennessee" 63 _copyright = "(c) 2009 - 2011, University of Tennessee \n" 64 _copyright += "(c) 2012, UMD, NIST, ORNL, ISIS, ESS and ILL" 58 65 59 66
Note: See TracChangeset
for help on using the changeset viewer.