LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-21-2006, 11:38 AM   #1
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Rep: Reputation: 30
Superkaramba - Gmail


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
 
Old 01-23-2006, 02:40 PM   #2
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Original Poster
Rep: Reputation: 30
Any ideas?
 
Old 03-05-2006, 09:20 PM   #3
p0z3r
Member
 
Registered: Apr 2004
Posts: 88

Rep: Reputation: 15
I will try to help you with this if you hop in irc sometime.
irc.freenode.net #superkaramba

I can be found under the nick p0z3r.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gmail senglee Mandriva 20 08-17-2005 06:23 AM
gmail test General 2 09-04-2004 07:59 AM
So, what do you think of Gmail? Fisher of Men General 19 08-20-2004 05:06 PM
Gmail mikeshn General 8 05-14-2004 01:43 PM
Gmail Pauli General 3 05-14-2004 02:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration