changeset 235:d19c607c41dc

font and window sizes, sort songs
author drewp@bigasterisk.com
date Mon, 13 Jun 2005 00:39:03 +0000
parents 079cc244a59e
children 63601fe0c3b0
files bin/ascoltami
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bin/ascoltami	Mon Jun 13 00:37:59 2005 +0000
+++ b/bin/ascoltami	Mon Jun 13 00:39:03 2005 +0000
@@ -163,9 +163,9 @@
     for i,sf in enumerate(songfiles):
         b=tk.Button(songlist,text=sf[prefixlen:],width=maxsfwidth,
                     anchor='w',pady=0,bd=0,relief='flat',
-                    font="arial 17 bold")
+                    font="arial 14 bold")
         b.bind("<Configure>",lambda ev,b=b:
-               b.config(font="arial %d bold" % min(15,int((ev.height-3)*.8))))
+               b.config(font="arial %d bold" % min(12,int((ev.height-3)*.8))))
         try:
             # rainbow colors
             frac=i/len(songfiles)
@@ -319,10 +319,11 @@
 if len(songfiles)<1:
     songfiles = [f for f in os.listdir(showconfig.musicDir())
                  if f.endswith('wav')]
+    songfiles.sort()
 
 root=tk.Tk()
 root.wm_title("ascoltami")
-root.wm_geometry("+1270+440")
+#root.wm_geometry("+1270+440")
 root.config(bg="black")
 player=Player(None,None)