Portal    Foro    Buscar    FAQ    Registrarse    Conectarse


Publicar nuevo tema  Responder al tema 
Página 1 de 1
 
 
Utilizar Libunity En Gambas
Autor Mensaje
Responder citando   Descargar mensaje 
Mensaje Utilizar Libunity En Gambas 
 
Hola a todos, a ver si me podeis ayudar. estoy intentando utilizar la libreria libunity https://wiki.edubuntu.org/Unity/Lau...klist%20entries para gambas pero no puedeo.............vamos no se ni por donde cogerlo. He visto un ejemplo en python pero no se "traducirlo" a gambas

Código: [Descargar] [Ocultar]
  1. #!/usr/bin/env python  
  2. import gi  
  3. from gi.repository import Unity, Gio, GObject, Dbusmenu  
  4.  
  5. loop = GObject.MainLoop()  
  6.  
  7. # Pretend to be evolution for the sake of the example  
  8. launcher = Unity.LauncherEntry.get_for_desktop_id ("evolution.desktop")  
  9.  
  10. # Show a count of 124 on the icon  
  11. launcher.set_property("count", 124)  
  12. launcher.set_property("count_visible", False)  
  13.  
  14. # Set progress to 42% done  
  15. launcher.set_property("progress", 0.42)  
  16. launcher.set_property("progress_visible", True)  
  17.  
  18.  
  19. # We also want a quicklist  
  20. ql = Dbusmenu.Menuitem.new ()  
  21. item1 = Dbusmenu.Menuitem.new ()  
  22. item1.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Item 1")  
  23. item1.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, True)  
  24. item2 = Dbusmenu.Menuitem.new ()  
  25. item2.property_set (Dbusmenu.MENUITEM_PROP_LABEL, "Item 2")  
  26. item2.property_set_bool (Dbusmenu.MENUITEM_PROP_VISIBLE, True)  
  27. ql.child_append (item1)  
  28. ql.child_append (item2)  
  29. launcher.set_property("quicklist", ql)  
  30.  
  31. def update_urgency():  
  32.     if launcher.get_property("urgent"):  
  33.         print "Removing urgent flag"  
  34.         launcher.set_property("urgent", False)  
  35.     else:  
  36.         print "setting urgent flag"  
  37.         launcher.set_property("urgent", True)  
  38.     return True  
  39.  
  40. GObject.timeout_add_seconds(5, update_urgency)  
  41.  
  42. loop.run() 


de hecho no he conseguido ni ejecutar el codigo python me da error................para gambas he intentado :

LIBRARY "/usr/lib/libunity"


EXTERN Unity.LauncherEntry.get_for_desktop_id(ll AS String) AS String

PUBLIC SUB Form_Open()

DIM launcher AS String
launcher = Unity.LauncherEntry.get_for_desktop_id("evolution.desktop")

END


pero no funciona alguna idea.....
 



 
destroyer - Ver perfil del usuarioEnviar mensaje privado 
Volver arribaPágina inferior
Mostrar mensajes anteriores:    
 
OcultarTemas parecidos
Tema Autor Foro Respuestas último mensaje
No hay nuevos mensajes Utilizar Lector De Codigo De Barra En Gambas chen_08 General 7 Martes, 13 Octobre 2009, 18:23 Ver último mensaje
chen_08
No hay nuevos mensajes Utilizar comados de consonla en aplicacion... kimizombie General 34 Lunes, 02 Agosto 2010, 17:23 Ver último mensaje
Invitado
No hay nuevos mensajes Como Hacer Un Proyecto En Gambas Utilizand... mesm82 General 2 Domingo, 24 Abril 2011, 17:08 Ver último mensaje
jesusdaredevil
No hay nuevos mensajes Utilizar El Nuevo Componente Gb.sdl2.audio vuott General 6 Lunes, 14 Diciembre 2015, 22:48 Ver último mensaje
tercoIDE
 

Publicar nuevo tema  Responder al tema  Página 1 de 1
 

Usuarios navegando en este tema: 0 registrados, 0 ocultos y 1 invitado
Usuarios registrados conectados: Ninguno


 
Lista de permisos
No puede crear mensajes
No puede responder temas
No puede editar sus mensajes
No puede borrar sus mensajes
No puede votar en encuestas
No puede adjuntar archivos
Puede descargar archivos
No puede publicar eventos en el calendario



  

 

cron