Changeset 1779e72 in sasview for src/sas/sasgui/guiframe/aboutbox.py
- Timestamp:
- Apr 4, 2017 10:27:56 AM (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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7b15990, dd11014
- Parents:
- 7b7ec05
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/aboutbox.py
r49e000b r1779e72 118 118 self.bitmap_button_ansto = wx.BitmapButton(self, -1, wx.NullBitmap) 119 119 self.bitmap_button_tudelft = wx.BitmapButton(self, -1, wx.NullBitmap) 120 self.bitmap_button_dls = wx.BitmapButton(self, -1, wx.NullBitmap) 120 121 121 122 self.static_line_3 = wx.StaticLine(self, -1) … … 137 138 self.Bind(wx.EVT_BUTTON, self.onAnstoLogo, self.bitmap_button_ansto) 138 139 self.Bind(wx.EVT_BUTTON, self.onTudelftLogo, self.bitmap_button_tudelft) 140 self.Bind(wx.EVT_BUTTON, self.onDlsLogo, self.bitmap_button_dls) 139 141 # end wxGlade 140 142 # fill in acknowledgements … … 229 231 logo = wx.Bitmap(image) 230 232 self.bitmap_button_tudelft.SetBitmapLabel(logo) 233 234 image = file_dir + "/images/dls_logo.png" 235 if os.path.isfile(config._dls_logo): 236 image = config._dls_logo 237 logo = wx.Bitmap(image) 238 self.bitmap_button_dls.SetBitmapLabel(logo) 231 239 232 240 # resize dialog window to fit version number nicely … … 260 268 self.bitmap_button_ansto.SetSize(self.bitmap_button_ansto.GetBestSize()) 261 269 self.bitmap_button_tudelft.SetSize(self.bitmap_button_tudelft.GetBestSize()) 270 self.bitmap_button_dls.SetSize(self.bitmap_button_dls.GetBestSize()) 262 271 # end wxGlade 263 272 … … 325 334 sizer_logos.Add(self.bitmap_button_tudelft, 0, 326 335 wx.LEFT|wx.ADJUST_MINSIZE, 2) 336 sizer_logos.Add(self.bitmap_button_dls, 0, 337 wx.LEFT|wx.ADJUST_MINSIZE, 2) 327 338 328 339 sizer_logos.Add((10, 50), 0, wx.ADJUST_MINSIZE, 0) … … 423 434 event.Skip() 424 435 436 def onDlsLogo(self, event): 437 """ 438 """ 439 # wxGlade: DialogAbout.<event_handler> 440 launchBrowser(config._dls_url) 441 event.Skip() 442 425 443 # end of class DialogAbout 426 444
Note: See TracChangeset
for help on using the changeset viewer.