Changeset 30bc96eb in sasview


Ignore:
Timestamp:
Jun 11, 2018 4:42:16 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, 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
Children:
3597f07
Parents:
397037e
Message:

Hardocoded width is only applicable to OSX

Location:
src/sas/qtgui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/ReportPageLogic.py

    r397037e r30bc96eb  
    33import datetime 
    44import re 
     5import sys 
    56import logging 
    67from io import BytesIO 
     
    105106            data64 = base64.b64encode(data) 
    106107            data_to_print = urllib.parse.quote(data64) 
    107             html += FEET_2.format(data_to_print) 
    108  
     108            feet=FEET_2 
     109            if sys.platform == "darwin":  # Mac 
     110                feet = FEET_3 
     111            html += feet.format(data_to_print) 
     112            html += ELINE 
     113            del canvas 
    109114        return html 
    110115 
     
    166171                plot2D.plot(plot_set) 
    167172                graphs.append(plot2D.figure) 
     173 
    168174            else: 
    169175                msg = "Incorrect data type passed to Plotting" 
     
    204210""" 
    205211FEET_2 = \ 
     212'''<img src="data:image/png;base64,{}"></img> 
     213''' 
     214FEET_3 = \ 
    206215'''<img width="540" src="data:image/png;base64,{}"></img> 
    207216''' 
  • src/sas/qtgui/Utilities/ReportDialog.py

    • Property mode changed from 100755 to 100644
Note: See TracChangeset for help on using the changeset viewer.