projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
typo--
[minwii.git]
/
src
/
minwii
/
widgets
/
songfilebrowser.py
diff --git
a/src/minwii/widgets/songfilebrowser.py
b/src/minwii/widgets/songfilebrowser.py
index
cfa3022
..
da2bdec
100755
(executable)
--- a/
src/minwii/widgets/songfilebrowser.py
+++ b/
src/minwii/widgets/songfilebrowser.py
@@
-36,6
+36,8
@@
class FileOpenDialog(FileDialog):
else: self.curdir = path
self.dir_img = basic.Image(
pguglobals.app.theme.get(cls1+'.folder', '', 'image'))
else: self.curdir = path
self.dir_img = basic.Image(
pguglobals.app.theme.get(cls1+'.folder', '', 'image'))
+ self.soundfile_img = basic.Image(
+ pguglobals.app.theme.get(cls1+'.soundfile', '', 'image'))
td_style = {'padding_left': 4,
'padding_right': 4,
'padding_top': 2,
td_style = {'padding_left': 4,
'padding_right': 4,
'padding_top': 2,
@@
-109,15
+111,15
@@
class FileOpenDialog(FileDialog):
style = {}
if iw > ih :
style['width'] = PICTURE_ITEM_SIZE
style = {}
if iw > ih :
style['width'] = PICTURE_ITEM_SIZE
- style['height'] =
PICTURE_ITEM_SIZE * float(ih) / iw
+ style['height'] =
int(round(PICTURE_ITEM_SIZE * float(ih) / iw))
else :
style['heigth'] = PICTURE_ITEM_SIZE
else :
style['heigth'] = PICTURE_ITEM_SIZE
- style['width'] =
PICTURE_ITEM_SIZE * float(iw) / ih
+ style['width'] =
int(round(PICTURE_ITEM_SIZE * float(iw) / ih))
img = basic.Image(img, style=style)
img = basic.Image(img, style=style)
- self.list.add(l[0], value = l[1], image = img)
else :
else :
- self.list.add(l[0], value = l[1])
+ img = self.soundfile_img
+ self.list.add(l[0], value = l[1], image = img)
self.list.set_vertical_scroll(0)
self.list.set_vertical_scroll(0)