generated from dopt-python/py311
short snippet test for widget registry
This commit is contained in:
@@ -27,6 +27,17 @@ class FormField:
|
||||
self.label += "*"
|
||||
|
||||
|
||||
# %%
|
||||
t_str = "asd.yxcxc.dfgjj.aasdsdsdsd.sdsdsdsd"
|
||||
splitted = t_str.split(".")
|
||||
part, rest = splitted[0], splitted[1:]
|
||||
|
||||
part
|
||||
|
||||
# %%
|
||||
".".join([part] + rest)
|
||||
|
||||
|
||||
# %%
|
||||
FormField("name", "Projektbeschreibung", FormFieldType.LONGTEXT, required=True)
|
||||
# %%
|
||||
|
||||
Reference in New Issue
Block a user