[Pychord-commits] r80 - in trunk: pgui pychord2
danilo at garage.maemo.org
danilo at garage.maemo.org
Fri Mar 28 19:09:54 EET 2008
Author: danilo
Date: 2008-03-28 19:09:53 +0200 (Fri, 28 Mar 2008)
New Revision: 80
Modified:
trunk/pgui/list.py
trunk/pychord2/pysql.py
trunk/pychord2/window_search.py
Log:
- List space betwin lines fixed
Modified: trunk/pgui/list.py
===================================================================
--- trunk/pgui/list.py 2008-03-28 17:01:43 UTC (rev 79)
+++ trunk/pgui/list.py 2008-03-28 17:09:53 UTC (rev 80)
@@ -52,8 +52,8 @@
container.onClickRelease(self)
self.lastMove = 0
- def addLine(self, text):
- lbl = label(self, [2,len(self.objects)*self.ptsize+10], text, (255,255,255), fontFile = self.fontFile, ptsize = self.ptsize)
+ def addLine(self, text, spacing = 5):
+ lbl = label(self, [2,len(self.objects)*(self.ptsize+spacing)], text, (255,255,255), fontFile = self.fontFile, ptsize = self.ptsize)
self.addElement(lbl)
return lbl
Modified: trunk/pychord2/pysql.py
===================================================================
--- trunk/pychord2/pysql.py 2008-03-28 17:01:43 UTC (rev 79)
+++ trunk/pychord2/pysql.py 2008-03-28 17:09:53 UTC (rev 80)
@@ -84,7 +84,7 @@
def search(self, by, key):
cur = self.connection.cursor()
- sql = 'select id,artist,song from tabs where '+by+' like "%'+ key +'%" LIMIT 10'
+ sql = 'select id,artist,song from tabs where '+by+' like "%'+ key +'%" LIMIT 30'
cur.execute(sql)
return cur.fetchall()
Modified: trunk/pychord2/window_search.py
===================================================================
--- trunk/pychord2/window_search.py 2008-03-28 17:01:43 UTC (rev 79)
+++ trunk/pychord2/window_search.py 2008-03-28 17:09:53 UTC (rev 80)
@@ -47,7 +47,7 @@
i = 0
for l in res:
j = l[2] + ', by ' + l[1] + ''
- lbl = lst.addLine(j)
+ lbl = lst.addLine(j, 20)
lbl.registerClickSlot(self.openSong, l[0])
i += 1
More information about the Pychord-commits
mailing list