Image 01
profile-image

notanuseryet

Juan Grez Mexico, Mexico
Frugal KDE Icon Theme

Full Icon Themes by centuri0 19 comments

Hi:
Will follow up for KDE4, since in my KDE 3.5 works great.
TY - Oct 07 2009
KarambaVerseOfTheDay

Karamba & Superkaramba by winelli 22 comments

diff -rau KarambaVerseOfTheDay/KarambaVerseOfTheDay.py modificado/KarambaVerseOfTheDay.py
--- KarambaVerseOfTheDay/KarambaVerseOfTheDay.py 2003-12-01 08:31:06.000000000 -0600
+++ modificado/KarambaVerseOfTheDay.py 2009-07-20 13:54:51.000000000 -0500
@@ -52,15 +52,15 @@
book='', chapter='', verse='')

CHAR_W = 6
-CHAR_H = 15
-VERSE_MAX_WIDTH = 170 / CHAR_W # 170 is the width of the bg-image
+CHAR_H = 16
+VERSE_MAX_WIDTH = 180 / CHAR_W # 170 is the width of the bg-image
VERSE_BG_X, VERSE_BG_Y = (0,15)
VERSE_COLOR = (5, 64, 78)

-VERSE_URL = "http://votd.christ.com/biblevotd/votd-nas.js"
+VERSE_URL = "http://votd.christ.com/biblevotd/votd-kjv.js"
BOOK_CHAPTER_PATTERN = re.compile('<div align=left><I>(.+)</I>')
VERSE_PATTERN = re.compile('votd1 = "(.+)<BR>\s*<br>')
-SUP_PATTERN = re.compile('(<SUP> )|(</SUP>)')
+SUP_PATTERN = re.compile('(<sup>)|(</sup>)')
BR_PATTERN = re.compile('(<BR>)|(<br>)')
DEL_PATTERN = re.compile(r'(&nbsp;)|(\\")')

@@ -91,7 +91,7 @@
book = ' '.join(bookChapterL[:-1])
chapter = bookChapterL[-1]
verse = VERSE_PATTERN.search(line).group(1)
- verse = SUP_PATTERN.sub(' * ',verse)
+ verse = SUP_PATTERN.sub('*',verse)
verse = BR_PATTERN.sub('\n', verse)
verse = DEL_PATTERN.sub('',verse)
except Exception, e:
@@ -104,7 +104,7 @@
# Karamba functions
#
def initWidget(widget):
- karamba.attachClickArea(widget, karamba.getThemeText(widget,'BACKGROUND'))
+ karamba.attachClickArea(widget, karamba.getThemeImage(widget,'BACKGROUND'))
widgetUpdated(widget)

def widgetUpdated(widget):
@@ -136,17 +136,17 @@

def _show_verse(widget):
verseL = textwrap.wrap(VAR.verse, VERSE_MAX_WIDTH)
- bgHeight = CHAR_H*len(verseL)+4
+ bgHeight = CHAR_H*len(verseL)+21
bgW = karamba.createImage(widget, VERSE_BG_X, VERSE_BG_Y,
'images/details_bg.png')
for i in range(5, bgHeight, 8):
karamba.resizeImage(widget, bgW, 180, i)
karamba.redrawWidget(widget)
- karamba.resizeImage(widget, bgW, 180, bgHeight)
+ karamba.resizeImage(widget, bgW, 180, bgHeight+8)
karamba.redrawWidget(widget)

- verseW = karamba.createText(widget, VERSE_BG_X+10, VERSE_BG_Y+4,
- 170, bgHeight, '\n'.join(verseL))
+ verseW = karamba.createText(widget, VERSE_BG_X+10, VERSE_BG_Y+12,
+ 180, bgHeight, '\n'.join(verseL)) #text position
karamba.changeTextSize(widget, verseW, 11)
karamba.changeTextColor(widget, verseW, *VERSE_COLOR)

Sólo en modificado: KarambaVerseOfTheDay.py~
Sólo en modificado: KarambaVerseOfTheDay.pyc
diff -rau KarambaVerseOfTheDay/KarambaVerseOfTheDay.theme modificado/KarambaVerseOfTheDay.theme
--- KarambaVerseOfTheDay/KarambaVerseOfTheDay.theme 2003-11-14 09:18:53.000000000 -0600
+++ modificado/KarambaVerseOfTheDay.theme 2009-07-20 13:56:27.000000000 -0500
@@ -1,4 +1,4 @@
-KARAMBA X=5 Y=5 W=180 H=180 INTERVAL=3600000 LOCKED=true
+KARAMBA X=5 Y=5 W=180 H=350 INTERVAL=3600000 LOCKED=true

# BACKGROUND IMAGE
<GROUP> X=0 Y=1
Sólo en modificado: KarambaVerseOfTheDay.theme~ - Jul 20 2009
KarambaVerseOfTheDay

Karamba & Superkaramba by winelli 22 comments

edit KarambaVerseOfTheDay.py
change line 107 from:
karamba.getThemeText(widget,'BACKGROUND')
to:
karamba.getThemeImage(widget,'BACKGROUND')
and line 139 from:
bgHeight = CHAR_H*len(verseL)+4
to:
bgHeight = CHAR_H*len(verseL)+14
Gby - Feb 12 2009