mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 22:03:53 +01:00
Von RevPiModIO kwagrs entfernt und feste keyword vergeben Bei Änderung der Byteorder wird defaultvalue angepasst da aus piCtory little Beim Core nur die RS485 Fehlerwerte übernehmen defaultvalue wird mit Formatierung ausgegeben .isnumeric gegen isdigit getauscht docstrings
23 lines
557 B
Python
23 lines
557 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# python3-RevPiModIO
|
|
#
|
|
# Webpage: https://revpimodio.org/
|
|
# (c) Sven Sager, License: LGPLv3
|
|
#
|
|
"""Bildet die App Sektion von piCtory ab."""
|
|
|
|
|
|
class App(object):
|
|
|
|
"""Bildet die App Sektion der config.rsc ab."""
|
|
|
|
def __init__(self, app):
|
|
"""Instantiiert die App-Klasse.
|
|
@param app piCtory Appinformationen"""
|
|
self.name = app["name"]
|
|
self.version = app["version"]
|
|
self.language = app["language"]
|
|
# TODO: Layout untersuchen und anders abbilden
|
|
self.layout = app["layout"]
|