I am using <a href="http://linux.softpedia.com/get/Desktop-Environment/Icons/Desktop-Widgets/Desktop-Gmail-3459.shtml">Desktop Gmail 2.0</a> for SuperKaramba. There is a python script used to access your gmail inbox. Everything works fine on that side. The problem I am having is that everytime you click on the theme it changes the "mode". I don't want this. Here is the code:
Code:
def widgetClicked(widget, x, y, button):
global mode
global scroll
global ntext
global nam
global mtext
global mes
global sum
global ema
global im1
global im2
global rtot
if(button==1):
if(mode==1):
#changeMode(widget,2)
elif(mode==2):
#changeMode(widget,3)
elif(mode==3):
#changeMode(widget,1)
if(button==5):
scroll+=5
if(scroll>=20):scroll=0
i=scroll
while(i<scroll+5):
if(i>=20): break
if(i<rtot):
karamba.changeText(widget,ntext[i-scroll],nam[i])
karamba.changeText(widget,mtext[i-scroll],mes[i])
karamba.addImageTooltip(widget,im2[i-scroll],sum[i])
karamba.addImageTooltip(widget,im1[i-scroll],ema[i])
i=i+1
else: break
if(scroll>=20):scroll=15
if(i>=rtot):scroll=15
if(button==4):
if(scroll==0):scroll=rtot-5
else:scroll-=5
i=scroll
while(i<scroll+5):
if(i==20): break
if(i<rtot):
karamba.changeText(widget,ntext[i-scroll],nam[i])
karamba.changeText(widget,mtext[i-scroll],mes[i])
karamba.addImageTooltip(widget,im2[i-scroll],sum[i])
karamba.addImageTooltip(widget,im1[i-scroll],ema[i])
i=i+1
else: break
pass
I think I commented out the lines properly. I can't seem to find out how to recompile the code? Do you need to compile with python?
After the code change, it still changes the mode when I click on it. It also goes to the Gmail page when I click the widget. Where in the code does it do that?
Ryan