Mercurial > code > home > repos > light9
diff bin/ascoltami @ 223:f6262de03bf2
tk touchups and refactors in asco
author | drewp@bigasterisk.com |
---|---|
date | Wed, 20 Apr 2005 05:30:36 +0000 |
parents | 13c089886f61 |
children | 09176d5ea00b |
line wrap: on
line diff
--- a/bin/ascoltami Wed Apr 20 05:26:53 2005 +0000 +++ b/bin/ascoltami Wed Apr 20 05:30:36 2005 +0000 @@ -16,10 +16,6 @@ presong and postsong silence -never continue through playlist. maybe use 1-song mpd playlists? - -install pympd, (pypi too) - """ from __future__ import division,nested_scopes @@ -35,8 +31,6 @@ import run_local from light9 import networking, showconfig -import sys -sys.path.append("/home/drewp/projects/pympd") from pympd import Mpd appstyle={'fg':'white','bg':'black'} @@ -63,10 +57,10 @@ return float(self.player.total_time.get()) def xmlrpc_songname(self): """song filename, or None""" - return self.player.filename or "No song" + return self.player.filename_var.get() or "No song" class Player: - """semprini-style access to mpd""" + """semprini-style access to mpd. in here is where we add the padding""" def __init__(self, app, playlist, media=None): @@ -220,9 +214,10 @@ ('State', player.state, "%s")): tk.Label(self,text=txt, relief='raised',bd=1,font='arial 9', - **appstyle).pack(side='left') + **appstyle).pack(side='left',fill='y') l = tk.Label(self,width=7, anchor='w', text=var.get(), relief='sunken',bd=1,font='arial 12 bold', + padx=2,pady=2, bg='#800000',fg='white') if txt == 'Song': l.config(anchor='e') @@ -298,7 +293,7 @@ root=tk.Tk() root.wm_title("ascoltami") -root.wm_geometry("656x736+263+0") +root.wm_geometry("+263+0") root.config(bg="black") player=Player(None,None)