Und noch eine kleine Übung, wie man den Buttton abhängig von einem Value enabled/disabled
# we build header and tdata for table tab_mount = [] for count, value in enumerate(backups): if count == 0: tab_mount.append(['No.', 'Backup name of the restic data backup', 'Actions']) if backups[value].init == "0": tab_mount.append([count + 1, backups[count].name, put_buttons([ dict(label='Mount', value='Mount', color='primary', disabled=True), dict(label='UMount', value='UMount', color='primary', disabled=True), dict(label='Restore', value='Restore', color='primary', disabled=True), ] , onclick=partial(actions, count + 1)) ]) else: tab_mount.append([count + 1, backups[count].name, put_buttons([ dict(label='Mount', value='Mount', color='primary'), dict(label='UMount', value='UMount', color='primary'), dict(label='Restore', value='Restore', color='primary'), ], onclick=partial(actions, count + 1)) ])Python - Frameworks
-
Da gibt es ja sehr, sehr viel für Python. Kompliziert für Einsteiger etwas zu finden.
Der Platzhirsch Django, ist mir für einfache Dinge einfach zu viel.
Das was ich aktuell für meine Webfrontends nutze - PyWebIO
Und hier noch zwei, wo ich drüber gestolpert bin und noch reinschauen möchte
Und es gibt noch viele mehr...
hier noch eine schöne Übersicht
-
-
-
-
-
-
-
-
Python und GUI
Verschoben Python3