Changeset 1452132 in sasview for sansguiframe
- Timestamp:
- Aug 23, 2012 4:13:24 PM (13 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
- File:
-
- 1 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 """
Note: See TracChangeset
for help on using the changeset viewer.