Ignore:
Timestamp:
Mar 20, 2019 10:06:22 AM (6 months ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
ticket-1249
Children:
9305b46
Parents:
09d7021
Message:

py3/wx4 compatibility changes for gui. Refs #1249

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/pr/explore_dialog.py

    r5251ec6 r34f23c8  
    5050    window_caption = "D Explorer" 
    5151 
    52     def __init__(self, d_min, d_max, parent, id= -1, color=None, \ 
     52    def __init__(self, d_min, d_max, parent, id= -1, color=None, 
    5353                 dpi=None, style=wx.NO_FULL_REPAINT_ON_RESIZE, **kwargs): 
    5454        """ 
     
    7777        self.plot.symbol = GUIFRAME_ID.CURVE_SYMBOL_NUM 
    7878 
    79         # Graph         
     79        # Graph 
    8080        self.graph = Graph() 
    81         self.graph.xaxis("\\rm{D_{max}}", 'A') 
    82         self.graph.yaxis("\\rm{%s}" % DEFAULT_OUTPUT, "") 
     81        self.graph.xaxis(r"\rm{D_{max}}", 'A') 
     82        self.graph.yaxis(r"\rm{%s}" % DEFAULT_OUTPUT, "") 
    8383        self.graph.add(self.plot) 
    8484        self.graph.render(self) 
     
    133133        # Dictionary of outputs 
    134134        self.outputs = {} 
    135         self.outputs['Chi2/dof'] = ["\chi^2/dof", "a.u.", self.chi2] 
     135        self.outputs['Chi2/dof'] = [r"\chi^2/dof", "a.u.", self.chi2] 
    136136        self.outputs['Oscillation parameter'] = ["Osc", "a.u.", self.osc] 
    137137        self.outputs['Positive fraction'] = ["P^+", "a.u.", self.pos] 
    138         self.outputs['1-sigma positive fraction'] = ["P^+_{1\ \sigma}", 
     138        self.outputs['1-sigma positive fraction'] = [r"P^+_{1\ \sigma}", 
    139139                                                     "a.u.", self.pos_err] 
    140140        self.outputs['Rg'] = ["R_g", "A", self.rg] 
Note: See TracChangeset for help on using the changeset viewer.