mirror of
https://github.com/dkmstr/openuds.git
synced 2025-03-21 10:50:26 +03:00
added comment to user interface
This commit is contained in:
parent
23afd01004
commit
77b0c7c8e1
@ -863,7 +863,8 @@ class gui:
|
||||
class UserInterfaceType(type):
|
||||
"""
|
||||
Metaclass definition for moving the user interface descriptions to a usable
|
||||
better place
|
||||
better place. This is done this way because we will "deepcopy" these fields
|
||||
later, and update references on class 'self' to the new copy. (so everyone has a different copy)
|
||||
"""
|
||||
|
||||
def __new__(
|
||||
@ -875,6 +876,7 @@ class UserInterfaceType(type):
|
||||
newClassDict = {}
|
||||
_gui: typing.MutableMapping[str, gui.InputField] = {}
|
||||
# We will keep a reference to gui elements also at _gui so we can access them easily
|
||||
# Later on init method to update the class 'self' with the new copy
|
||||
for attrName, attr in namespace.items():
|
||||
if isinstance(attr, gui.InputField):
|
||||
_gui[attrName] = attr
|
||||
|
Loading…
x
Reference in New Issue
Block a user