Changeset e0f28e6 in sasview for src/sas/sasgui/guiframe
- Timestamp:
- Oct 4, 2016 3:13:42 PM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- c1fdf84
- Parents:
- d4c8513a
- Location:
- src/sas/sasgui/guiframe
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/aboutbox.py
rd85c194 re0f28e6 106 106 self.bitmap_button_nist = wx.BitmapButton(self, -1, wx.NullBitmap) 107 107 self.bitmap_button_umd = wx.BitmapButton(self, -1, wx.NullBitmap) 108 self.bitmap_button_sns = wx.BitmapButton(self, -1, wx.NullBitmap) 108 self.bitmap_button_ornl = wx.BitmapButton(self, -1, wx.NullBitmap) 109 #self.bitmap_button_sns = wx.BitmapButton(self, -1, wx.NullBitmap) 109 110 #self.bitmap_button_nsf = wx.BitmapButton(self, -1, 110 111 # wx.NullBitmap) … … 115 116 self.bitmap_button_ess = wx.BitmapButton(self, -1, wx.NullBitmap) 116 117 self.bitmap_button_ill = wx.BitmapButton(self, -1, wx.NullBitmap) 118 self.bitmap_button_ansto = wx.BitmapButton(self, -1, wx.NullBitmap) 117 119 118 120 self.static_line_3 = wx.StaticLine(self, -1) … … 124 126 self.Bind(wx.EVT_BUTTON, self.onNistLogo, self.bitmap_button_nist) 125 127 self.Bind(wx.EVT_BUTTON, self.onUmdLogo, self.bitmap_button_umd) 126 self.Bind(wx.EVT_BUTTON, self.onSnsLogo, self.bitmap_button_sns) 128 #self.Bind(wx.EVT_BUTTON, self.onSnsLogo, self.bitmap_button_sns) 129 self.Bind(wx.EVT_BUTTON, self.onOrnlLogo, self.bitmap_button_ornl) 127 130 #self.Bind(wx.EVT_BUTTON, self.onNsfLogo, self.bitmap_button_nsf) 128 131 #self.Bind(wx.EVT_BUTTON, self.onDanseLogo, self.bitmap_button_danse) … … 131 134 self.Bind(wx.EVT_BUTTON, self.onEssLogo, self.bitmap_button_ess) 132 135 self.Bind(wx.EVT_BUTTON, self.onIllLogo, self.bitmap_button_ill) 136 self.Bind(wx.EVT_BUTTON, self.onAnstoLogo, self.bitmap_button_ansto) 133 137 # end wxGlade 134 138 # fill in acknowledgements … … 163 167 self.bitmap_button_umd.SetBitmapLabel(logo) 164 168 165 169 image = file_dir + "/images/ornl_logo.png" 170 if os.path.isfile(config._ornl_logo): 171 image = config._ornl_logo 172 logo = wx.Bitmap(image) 173 self.bitmap_button_ornl.SetBitmapLabel(logo) 174 175 """ 166 176 image = file_dir + "/images/sns_logo.png" 167 177 if os.path.isfile(config._sns_logo): … … 170 180 self.bitmap_button_sns.SetBitmapLabel(logo) 171 181 172 """173 182 image = file_dir + "/images/nsf_logo.png" 174 183 if os.path.isfile(config._nsf_logo): … … 206 215 logo = wx.Bitmap(image) 207 216 self.bitmap_button_ill.SetBitmapLabel(logo) 217 218 image = file_dir + "/images/ansto_logo.png" 219 if os.path.isfile(config._ansto_logo): 220 image = config._ansto_logo 221 logo = wx.Bitmap(image) 222 self.bitmap_button_ansto.SetBitmapLabel(logo) 208 223 209 224 # resize dialog window to fit version number nicely … … 227 242 self.bitmap_button_nist.SetSize(self.bitmap_button_nist.GetBestSize()) 228 243 self.bitmap_button_umd.SetSize(self.bitmap_button_umd.GetBestSize()) 229 self.bitmap_button_sns.SetSize(self.bitmap_button_sns.GetBestSize()) 244 self.bitmap_button_ornl.SetSize(self.bitmap_button_ornl.GetBestSize()) 245 #self.bitmap_button_sns.SetSize(self.bitmap_button_sns.GetBestSize()) 230 246 #self.bitmap_button_nsf.SetSize(self.bitmap_button_nsf.GetBestSize()) 231 247 #self.bitmap_button_danse.SetSize(self.bitmap_button_danse.GetBestSize()) … … 234 250 self.bitmap_button_ess.SetSize(self.bitmap_button_ess.GetBestSize()) 235 251 self.bitmap_button_ill.SetSize(self.bitmap_button_ill.GetBestSize()) 252 self.bitmap_button_ansto.SetSize(self.bitmap_button_ansto.GetBestSize()) 236 253 # end wxGlade 237 254 … … 285 302 sizer_logos.Add(self.bitmap_button_nist, 0, 286 303 wx.LEFT|wx.ADJUST_MINSIZE, 2) 287 sizer_logos.Add(self.bitmap_button_sns, 0, 304 #sizer_logos.Add(self.bitmap_button_sns, 0, 305 # wx.LEFT|wx.ADJUST_MINSIZE, 2) 306 sizer_logos.Add(self.bitmap_button_ornl, 0, 288 307 wx.LEFT|wx.ADJUST_MINSIZE, 2) 289 308 sizer_logos.Add(self.bitmap_button_isis, 0, … … 292 311 wx.LEFT|wx.ADJUST_MINSIZE, 2) 293 312 sizer_logos.Add(self.bitmap_button_ill, 0, 313 wx.LEFT|wx.ADJUST_MINSIZE, 2) 314 sizer_logos.Add(self.bitmap_button_ansto, 0, 294 315 wx.LEFT|wx.ADJUST_MINSIZE, 2) 295 316 … … 321 342 event.Skip() 322 343 344 def onOrnlLogo(self, event): 345 """ 346 """ 347 # wxGlade: DialogAbout.<event_handler> 348 launchBrowser(config._ornl_url) 349 event.Skip() 350 323 351 def onSnsLogo(self, event): 324 352 """ … … 368 396 # wxGlade: DialogAbout.<event_handler> 369 397 launchBrowser(config._ill_url) 398 event.Skip() 399 400 def onAnstoLogo(self, event): 401 """ 402 """ 403 # wxGlade: DialogAbout.<event_handler> 404 launchBrowser(config._ansto_url) 370 405 event.Skip() 371 406
Note: See TracChangeset
for help on using the changeset viewer.