#1 Le 02/03/2006, à 13:28
- Dadou
[Résolu] Problème avec gdesklets
Kikou,
Je voudrais avoir un peu de votre aide pour faire fonctionner les corner Xmms de gdesklets...
J'ai tenter d'en installer (je les ai tous essayé en fait !) mais aucun ne marche !!
Quand je clique sur "lecture", il ne se passe rien et déjà en mettant un corner sur mon bureau, j'ai déjà des messages d'erreur...
Merci de m'aide un ch'tit peu !
Bisous
DADOU
Dernière modification par Dadou (Le 14/03/2006, à 17:59)
Hors ligne
#2 Le 02/03/2006, à 17:30
- papadon
Re : [Résolu] Problème avec gdesklets
Salut,
il faut installer le paquet 'python-xmms' pour que le desklet soit lié à xmms ...
Hors ligne
#3 Le 02/03/2006, à 19:10
- Dadou
Re : [Résolu] Problème avec gdesklets
Ça ne fonctionne pas !!!
Pour donner plus d'info, je prend ce desklets : OSXcornerXMMS
Quand je clique deux fois dessus pour l'installer, j'ai une fenêtre d'erreur qui me dit :
/home/dadou/.gdesklets/Displays/OSXCornerXMMS/osxcornerxmms-bottomright.display
> 1 xmms = get_control('IKXmms2:701uz5p7uot652wbszeprbeev-2')
Voila, toujours pas de réaction quand je clique sur lecture !
Bisous et merci d'avance pour votre aide
DADOU
Hors ligne
#4 Le 03/03/2006, à 10:16
- papadon
Re : [Résolu] Problème avec gdesklets
Moi j'ai téléchargé l'archive 'OSXCornerXMMS-0.1.2.tar.gz' et je l'ai importé
dans gdesklets via la commande 'Fichier->Installer un paquet'.
J'ai ensuite double-cliqué sur l'applet et il est apparu sur le bureau.
Hors ligne
#5 Le 03/03/2006, à 11:38
- Dadou
Re : [Résolu] Problème avec gdesklets
Oui, j'ai fait comme toi... et il apparait bien sur le bureau, pas de problème... mais avant d'apparaître, j'ai le message d'erreur cité plus haut et les "touches" du desklets ne fontionnent pas !
Bisous
DADOU
Hors ligne
#6 Le 03/03/2006, à 16:37
- papadon
Re : [Résolu] Problème avec gdesklets
Voici le contenu de mon fichier de config :
home/papadon/.gdesklets/Displays/OSXCornerXMMS/osxcornerxmms-bottomright.display
<?xml version="1.0" encoding="UTF-8"?>
<!--
# CornerXMMS
#
# Copyright 2003 - Stefano Mozzi
# Copyright 2005 - Andrea Briganti <kbytesys@tin.it>
#
# This Display is released under GPL 2.0 Licence.
#
-->
<display window-flags="sticky, below"
width="246" height="228"
on-file-drop="xmms.action = ('turnin',self.event.files)">
<!-- Desklet Information -->
<meta author="Original author: Stefano Mozzi. Maintained by the Cosenza Linux User Group (Italy), OSX layout by DwD"
version="0.1.2"
preview="gfx/osxcornerxmms.png"
name="OSXCornerXMMS"
category="media/status"
description="Bottom Right corner XMMS controller. This display was originally developed by Stefano Mozzi. Now it is maintained by Cslug (Italy)"/>
<control id="xmms" interface="IKXmms2:701uz5p7uot652wbszeprbeev-2"/>
<control id="ico1" interface="IKIconAnim:etpxog3l6cpx6wlgfihqatrme-2"/>
<control id="ico2" interface="IKIconAnim:etpxog3l6cpx6wlgfihqatrme-2"/>
<control id="ico3" interface="IKIconAnim:etpxog3l6cpx6wlgfihqatrme-2"/>
<control id="ico4" interface="IKIconAnim:etpxog3l6cpx6wlgfihqatrme-2"/>
<control id="ico5" interface="IKIconAnim:etpxog3l6cpx6wlgfihqatrme-2"/>
<control id="ico6" interface="IKIconAnim:etpxog3l6cpx6wlgfihqatrme-2"/>
<!-- Backgroud Image -->
<image id="main" x="0" y="0" uri="gfx/body-br.png"/>
<!-- Prefs Buttons -->
<group id="puls" x="45" y="212">
<image id="quit" x="10" y="-5" on-click="xmms.action = 'quit'"
uri="gfx/bot-br0.png"/>
<image id="pref" y="0" x="38"
on-press="xmms.action = 'prefs'; self.uri = 'gfx/bar1.png'"
on-release="self.uri = 'gfx/bar0.png'"
uri="gfx/bar0.png"/>
<image id="rand" x="-1" relative-to="pref,x"
on-click="xmms.action = 'rndtog'"
uri="gfx/rnd0.png"/>
<image id="rept" x="-1" relative-to="rand,x"
on-click="xmms.action = 'reptog'"
uri="gfx/rep0.png"/>
<image id="mlwn" x="-1" relative-to="rept,x"
on-click="xmms.action = 'mainwin'"
uri="gfx/ml0.png"/>
<image id="eqwn" x="-1" relative-to="mlwn,x"
on-click="xmms.action = 'eqwin'"
uri="gfx/eq0.png"/>
<image id="plwn" x="-1" relative-to="eqwn,x"
on-click="xmms.action = 'plwin'"
uri="gfx/pl0.png"/>
</group>
<!-- Text -->
<group id="tick2" visible="False" x="179" y="136">
<label id="time2" x="0" y="0" value="Linux"
font="San 20"
color="#0761d5"/>
</group>
<group id="info" x="130" y="176">
<label id="btrt" x="0" y="0"
font="San 7"
color="#0761d5"/>
</group>
<group id="mtit" x="125" y="189">
<label id="title" x="0" y="0" width="20"
font="San 7"
color="#0761d5"/>
</group>
<group id="tick" x="185" y="136">
<label id="time" x="0" y="0"
font="San 20"
color="#0761d5"/>
</group>
<!-- Song Gauge -->
<image id="vol" x="177" y="165.5" height="10" uri="gfx/vol.png"/>
<gauge id="gaugvol" x="179" y="167.5">
<group id="gaugevol" width="0" height="4" bg-uri="gfx/gauge.png"/>
</gauge>
<image id="vol2" x="83" y="202" width="162" height="10" uri="gfx/vol2.png"/>
<gauge id="gaug" x="85" y="204">
<group id="gauge" width="0" height="5" bg-uri="gfx/gauge.png"/>
</gauge>
<image id="muov" x="82" y="202" width="160" height="10"
on-motion="px = self.event.x;"
on-click="xmms.action = ('jumpto', int(px.as_px()/1.58))"/>
<image id="muov2" x="179" y="165.5" width="70" height="10"
on-motion="px = self.event.x;"
on-click="xmms.action = ('jumptovol', int(px.as_px()/0.60))"/>
<!-- Commands -->
<image id="apple" x="223" y="54"
on-enter="self.uri = 'gfx/apple1.png'; as(True)"
on-leave="self.uri = 'gfx/apple0.png'; as(False)"
uri="gfx/apple0.png"/>
<image id="next" x="186" y="0" on-press="self.uri = 'gfx/next1.png'"
on-release="xmms.action = 'next'; self.uri = 'gfx/next0.png'"
on-enter="self.uri = 'gfx/next0.png';ico1.setscale =(1.2,0.1)"
on-leave="self.uri = 'gfx/next0.png';ico1.setscale = (1.0,0.1)"
uri="gfx/next0.png"/>
168
<image id="paus" x="160" y="40" on-press="self.uri = 'gfx/pause1.png'"
on-release="xmms.action = 'pause'; self.uri = 'gfx/pause0.png'"
on-enter="self.uri = 'gfx/pause0.png';ico3.setscale =(1.2,0.1)"
on-leave="self.uri = 'gfx/pause0.png';ico3.setscale = (1.0,0.1)"
uri="gfx/pause0.png"/>
<image id="play" x="125" y="81"
on-press="self.uri = 'gfx/play1.png'"
on-release="xmms.action = 'play'; self.uri = 'gfx/play0.png'"
on-enter="self.uri = 'gfx/play0.png';ico2.setscale =(1.2,0.1)"
on-leave="self.uri = 'gfx/play0.png';ico2.setscale = (1.0,0.1)"
uri="gfx/play0.png"/>
<image id="ejec" x="88" y="117" on-press="self.uri = 'gfx/eject1.png'"
on-release="xmms.action = 'eject'; self.uri = 'gfx/eject0.png'"
on-enter="self.uri = 'gfx/eject0.png';ico6.setscale =(1.2,0.1)"
on-leave="self.uri = 'gfx/eject0.png';ico6.setscale = (1.0,0.1)"
uri="gfx/eject0.png"/>
<image id="stop" x="46" y="144" on-press="self.uri = 'gfx/stop1.png'"
on-release="xmms.action = 'stop'; self.uri = 'gfx/stop0.png'"
on-enter="self.uri = 'gfx/stop0.png';ico4.setscale =(1.2,0.1)"
on-leave="self.uri = 'gfx/stop0.png';ico4.setscale = (1.0,0.1)"
uri="gfx/stop0.png"/>
<image id="prev" x="3" y="172" on-press="self.uri = 'gfx/prev1.png'"
on-release="xmms.action = 'prev'; self.uri = 'gfx/prev0.png'"
on-enter="self.uri = 'gfx/prev0.png';ico5.setscale =(1.2,0.1)"
on-leave="self.uri = 'gfx/prev0.png';ico5.setscale = (1.0,0.1)"
uri="gfx/prev0.png"/>
<!-- the preferences dialog -->
<prefs callback="mycallback">
<page label="Main">
<float label="Main opacity:" min="0" max="100" bind="mainoc"/>
<enum label="Orientation:" bind="orientation">
<item label="Bottom right" value="bright"/>
<item label="Bottom left" value="bleft"/>
<item label="Top right" value="tright"/>
<item label="Top left" value="tleft"/>
</enum>
</page>
<page label="Icons">
<float label="Icon opacity:" min="0" max="100" bind="oc"/>
<float label="Icon scale:" min="0" max="100" bind="isc"/>
</page>
<page label="Text color and font">
<font label="Info lable font:" bind="Dsp.btrt.font"/>
<color label="Info lable color:" bind="Dsp.btrt.color"/>
<font label="Title lable font:" bind="Dsp.title.font"/>
<color label="Title lable color:" bind="Dsp.title.color"/>
<font label="Time lable font:" bind="tfont"/>
<color label="Time lable color:" bind="tcolor"/>
</page>
</prefs>
<script>
orientation = "bright"
oc = float(100)
isc = float(25)
mainoc = float(100)
tcolor = "#0761d5"
tfont = "San 21"
def mycallback(key, value):
if (key == "oc"): Dsp.next.opacity = float(value/100); Dsp.paus.opacity = float(value/100); Dsp.play.opacity = float(value/100); Dsp.ejec.opacity = float(value/100); Dsp.stop.opacity = float(value/100); Dsp.prev.opacity = float(value/100); Dsp.next.uri = 'gfx/next0.png'; Dsp.paus.uri = 'gfx/pause0.png'; Dsp.play.uri = 'gfx/play0.png'; Dsp.ejec.uri = 'gfx/eject0.png'; Dsp.stop.uri = 'gfx/stop0.png'; Dsp.prev.uri = 'gfx/prev0.png'
if (key == "isc"): Dsp.next.on_enter = 'ico1.setscale = (float(isc/100+1), 0.1)'; Dsp.paus.on_enter = 'ico3.setscale = (float(isc/100+1), 0.1)'; Dsp.play.on_enter = 'ico2.setscale = (float(isc/100+1), 0.1)'; Dsp.ejec.on_enter = 'ico6.setscale = (float(isc/100+1), 0.1)'; Dsp.stop.on_enter = 'ico4.setscale = (float(isc/100+1), 0.1)'; Dsp.prev.on_enter = 'ico5.setscale = (float(isc/100+1), 0.1)'
if (key == "mainoc"): Dsp.main.opacity = float(value/100); Dsp.main.uri = 'gfx/body-br.png'; Dsp.quit.opacity = float(value/100); running_handler(xmms.running); Dsp.pref.opacity = float(value/100); Dsp.pref.uri = 'gfx/bar0.png'; Dsp.rand.opacity = float(value/100); israndom_handler(xmms.israndom); Dsp.rept.opacity = float(value/100); isrepeat_handler(xmms.isrepeat); Dsp.mlwn.opacity = float(value/100); ismainwin_handler(xmms.ismainwin); Dsp.eqwn.opacity = float(value/100); iseqwin_handler(xmms.iseqwin); Dsp.plwn.opacity = float(value/100); isplwin_handler(xmms.isplwin); Dsp.apple.opacity = float(value/100); Dsp.apple.uri = 'gfx/apple0.png'; Dsp.vol2.opacity = float(value/100); Dsp.vol2.uri = 'gfx/vol2.png';Dsp.vol.opacity = float(value/100); Dsp.vol.uri = 'gfx/vol.png';
if (key == "tcolor"): Dsp.time.color = value; Dsp.time2.color = value;
if (key == "tfont"): Dsp.time.font = value; Dsp.time2.font = value;
if (orientation == "tright"):
Dsp.puls.x = Unit(45, PX); Dsp.puls.y = Unit(0, PX);
Dsp.quit.x = Unit(10, PX); Dsp.quit.y = Unit(0, PX);
Dsp.pref.x = Unit(38, PX); Dsp.pref.y = Unit(0, PX);
Dsp.main.uri = "gfx/body-tr.png";
Dsp.tick2.x = Unit(179, PX); Dsp.tick2.y = Unit(62, PX);
Dsp.info.x = Unit(130, PX); Dsp.info.y = Unit(41, PX);
Dsp.mtit.x = Unit(125, PX); Dsp.mtit.y = Unit(29, PX);
Dsp.title.x = Unit(0, PX);
Dsp.tick.x = Unit(185, PX); Dsp.tick.y = Unit(62, PX);
Dsp.vol.x = Unit(177, PX); Dsp.vol.y = Unit(52.5, PX);
Dsp.gaugvol.x = Unit(179, PX); Dsp.gaugvol.y = Unit(55.5, PX);
Dsp.vol2.x = Unit(83, PX); Dsp.vol2.y = Unit(17, PX);
Dsp.gaug.x = Unit(85, PX); Dsp.gaug.y = Unit(19, PX);
Dsp.muov.x = Unit(82, PX); Dsp.muov.y = Unit(17, PX);
Dsp.muov2.x = Unit(179, PX); Dsp.muov2.y = Unit(50.5, PX);
Dsp.apple.x = Unit(223, PX); Dsp.apple.y = Unit(150, PX);
Dsp.apple.on_enter="applet(True)"
Dsp.apple.on_leave="applet(False)"
applet(False)
Dsp.next.x = Unit(0, PX); Dsp.next.y = Unit(5, PX);
Dsp.paus.x = Unit(40, PX); Dsp.paus.y = Unit(22, PX);
Dsp.play.x = Unit(82, PX); Dsp.play.y = Unit(50, PX);
Dsp.ejec.x = Unit(125, PX); Dsp.ejec.y = Unit(86, PX);
Dsp.stop.x = Unit(164, PX); Dsp.stop.y = Unit(124, PX);
Dsp.prev.x = Unit(188, PX); Dsp.prev.y = Unit(174, PX);
if (orientation == "bright"):
Dsp.puls.x = Unit(45, PX); Dsp.puls.y = Unit(212, PX);
Dsp.quit.x = Unit(10, PX); Dsp.quit.y = Unit(-5, PX);
Dsp.pref.x = Unit(38, PX); Dsp.pref.y = Unit(0, PX);
Dsp.title.x = Unit(0, PX);
Dsp.main.uri = "gfx/body-br.png";
Dsp.tick2.x = Unit(179, PX); Dsp.tick2.y = Unit(136, PX);
Dsp.info.x = Unit(130, PX); Dsp.info.y = Unit(176, PX);
Dsp.mtit.x = Unit(125, PX); Dsp.mtit.y = Unit(189, PX);
Dsp.tick.x = Unit(185, PX); Dsp.tick.y = Unit(136, PX);
Dsp.vol.x = Unit(177, PX); Dsp.vol.y = Unit(165.5, PX);
Dsp.gaugvol.x = Unit(179, PX); Dsp.gaugvol.y = Unit(167.5, PX);
Dsp.vol2.x = Unit(83, PX); Dsp.vol2.y = Unit(202, PX);
Dsp.gaug.x = Unit(85, PX); Dsp.gaug.y = Unit(204, PX);
Dsp.muov.x = Unit(82, PX); Dsp.muov.y = Unit(202, PX);
Dsp.muov2.x = Unit(179, PX); Dsp.muov2.y = Unit(165.5, PX);
Dsp.apple.x = Unit(223, PX); Dsp.apple.y = Unit(54, PX);
Dsp.apple.on_enter="appleb(True)"
Dsp.apple.on_leave="appleb(False)"
appleb(False)
Dsp.next.x = Unit(186, PX); Dsp.next.y = Unit(0, PX);
Dsp.paus.x = Unit(160, PX); Dsp.paus.y = Unit(40, PX);
Dsp.play.x = Unit(125, PX); Dsp.play.y = Unit(81, PX);
Dsp.ejec.x = Unit(88, PX); Dsp.ejec.y = Unit(117, PX);
Dsp.stop.x = Unit(46, PX); Dsp.stop.y = Unit(144, PX);
Dsp.prev.x = Unit(3, PX); Dsp.prev.y = Unit(172, PX);
if (orientation == "tleft"):
Dsp.puls.x = Unit(0, PX); Dsp.puls.y = Unit(0, PX);
Dsp.quit.x = Unit(164, PX); Dsp.quit.y = Unit(0, PX);
Dsp.pref.x = Unit(0, PX); Dsp.pref.y = Unit(0, PX);
Dsp.main.uri = "gfx/body-tl.png"; Dsp.tick2.x = Unit(0, PX);
Dsp.tick2.y = Unit(62, PX); Dsp.info.x = Unit(0, PX); Dsp.info.y = Unit(41, PX);
Dsp.mtit.y = Unit(29, PX); Dsp.mtit.x = Unit(120, PX);
Dsp.tick.x = Unit(0, PX); Dsp.tick.y = Unit(62, PX);
Dsp.vol.x = Unit(0, PX); Dsp.vol.y = Unit(52.5, PX);
Dsp.gaugvol.x = Unit(2, PX); Dsp.gaugvol.y = Unit(55.5, PX);
Dsp.vol2.x = Unit(0, PX); Dsp.vol2.y = Unit(17, PX);
Dsp.gaug.x = Unit(2, PX); Dsp.gaug.y = Unit(19, PX);
Dsp.muov.x = Unit(0, PX); Dsp.muov.y = Unit(17, PX);
Dsp.muov2.x = Unit(2, PX); Dsp.muov2.y = Unit(50.5, PX);
Dsp.apple.x = Unit(0, PX); Dsp.apple.y = Unit(150, PX);
Dsp.apple.on_enter="applet(True)"
Dsp.apple.on_leave="applet(False)"
applet(False)
Dsp.next.x = Unit(192, PX); Dsp.next.y = Unit(14, PX);
Dsp.paus.x = Unit(150, PX); Dsp.paus.y = Unit(30, PX);
Dsp.play.x = Unit(104, PX); Dsp.play.y = Unit(60, PX);
Dsp.ejec.x = Unit(68, PX); Dsp.ejec.y = Unit(92, PX);
Dsp.stop.x = Unit(40, PX); Dsp.stop.y = Unit(130, PX);
Dsp.prev.x = Unit(16, PX); Dsp.prev.y = Unit(172, PX);
if (orientation == "bleft"):
Dsp.puls.x = Unit(0, PX); Dsp.puls.y = Unit(212, PX);
Dsp.quit.x = Unit(164, PX); Dsp.quit.y = Unit(-5, PX);
Dsp.pref.x = Unit(0, PX); Dsp.pref.y = Unit(0, PX);
Dsp.main.uri = "gfx/body-bl.png";
Dsp.tick2.x = Unit(0, PX); Dsp.tick2.y = Unit(136, PX);
Dsp.info.x = Unit(0, PX); Dsp.info.y = Unit(176, PX);
Dsp.mtit.y = Unit(189, PX); Dsp.mtit.x = Unit(120, PX);
Dsp.tick.x = Unit(0, PX); Dsp.tick.y = Unit(136, PX);
Dsp.vol.x = Unit(0, PX); Dsp.vol.y = Unit(165.5, PX);
Dsp.gaugvol.x = Unit(2, PX); Dsp.gaugvol.y = Unit(167.5, PX);
Dsp.vol2.x = Unit(0, PX); Dsp.vol2.y = Unit(202, PX);
Dsp.gaug.x = Unit(2, PX); Dsp.gaug.y = Unit(204, PX);
Dsp.muov.x = Unit(0, PX); Dsp.muov.y = Unit(202, PX);
Dsp.muov2.x = Unit(2, PX); Dsp.muov2.y = Unit(165.5, PX);
Dsp.apple.x = Unit(0, PX); Dsp.apple.y = Unit(54, PX);
Dsp.apple.on_enter="appleb(True)"
Dsp.apple.on_leave="appleb(False)"
appleb(False)
Dsp.next.x = Unit(14, PX); Dsp.next.y = Unit(0, PX);
Dsp.paus.x = Unit(36, PX); Dsp.paus.y = Unit(36, PX);
Dsp.play.x = Unit(62, PX); Dsp.play.y = Unit(80, PX);
Dsp.ejec.x = Unit(102, PX); Dsp.ejec.y = Unit(118, PX);
Dsp.stop.x = Unit(144, PX); Dsp.stop.y = Unit(146, PX);
Dsp.prev.x = Unit(188, PX); Dsp.prev.y = Unit(170, PX);
def as(value):
if (value): Dsp.tick2.visible=True; Dsp.tick.visible=False
else: Dsp.tick2.visible=False; Dsp.tick.visible=True
</script>
<script><![CDATA[
def updatebitrate():
(bitrate, freq, nch) = xmms.bitrate
if bitrate == 0:
Dsp.btrt.value = ""
return True
if nch == 1:
nch = "mono"
else:
nch = "stereo"
Dsp.btrt.value = str(bitrate/1000) + " kbps " + str(freq/1000) + " khz " + nch
def title_handler(new_value):
global animatedtext
animatedtext = ""
Dsp.title.value = new_value
updatebitrate()
def isplaying_handler(new_value):
if new_value:
updatebitrate()
else:
Dsp.time.value = ""
def ison(new_value):
if new_value:
Dsp.quit.uri = "gfx/bot-br1.png"
else:
Dsp.quit.uri = "gfx/bot-br0.png"
def isoff(new_value):
if new_value:
Dsp.quit.uri = "gfx/bot-br4.png"
else:
Dsp.quit.uri = "gfx/bot-br3.png"
def appleb(new_value):
if new_value:
Dsp.apple.uri = "gfx/apple1.png"; as(True)
else:
Dsp.apple.uri = "gfx/apple0.png"; as(False)
def applet(new_value):
if new_value:
Dsp.apple.uri = "gfx/applet1.png"; as(True)
else:
Dsp.apple.uri = "gfx/applet0.png"; as(False)
def running_handler(new_value):
global animatedtext
if new_value:
title_handler(xmms.title)
isplwin_handler(xmms.isplwin)
iseqwin_handler(xmms.iseqwin)
ismainwin_handler(xmms.ismainwin)
isrepeat_handler(xmms.isrepeat)
israndom_handler(xmms.israndom)
Dsp.quit.uri = "gfx/bot-br0.png"
Dsp.quit.on_enter="ison(True)"
Dsp.quit.on_leave="ison(False)"
else:
Dsp.gaug.fill = 0
Dsp.time.value = ""
Dsp.title.value = "XMMS not loaded"
animatedtext = ""
Dsp.btrt.value = ""
isplwin_handler(False)
iseqwin_handler(False)
ismainwin_handler(False)
isrepeat_handler(False)
israndom_handler(False)
Dsp.quit.uri = "gfx/bot-br3.png"
Dsp.quit.on_enter="isoff(True)"
Dsp.quit.on_leave="isoff(False)"
def raisebutton(image):
counter = 0
zoom = 1.0
while counter < 4:
zoom += 0.1
counter += 1
image.scale = zoom
def lowerbutton(image):
counter = 0
zoom = 1.4
while counter < 4:
zoom -= 0.1
counter += 1
image.scale = zoom
def curtime_handler(new_value):
mins = new_value / 60000
secs = (new_value / 1000) % 60
if orientation == "bright" or orientation == "tright":
if mins < 10:
Dsp.tick.x = Unit(185, PX)
else: Dsp.tick.x = Unit(168, PX)
if secs < 10:
secs = "0"+str(secs)
else:
secs = str(secs)
Dsp.gauge.width= Unit((xmms.fill)/10*15.8, PX)
Dsp.time.value = str(mins) + ":" + secs
return True
def curvol_handler(new_value):
Dsp.gaugevol.width = Unit((new_value)/10*6.4, PX)
return True
def textanim():
global ticks, animatedtext
if orientation == "bleft":
Dsp.title.x = -1*Dsp.title.width
if orientation == "tleft":
Dsp.title.x = -1*Dsp.title.width
if animatedtext == "":
if Dsp.title.value != "XMMS not loaded":
# Avoids syncronization problems
title = Dsp.title.value
if title:
title = title.replace("&"," and ")
# we dupe that string for fullfit the orizontal space
animatedtext = title + " * " + title + " * "
else:
return True
else:
return True
if animatedtext == "":
return True
x = ticks%len(animatedtext)
if ticks == 50:
ticks = 105
if ticks == 55:
ticks = 0
else:
if ticks > 55:
ticks -= 5
Dsp.title.value = "%s%s" % (animatedtext[x:] , animatedtext[:x])
else:
ticks += 1
Dsp.title.value = "%s%s" % (animatedtext[x:] , animatedtext[:x])
return True
def iseqwin_handler(new_value):
if new_value:
Dsp.eqwn.uri = "gfx/eq1.png"
else:
Dsp.eqwn.uri = "gfx/eq0.png"
def isplwin_handler(new_value):
if new_value:
Dsp.plwn.uri = "gfx/pl1.png"
else:
Dsp.plwn.uri = "gfx/pl0.png"
def ismainwin_handler(new_value):
if new_value:
Dsp.mlwn.uri = "gfx/ml1.png"
else:
Dsp.mlwn.uri = "gfx/ml0.png"
def isrepeat_handler(new_value):
if new_value:
Dsp.rept.uri = "gfx/rep1.png"
else:
Dsp.rept.uri = "gfx/rep0.png"
def israndom_handler(new_value):
if new_value:
Dsp.rand.uri = "gfx/rnd1.png"
else:
Dsp.rand.uri = "gfx/rnd0.png"
ico1.seticon = Dsp.next
ico2.seticon = Dsp.play
ico3.seticon = Dsp.paus
ico4.seticon = Dsp.stop
ico5.seticon = Dsp.prev
ico6.seticon = Dsp.ejec
add_timer(350, textanim)
if xmms.running:
running_handler(True)
else:
running_handler(False)
ticks = 0
animatedtext = ""
xmms.bind("curtime", curtime_handler)
xmms.bind("curvol", curvol_handler)
xmms.bind("running", running_handler)
xmms.bind("title", title_handler)
xmms.bind("isplaying", isplaying_handler)
xmms.bind("iseqwin", iseqwin_handler)
xmms.bind("isplwin", isplwin_handler)
xmms.bind("ismainwin", ismainwin_handler)
xmms.bind("isrepeat", isrepeat_handler)
xmms.bind("israndom", israndom_handler)
xmms.bind("running", running_handler)
]]></script>
</display>
essaie de remplacer le tien par celui-là ...
Hors ligne
#7 Le 03/03/2006, à 19:15
- Dadou
Re : [Résolu] Problème avec gdesklets
J'ai tenter le coup, c'est pareil : message d'erreur et "boutons" du desklets qui ne fonctionnent pas....
Je vais essayer d'en mettre un autre qui n'est pas "corner" pour voir si j'ai plus de succès !
Je te tiens au courant
Bisous
DADOU
Hors ligne
#8 Le 14/03/2006, à 15:32
- iuchiban
Re : [Résolu] Problème avec gdesklets
As tu essayé d'installer la version 0.1.2??
J'avais ces erreurs avec la 0.1.3 et rien du tout avec la 0.1.2 (je viens de l'installer).
Bon courage
Dernière modification par iuchiban (Le 14/03/2006, à 15:33)
C'est depuis que Chuck Norris a laissé la vie sauve à un manchot que l'on dit que Linux est libre.
Chuck Norris n'a pas besoin d'éditer son premier message pour ajouter [Résolu]. Chuck Norris est toujours [Résolu], quoi qu'il arrive.
Hors ligne
#9 Le 14/03/2006, à 17:58
- Dadou
Re : [Résolu] Problème avec gdesklets
Super, merci beaucoup, ça fonctionne
Bisous
DADOU
Hors ligne
#10 Le 15/03/2006, à 09:25
- iuchiban
Re : [Résolu] Problème avec gdesklets
Héhé, comme quoi faut pas toujours installer la dernière version dispo....:P
Bonne journée
EDIT : je viens de tester le clic sur la petite croix rouge et ça m'a tout fait bugger. J'ai tenter un Ctrl + Alt + Suppr et ça a rien fait (:lol::lol::P). Alors j'ai rebooté.
Dernière modification par iuchiban (Le 15/03/2006, à 11:25)
C'est depuis que Chuck Norris a laissé la vie sauve à un manchot que l'on dit que Linux est libre.
Chuck Norris n'a pas besoin d'éditer son premier message pour ajouter [Résolu]. Chuck Norris est toujours [Résolu], quoi qu'il arrive.
Hors ligne