ich schreibe nach diesem Tutorial ein kleines Applet für ein Gnome Panel.
Es soll zu den "vollen 10 min" aktuelle Wetterdaten meiner Wetterstation aus dem Internet herunterladen und anzeigen.
Allerdins bekomme ich jedesmal, wenn ich das Applet zum Panel hinzufügen will, die Meldung "Das Panel ist beim Laden von »OAFIID:GNOME_PycentrinoApplet« auf ein Problem gestoßen.".
Der Sourcecode findet sich hier:
http://nopaste.info/index.php?id=22d7546cb9
Ich hab das Beispiel Applet des Autors (das ich allerdings auch nicht laden konnte) als Vorlage geholt, also nicht über die spanischen Kommentare wundern.
Hier der Inhalt der "pycentrino_globals.py":
Code: Alles auswählen
name = "pycentrino"
version = "0.1"
image_dir = "/home/tobias/gnome_app/pycentrino-0.1/src/"
glade_dir = "/home/tobias/gnome_app/pycentrino-0.1/src/"
Code: Alles auswählen
<oaf_info>
<oaf_server iid="OAFIID:GNOME_PycentrinoApplet_Factory"
type="exe" location="/home/tobias/gnome_app/pycentrino-0.1/src/pycentrino.py">
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:Bonobo/GenericFactory:1.0"/>
<item value="IDL:Bonobo/Unknown:1.0"/>
</oaf_attribute>
<oaf_attribute name="name" type="string" value="CPU Performance Stats"/>
<oaf_attribute name="description" type="string" value="CPU Performance Stats"/>
</oaf_server>
<oaf_server iid="OAFIID:GNOME_PycentrinoApplet"
type="factory" location="OAFIID:GNOME_PycentrinoApplet_Factory">
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
<item value="IDL:Bonobo/Control:1.0"/>
<item value="IDL:Bonobo/Unknown:1.0"/>
</oaf_attribute>
<oaf_attribute name="name" type="string" value="CPU Performance Stats"/>
<oaf_attribute name="description" type="string" value="CPU Performance Stats"/>
<oaf_attribute name="panel:category" type="string" value="Utility"/>
<oaf_attribute name="panel:icon" type="string" value="bug-buddy.png"/>
</oaf_server>
</oaf_info>
Danke, Tobias