Changeset cee5c78 in sasview for src/sas/qtgui/Utilities/GuiUtils.py


Ignore:
Timestamp:
Nov 9, 2017 8:41: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:
7fb471d
Parents:
b3e8629
git-author:
Piotr Rozyczko <rozyczko@…> (10/27/17 03:42:57)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:55)
Message:

Converted more syntax not covered by 2to3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/GuiUtils.py

    • Property mode changed from 100755 to 100644
    rb3e8629 rcee5c78  
    239239    """ 
    240240    Adds a checkboxed row named "name" to QStandardItem 
    241     Adds QVariant 'update_data' to that row. 
     241    Adds 'update_data' to that row. 
    242242    """ 
    243243    assert isinstance(item, QtGui.QStandardItem) 
    244     #assert isinstance(update_data, QtCore.QVariant) 
    245     #py_update_data = update_data.toPyObject() 
    246244    py_update_data = update_data 
    247245 
     
    269267    """ 
    270268    Creates a checkboxed QStandardItem named "name" 
    271     Adds QVariant 'update_data' to that row. 
     269    Adds 'update_data' to that row. 
    272270    """ 
    273271    #assert isinstance(update_data, QtCore.QVariant) 
     
    532530    with open(path,'w') as out: 
    533531        has_errors = True 
    534         if data.dy == None or data.dy == []: 
     532        if data.dy is None or data.dy == []: 
    535533            has_errors = False 
    536534        # Sanity check 
     
    552550            if has_errors: 
    553551                if data.dx is not None and data.dx != []: 
    554                     if  data.dx[i] != None: 
     552                    if  data.dx[i] is not None: 
    555553                        out.write("%g  %g  %g  %g\n" % (data.x[i], 
    556554                                                        data.y[i], 
Note: See TracChangeset for help on using the changeset viewer.