LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-25-2006, 09:47 PM   #1
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Rep: Reputation: 30
Question Superkaramba - Linking .theme to .py


I've downloaded http://netdragon.sourceforge.net/example.py and renamed it cool.py. I then created a cool.theme.

At the bottom of the cool.py file is this:

# This will be printed when the widget loads.
print "Loaded my python extension!"


How do I get the text "Loaded my python extension!" visible on the desktop? I'm not sure what I need to put in my cool.theme file.
 
Old 12-27-2006, 12:42 PM   #2
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
Question

I'm having some issues adding text to my SuparKaramba theme. If someone could point out what I'm doing wrong I would appreciate it.



Section of my test.py file:

Code:
def widgetClicked(widget, x, y, button):
	karamba.redrawWidget(widget)
	myText = karamba.createText(widget, 12, 50, 20, 20, "TESTING")
	karamba.toggleWidgetRedraw(widget, 1)
    pass

Here is my test.theme file:
Code:
KARAMBA x=0 BOTTOM=true w=200 h=400 LOCKED=false INTERVAL=1000
DEFAULT font="Sans" fontsize=10 shadow=2 color=255,255,255

<GROUP>
	TEXT x=12 y=0 sensor=time fontsize=12 format="hh:mm:ss" INTERVAL=1000
	TEXT x=12 y=15 sensor=time format="ddd dd.MM.yyyy"
</GROUP>

<GROUP>
	TEXT NAME=ARG x=12 y=30 value="HELLO"
</GROUP>
 
Old 12-27-2006, 01:38 PM   #3
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
Nevermind...I got it working.
 
  


Reply



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
help with .theme in superkaramba bhert Linux - Software 11 10-06-2006 06:04 PM
Liquidweather theme doesn't work in Superkaramba; Superkaramba wont uninstall rahilrai SUSE / openSUSE 4 03-14-2006 10:22 PM
writing terminal/konsole theme for superkaramba mrchaos Linux - Software 2 05-01-2005 03:23 PM
SuperKaramba Theme Help Requested Blackhawkckc Linux - Software 6 12-27-2004 08:36 PM
superkaramba theme not working because of python-devel slfsh Linux - Software 1 11-05-2004 02:46 PM

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

All times are GMT -5. The time now is 02: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