forked from openlp/openlp
Fix docstrings
This commit is contained in:
parent
3cb21e4c13
commit
c028353ecd
@ -49,12 +49,18 @@ def source_group(inputs, source_text):
|
|||||||
"""
|
"""
|
||||||
Return a dictionary where key is source[0] and values are inputs
|
Return a dictionary where key is source[0] and values are inputs
|
||||||
grouped by source[0].
|
grouped by source[0].
|
||||||
|
|
||||||
|
source_text = dict{"key1": "key1-text",
|
||||||
|
"key2": "key2-text",
|
||||||
|
...}
|
||||||
ex:
|
ex:
|
||||||
dict{ "key": { "key1": source_text[key1],
|
dict{ key1[0]: { "key11": "key11-text",
|
||||||
"key2": source_text[key2],
|
"key12": "key12-text",
|
||||||
"key3": source_text[key3],
|
"key13": "key13-text",
|
||||||
... }
|
... }
|
||||||
"key": ... }
|
key2[0]: {"key21": "key21-text",
|
||||||
|
"key22": "key22-text",
|
||||||
|
... }
|
||||||
|
|
||||||
:param inputs: List of inputs
|
:param inputs: List of inputs
|
||||||
:param source_text: Dictionary of {code: text} values to display
|
:param source_text: Dictionary of {code: text} values to display
|
||||||
@ -81,12 +87,12 @@ def Build_Tab(group, source_key, default):
|
|||||||
Create the radio button page for a tab.
|
Create the radio button page for a tab.
|
||||||
Dictionary will be a 1-key entry where key=tab to setup, val=list of inputs.
|
Dictionary will be a 1-key entry where key=tab to setup, val=list of inputs.
|
||||||
|
|
||||||
source_key: {"groupkey1": {"key1": string,
|
source_key: {"groupkey1": {"key11": "key11-text",
|
||||||
"key2": string,
|
"key12": "key12-text",
|
||||||
...
|
...
|
||||||
},
|
},
|
||||||
"groupkey2": {"key1": string,
|
"groupkey2": {"key21": "key21-text",
|
||||||
"key2": string
|
"key22": "key22-text",
|
||||||
....
|
....
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user