ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since 0215e0a was
0215e0a,
checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago
|
Experimental object factory for attaching fit pages to scripting/notebook
|
-
Property mode set to
100755
|
File size:
380 bytes
|
Line | |
---|
1 | import sys |
---|
2 | |
---|
3 | this = sys.modules[__name__] |
---|
4 | |
---|
5 | this._objects = {} |
---|
6 | |
---|
7 | def addObject(obj_name, obj): |
---|
8 | this._objects[obj_name] = obj |
---|
9 | |
---|
10 | def deleteObject(obj_name): |
---|
11 | if obj_name in this._objects: |
---|
12 | del this._objects[obj_name] |
---|
13 | |
---|
14 | def getObject(obj_name): |
---|
15 | return this._objects[obj_name] if obj_name in this._objects else None |
---|
16 | |
---|
17 | def listObjects(): |
---|
18 | return this._objects.keys() |
---|
19 | |
---|
20 | |
---|
21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.