Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Client for mpd written in python
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Tue Dec 21, 2004 1:50 am    Post subject: Reply with quote

Swoosh wrote:
Feature request: Scrolling titles for mini-mode

I think it will be some ugly code to know when the title fits or not but I will think about it some more.
Swoosh wrote:
Also, when using mini-mode and making the window small the volume bar is useless. I was thinking that you could replace it with two small buttons (half size, one on top of the other), which change the percentage of volume, e.g 5% decrease or increase.

Good idea. There wasn't any really good widget in pygtk that I could find. The best was a spinbox but it's still a tad too big. Maybe some gtk guru knows a better way?
Swoosh wrote:
i made a few icons, based on the gpl'd etiquette icon pack
i need space to host them

Great! I'd love to take a look. Check your pm ;)

I'll be away over the holidays so i'll be a bit slow here. Merry christmas everyone!
Back to top
View user's profile Send private message
Swoosh
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 203

PostPosted: Tue Dec 21, 2004 3:47 pm    Post subject: Reply with quote

I've sent them to your email address.
Back to top
View user's profile Send private message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Mon Dec 27, 2004 4:22 pm    Post subject: Reply with quote

New version uploaded:
    * Licensed under GPL.
    * Arbitrary http streams can be added to the playlist. (Earlier only streams that were part of a playlist worked.) NOTE: The included mpdclient.py is required.
    * You can now save playlists.
    * More customizable gui - only chosen buttons visible. See pympcrc.sample for details.
    * Stop button.
    * Themeable button icons. The old stock icons are not available anymore.
    * Add shuffle playlist command.
    * Volume control becomes smaller spinbox if main window is narrow.
Back to top
View user's profile Send private message
Swoosh
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 203

PostPosted: Wed Dec 29, 2004 9:46 pm    Post subject: Reply with quote

Yet Another Feature Request (sorry :) )
Could you make pympc remember its position and size? (aswell as the 'mode')

Another note: pympc sometimes locks up and has to be killed after being resized. I dont have any instructions on how to reproduce it yet, it seems to be quite random. The only hint towards reproducing it is to resize the player randomly and quickly.

Edit: (optional) Could you make pympc show the song title in the title bar?
Edit 2: Locking up seems to be caused by custom button gfx.
Back to top
View user's profile Send private message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Thu Dec 30, 2004 4:32 pm    Post subject: Reply with quote

Swoosh wrote:
Yet Another Feature Request (sorry :) )
Don't be sorry. Without the requests I don't think I would work much on it so keep them coming.
Swoosh wrote:

Could you make pympc remember its position and size? (aswell as the 'mode')
*Add to TODO list*

Swoosh wrote:

Another note: pympc sometimes locks up and has to be killed after being resized. I dont have any instructions on how to reproduce it yet, it seems to be quite random. The only hint towards reproducing it is to resize the player randomly and quickly.

Edit: (optional) Could you make pympc show the song title in the title bar?

Is it a hard lock? And does it lock up in both normal and mini mode? The code to prevent the window's height from being changed in mini mode is broken. I get some strange behaviour sometimes when I resize in mini mode.
Swoosh wrote:
Edit 2: Locking up seems to be caused by custom button gfx.
I'm not sure I understand. Do you mean that it doesn't lock up with the default icons?
Back to top
View user's profile Send private message
Swoosh
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 203

PostPosted: Thu Dec 30, 2004 6:40 pm    Post subject: Reply with quote

CPU usage rockets and pympc has to be killed. Occurs in both modes when resizing the player to the smallest size.

Ignore my second edit, the locking happens regardless of the icons used.
Back to top
View user's profile Send private message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Thu Dec 30, 2004 7:38 pm    Post subject: Reply with quote

Swoosh wrote:
CPU usage rockets and pympc has to be killed. Occurs in both modes when resizing the player to the smallest size.

Ignore my second edit, the locking happens regardless of the icons used.

Hmm, I can't reproduce it here. I've resized like crazy without results ;)
Please try the latest version, there are a few changes to the resize code.
Other changes:
    * Yet more customizable gui. See pympcrc.sample.
    * New theme 'swoosh', made by Swoosh. Thanks!
    * Window title is the same as status string.
    * You can now delete playlists.


Edit: The bandwidth for my account has been exceeded so downloads is not available atm. Does anybody know of any good (free) hosting?
Back to top
View user's profile Send private message
Swoosh
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 203

PostPosted: Sat Jan 01, 2005 4:57 pm    Post subject: Reply with quote

I suggest that you sign up for an account on metawire (free shell account with 25MB)

I've mirrored it for you:
http://www.metawire.org/~swoosh/pympc-20041230.tar.gz

image of locking up
http://www.metawire.org/~swoosh/pympc.png
Back to top
View user's profile Send private message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Tue Jan 04, 2005 10:39 am    Post subject: Reply with quote

Now pympc is hosted on sourceforge.net or, more precisely, here.

A new release is also available. Changes:
    * Crossfade support.
    * New shortcuts. See README.
    * Searching for unicode characters works correctly.
    * Window size, position and mode are saved in ~/.pympc.state.

I think I found the cause for the locking up. Please check if it's still there.
Back to top
View user's profile Send private message
Swoosh
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 203

PostPosted: Thu Jan 06, 2005 9:14 pm    Post subject: Reply with quote

Doesn't seem to work for me, I get:

Code:
    self.notebook.set_current_page(int(conf['state.tab']))
KeyError: 'state.tab'


On startup attempt
Back to top
View user's profile Send private message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Thu Jan 06, 2005 9:54 pm    Post subject: Reply with quote

Swoosh wrote:
Doesn't seem to work for me, I get:

Code:
    self.notebook.set_current_page(int(conf['state.tab']))
KeyError: 'state.tab'


On startup attempt

Doh, stupid one-liner. I assumed ~/.pympc.state existed. Fixed and uploaded; same filename: pympc-20050104.tar.gz.
Back to top
View user's profile Send private message
landon
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 159

PostPosted: Fri Jan 07, 2005 9:37 pm    Post subject: Reply with quote

:D

Good news, as always.
Back to top
View user's profile Send private message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Wed Jan 12, 2005 3:22 pm    Post subject: Reply with quote

outspoken wrote:
one of my big wishlist items in any gui player is cover art to be displayed for the music that im listening to. so far the programs that support this are xmms and a few other ones that i dont like using. is it possible to squeeze this into your program? =)

The latest release can display cover art.
Linky
Are there any common naming conventions for front and back covers? Now it just searches for 'front' and 'back' in the filname.


Last edited by oggy on Sat Jan 22, 2005 9:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
syscrash
Guru
Guru


Joined: 14 Apr 2003
Posts: 541

PostPosted: Sat Jan 22, 2005 8:41 pm    Post subject: Reply with quote

Very cool! Nice work :D
_________________
Play ET? Come by #gentoo.et on freenode!
http://syscrash.ca
Back to top
View user's profile Send private message
jack_mort
Apprentice
Apprentice


Joined: 30 Jan 2003
Posts: 167

PostPosted: Sun Jan 23, 2005 9:52 am    Post subject: Reply with quote

This "little" proggie is getting better and better : thanks for the work oggy :)
Back to top
View user's profile Send private message
ahubu
Guru
Guru


Joined: 16 Aug 2003
Posts: 400
Location: Groningen, The Netherlands

PostPosted: Sun Jan 23, 2005 3:13 pm    Post subject: Reply with quote

Nicely done man. This is a very slick and simple client for on my laptop. Only thing is the slidebar, it can stretch out so far that the feeling is completely gone. You might want to restrict that?

Anyway, thanks a bunch!
_________________
Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak.
-Unknown
Back to top
View user's profile Send private message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Sun Jan 23, 2005 4:44 pm    Post subject: Reply with quote

Glad you like it. :D
ahbuist wrote:
Only thing is the slidebar, it can stretch out so far that the feeling is completely gone. You might want to restrict that?

Maybe the volume bar needs a restriction but I'm not so sure about the seek bar. Sometimes you can have long concerts or audiobooks in one file. If so I wouldn't want to give up the presicion of a long seek bar. But you have a point though...
Back to top
View user's profile Send private message
ahubu
Guru
Guru


Joined: 16 Aug 2003
Posts: 400
Location: Groningen, The Netherlands

PostPosted: Sun Jan 23, 2005 4:53 pm    Post subject: Reply with quote

Ah you are probably right about the bar. I forgot about my mix/concert-files :)
Ah well, there can't be enough variation in mpd frontends!
_________________
Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak.
-Unknown
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 584
Location: WildWestwoods

PostPosted: Mon Feb 07, 2005 8:32 am    Post subject: Reply with quote

hell, that´s exactly what i was looking for. Nice work!
Normally i control mpd through multimedia-buttons=>lineakd=>mpc, but sometimes i want to select and hear a specific song or album, and therefore from now on i´ll use your gui. Thanks!
Back to top
View user's profile Send private message
madbiker
Guru
Guru


Joined: 12 Oct 2003
Posts: 439
Location: Victoria, BC, Canada

PostPosted: Tue Mar 08, 2005 12:21 am    Post subject: Reply with quote

Just heard about your nice little program in a Desktop thread. Downloaded it, but:
Code:
Traceback (most recent call last):
  File "/usr/bin/pympc", line 29, in ?
    app = pympc.Pympc()
AttributeError: 'module' object has no attribute 'Pympc'

*shrug*
Back to top
View user's profile Send private message
~L~
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 154
Location: Finland

PostPosted: Wed Mar 09, 2005 9:03 am    Post subject: Reply with quote

Excellent app!

If I could change the mpd output from spdif to speakers and vice versa on the fly, I could get rid of xmms.
IMHO best mpd client I've tried so far.
Back to top
View user's profile Send private message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Wed Mar 09, 2005 11:05 am    Post subject: Reply with quote

madbiker wrote:
Just heard about your nice little program in a Desktop thread. Downloaded it, but:
Code:
Traceback (most recent call last):
  File "/usr/bin/pympc", line 29, in ?
    app = pympc.Pympc()
AttributeError: 'module' object has no attribute 'Pympc'

*shrug*

Hmm, it doesn't seem to be installed correctly. You can either just extract the tar.gz in a dir an run pympc from there without installing it, or you can install it with
Code:
python setup.py install
and execute /usr/bin/pympc.

It seeems as if you did the install but the modules can't be found. Check if the installation placed files in
Code:
/usr/lib/python2.3/site-packages/pympc
.
Back to top
View user's profile Send private message
madbiker
Guru
Guru


Joined: 12 Oct 2003
Posts: 439
Location: Victoria, BC, Canada

PostPosted: Wed Mar 09, 2005 5:01 pm    Post subject: Reply with quote

Code:
$ ls /usr/lib/python2.3/site-packages/pympc
total 248K
-rw-r--r--  1 root root   5 Feb 24 16:16 __init__.py
-rw-r--r--  1 root root 130 Mar  7 12:31 __init__.pyc
-rw-r--r--  1 root root 34K Feb 27 13:27 gui.py
-rw-r--r--  1 root root 50K Mar  7 12:31 gui.pyc
-rw-r--r--  1 root root 35K Jan  6 13:59 mpdclient.py
-rw-r--r--  1 root root 56K Mar  7 12:31 mpdclient.pyc
-rw-r--r--  1 root root 24K Feb 27 03:10 pympc.py
-rw-r--r--  1 root root 33K Mar  7 12:31 pympc.pyc
Back to top
View user's profile Send private message
madbiker
Guru
Guru


Joined: 12 Oct 2003
Posts: 439
Location: Victoria, BC, Canada

PostPosted: Wed Mar 09, 2005 5:08 pm    Post subject: Reply with quote

I tried downloading the latest tarball from sourceforge, untaring it, then cding to the directory and just trying ./pympc. Got this:

Code:
$ ./pympc
Traceback (most recent call last):
  File "./pympc", line 29, in ?
    app = pympc.Pympc()
  File "/home/glib/downloads/pympc-20050227/pympc.py", line 45, in __init__
    gui.apply_state_file(self.conf)
  File "/home/glib/downloads/pympc-20050227/gui.py", line 620, in apply_state_file
    self.app.pl.center()
  File "/home/glib/downloads/pympc-20050227/pympc.py", line 326, in center
    if self.app.state in ('pause', 'play'):
AttributeError: Pympc instance has no attribute 'state'
Back to top
View user's profile Send private message
oggy
n00b
n00b


Joined: 28 Oct 2004
Posts: 40

PostPosted: Wed Mar 09, 2005 5:55 pm    Post subject: Reply with quote

madbiker wrote:
I tried downloading the latest tarball from sourceforge, untaring it, then cding to the directory and just trying ./pympc. Got this:

Code:
$ ./pympc
Traceback (most recent call last):
  File "./pympc", line 29, in ?
    app = pympc.Pympc()
  File "/home/glib/downloads/pympc-20050227/pympc.py", line 45, in __init__
    gui.apply_state_file(self.conf)
  File "/home/glib/downloads/pympc-20050227/gui.py", line 620, in apply_state_file
    self.app.pl.center()
  File "/home/glib/downloads/pympc-20050227/pympc.py", line 326, in center
    if self.app.state in ('pause', 'play'):
AttributeError: Pympc instance has no attribute 'state'

OK thats a better error message ;). It can't connect to mpd at all.
If I start pympc without mpd running I get the same error. If you don't have mpd running at localhost port 6600 you must specify those in the environment variables MPD_HOST and MPD_PORT. If you have a password use MPD_HOST=pass@host.

edit:
The cvs version shouldn't crash when it can't find mpd but start and show 'not connected' in the statusbar.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum