Changeset d8e3f7c in sasview
- Timestamp:
- Aug 16, 2012 1:12:59 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:
- 5401f2a
- Parents:
- f866fb5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/report_dialog.py
rf32d144 rd8e3f7c 23 23 FONT_VARIANT = 1 24 24 ISMAC = False 25 25 ISPDF = False 26 26 if sys.platform == "win32": 27 27 _STATICBOX_WIDTH = 450 … … 30 30 FONT_VARIANT = 0 31 31 ISMAC = False 32 ISPDF = True 32 33 elif sys.platform == "darwin": 33 34 ISMAC = True 34 ISPDF = True35 ISPDF = True 35 36 36 37 … … 199 200 #open pdf 200 201 if pdf: 201 os.startfile(str(fName)) 202 try: 203 #Windows 204 os.startfile(str(fName)) 205 except: 206 try: 207 #Mac 208 os.system("open %s"% fName) 209 except: 210 #DO not open 211 pass 202 212 #delete image file 203 213 for num in range(self.nimages): -
invariantview/src/sans/perspectives/invariant/report_dialog.py
r7954acd rd8e3f7c 18 18 import os 19 19 import wx.html as html 20 21 if sys.platform .count("win32") > 0:20 ISPDF = False 21 if sys.platform == "win32": 22 22 _STATICBOX_WIDTH = 450 23 23 PANEL_WIDTH = 500 … … 25 25 FONT_VARIANT = 0 26 26 ISMAC = False 27 else: 27 ISPDF = True 28 elif sys.platform == "darwin": 28 29 _STATICBOX_WIDTH = 480 29 30 PANEL_WIDTH = 530 … … 31 32 FONT_VARIANT = 1 32 33 ISMAC = True 33 ISPDF = True34 ISPDF = True 34 35 35 36 class ReportDialog(wx.Dialog): … … 171 172 #open pdf 172 173 if pdf: 173 os.startfile(str(fName)) 174 try: 175 #Windows 176 os.startfile(str(fName)) 177 except: 178 try: 179 #Mac 180 os.system("open %s"% fName) 181 except: 182 #DO not open 183 pass 174 184 #delete image file 175 185 os.remove(pic_fname)
Note: See TracChangeset
for help on using the changeset viewer.