kennt einer von euch die Screenletsfür Gnome? Ich habe mir mal ein paar Plugins / Screenlets dafür angesehen - und muss sagen, dass ich etwas entsetzt bin. Kann es sein, dass die Schnittstelle völlig verhunzt ist?
Allein die Coding-Rules:
Ok, ein paar davon ähneln PEP 8 - aber andere?!*A Screenlet's classname must end on "Screenlet" (e.g. ClockScreenlet)
*Not more than 80 chars per line (where possible).
*Tabs are 4 char-wide "\t"-characters.
*Classes MUST have a documentation-string.
*After class-headers's documentation, one separating line.
*Internal attributes MUST start with TWO leading underscores.
*Editable options NEVER have leading underscores.
*All functions that are no inherited event-handlers MUST have a documentation-string.
*Constructors of Screenlet-subclasses must implement the **keyword_args parameter as last argument to their __init__-function.
*All screenlet-files MUST have the name of the Screenlet-classes they contain (with a .py-extension).
*All Screenlets MUST have a head-comment containing license/author note,
*Screenlets need to be placed into a directory named like the Screenlet's class (without trailing "Screenlet"). This directory may contain a "themes"-directory where the Screenlet's themes are stored. It may also contain other files (of course).
*Screenlets should supply an icon named "icon.svg" or "icon.png" within their directory.
*When possible set the width and height of the screenlet matching the background theme image , to avoid confusion
*Always call super before anything else ... of course
*Never call exit() or sys.exit().But if you need to check the utils.is_manager_running_me() and only call the exit() if that returns false
Ich will ja wirklich niemanden zu nahe treten - da ich ja auch wirklich kein Profi bin. Aber das hat mich wirklich ein wenig abgeschreckt. Hat jemand von euch sich schonmal an den Screenlets versucht? Vielleicht fandet ihr die Schnittstelle ja auch super? Würde mich einfach mal interessieren....
Schöne Grüße,
Daniel