Le labo

Bidouilles et prises de notes en vrac

Accueil > Docs > quodlibet cover grid

quodlibet cover grid

jeudi 1er mai 2014, par b_b

Original issue (created in 2009).

Source code @guthib, originally @bitbucket (first try was in this gist @github).

Edit ~/.quodlibet/config and set cover_size = 100 to display bigger covers in the grid.

quodlibet cover grid
quodlibet cover grid

Todo


 you’d have to replace the Treeview with an Iconview, basically
 re covers, you have to use set_cell_data_func and set the image there, similar to the list code
 replace __cover_column line 386 (no need to toggle covers :p)
 replace __cover_column line 591
 use class inheritance in order to avoid AlbumList code duplication
+ I don’t think the on demand loading works right.. and maybe does something stupid instead which makes it slow
+ maybe we should not display [small]<~discs|<~discs> - ><~tracks> - <~long-length>[/small] by default ?
 fix __popup method to get context menu on covers (problem is that popup-menu signal is for RCMTreeView which is "linked" to treeview)
 find a way to use TreeViewHints to get tooltips working (used personal tooltip function instead)
 add an option to hide text details in the grid
+ add an option to display infos within the cover, reference
+ set a personnal default icon for album, mix of qudolibet logo and this or that from elemetary noise.
+ use fancy shadows on covers ? see this issue on coverart
 fix bug with CTRL+M
+ make a nice pull request on github

Docs GTK

Me discovering Python & PyGTK

iconview

http://python-gtk-3-tutorial.readthedocs.org/en/latest/iconview.html

http://lazka.github.io/pgi-docs/api/Gtk_3.0/classes/IconView.html

http://www.andreagrandi.it/2008/04/15/using-gtkiconview-in-python-a-small-tutorial/

http://zetcode.com/gui/pygtk/advancedwidgets/

gtk.IconView and set_cell_data_func
http://www.daa.com.au/pipermail/pygtk/2010-November/019162.html
https://bitbucket.org/inigoserna/bidebarrieta/src/9f3399079e18/ui/iconview.py#cl-32

Tooltip en PyGTK para un IconView (insertado en un ScrolledWindow) : http://damncorner.blogspot.fr/2009/12/tooltip-en-pygtk-para-un-iconview.html

treeview

http://lazka.github.io/pgi-docs/api/Gtk_3.0/classes/TreeView.html

http://python-gtk-3-tutorial.readthedocs.org/en/latest/treeview.html

http://www.mono-project.com/GtkSharp_TreeView_Tutorial

Possibles sources

https://git.gnome.org/browse/gnome-music/tree/gnomemusic/widgets.py#n447

https://github.com/fossfreedom/coverart-browser/blob/master/coverart_widgets.py#L928

text embed from coverart-browser

Others

http://stackoverflow.com/questions/3596926/is-this-possible-to-draw-gtktreeview-listed-like-gtkiconview

Uninstall a python package that doesn’t provide a setup.py uninstall method : http://stackoverflow.com/a/1550235

Parasite, like firebug for GTK : http://chipx86.github.io/gtkparasite/

http://whyareyoureadingthisurl.wordpress.com/category/programming/page/2/

http://askubuntu.com/questions/124654/gtkiconview-doesnt-automatically-fill-the-space-with-icon-when-user-resizes-the

http://stackoverflow.com/questions/19435221/how-do-i-find-the-cursor-position-clicked-within-a-cell-of-a-gtk-iconview

http://askubuntu.com/questions/144311/how-to-make-a-gtk-iconview-react-to-single-click-instead-of-double-click/167142#167142

http://blog.sarine.nl/2008/12/31/iconview-slow-hell/
http://blog.sarine.nl/2009/05/08/gmpc-plugin-album-view/

http://stackoverflow.com/questions/8704963/speed-up-image-loading-in-a-gtk-iconview

Git/Mercurial command equivalence table