Changeset fbfc488 in sasview for src/sas/qtgui/Plotting/Slicers


Ignore:
Timestamp:
Nov 9, 2017 8:43:55 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
d6b8a1d
Parents:
7969b9c
git-author:
Piotr Rozyczko <rozyczko@…> (11/03/17 10:58:39)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:55)
Message:

More Qt5 related fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Slicers/BoxSum.py

    r4992ff2 rfbfc488  
    66from PyQt5 import QtGui 
    77 
    8 from sas.qtgui.Utilities.GuiUtils import formatNumber 
     8from sas.qtgui.Utilities.GuiUtils import formatNumber, toDouble 
    99 
    1010from .BaseInteractor import BaseInteractor 
     
    137137        """ 
    138138        params = {} 
    139         params["Height"] = float(self.model().item(0, 0).text()) 
    140         params["Width"] = float(self.model().item(0, 1).text()) 
    141         params["center_x"] = float(self.model().item(0, 2).text()) 
    142         params["center_y"] = float(self.model().item(0, 3).text()) 
     139        params["Height"] = toDouble(self.model().item(0, 0).text()) 
     140        params["Width"] = toDouble(self.model().item(0, 1).text()) 
     141        params["center_x"] = toDouble(self.model().item(0, 2).text()) 
     142        params["center_y"] = toDouble(self.model().item(0, 3).text()) 
    143143        self.update_model = False 
    144144        self.setParams(params) 
Note: See TracChangeset for help on using the changeset viewer.