Changeset 61a92d4 in sasview for src/sas/qtgui/Utilities


Ignore:
Timestamp:
Apr 28, 2017 9:26:55 AM (8 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:
28a09b0
Parents:
0215e0a
Message:

Minor UI resizing.
Refactored ObjectFactory?

File:
1 moved

Legend:

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

    r0215e0a r61a92d4  
    88    this._objects[obj_name] = obj 
    99 
    10 def deleteObject(obj_name): 
     10def deleteObjectByRef(obj): 
     11    for name, object in this._objects.iteritems(): 
     12        if object == obj: 
     13            del this._objects[name] 
     14            break 
     15 
     16def deleteObjectByName(obj_name): 
    1117    if obj_name in this._objects: 
    1218        del this._objects[obj_name] 
Note: See TracChangeset for help on using the changeset viewer.