@@ -41,7 +41,7 @@ def Setting(key: str, title: str, description: str, default: object, folder: str
41
41
42
42
@staticmethod
43
43
def EntrySetting (key :str , title : str , description : str , default : str ,
44
- folder : str | None = None , website : str | None = None , update_settings : bool = False , refresh : Callable | None = None , refresh_icon : str | None = None ) -> dict :
44
+ folder : str | None = None , website : str | None = None , update_settings : bool = False , refresh : Callable | None = None , refresh_icon : str | None = None , password : bool = False ) -> dict :
45
45
"""
46
46
Create a new entry setting, which can be used to enter a string
47
47
@@ -54,13 +54,15 @@ def EntrySetting(key:str, title: str, description: str, default: str,
54
54
website: if not None, near the setting it will be shown a button to open the specified website
55
55
update_settings: if True, when the setting is changed, the settings will be automatically updated
56
56
refresh: if not None, near the setting it will be shown a button to refresh the specified function. When clicked the function is executed
57
- refresh_icon: if not None, the icon of the refresh button
57
+ refresh_icon: if not None, the icon of the refresh button
58
+ password: if True, the entry will be shown as a password
58
59
59
60
Returns:
60
61
dict: the setting in this format
61
62
"""
62
63
r = ExtraSettings .Setting (key , title , description , default , folder , website , update_settings , refresh , refresh_icon )
63
64
r ["type" ] = "entry"
65
+ r ["password" ] = password
64
66
return r
65
67
66
68
@staticmethod
0 commit comments