Add DualActionButton widget for seek + bookmark buttons
commitbe02a9bb486e07092b2d05e33cb2671315fd181b
authorThomas Perl <thp@perli.net>
Wed, 25 Mar 2009 19:19:20 +0000 (25 20:19 +0100)
committerThomas Perl <thp@perli.net>
Wed, 25 Mar 2009 19:19:20 +0000 (25 20:19 +0100)
tree59eeb8b04382f4473afa4b6fa89bd625bcc24eab
parent91e008a2710517d27444944da5b92937a8008600
Add DualActionButton widget for seek + bookmark buttons

This widget allows to have an easy-to-use API for having
a button that responds to a "default" action and another
action that is executed when the button is pressed a bit
longer ("longpress").

The widget's image/label will be set to an alternative
value, so it "shows" to the user which action will be
carried out.

The longpress action of the bookmark button is to switch
to the playlist tab and focus the currently-playing track.
src/panucci/panucci.py
src/panucci/playlist.py
src/panucci/widgets.py [new file with mode: 0644]