Square-maps in wxPython for RunSnakeRun

Just built a little square map implementation in wxPython.  Eventually will be integrating it into RunSnakeRun to let you see a graphical breakdown of the hotspots in your profile (as you do in KCacheGrind, but this should run easily on any of the major platforms because of wxPython).  I think I'll want to tweak the layout and optimize it before integrating it, but it's kinda neat even as it is.

bzr branch http://www.vrplumber.com/bzr/squaremap

To get the code. A sample image is online for those who are saying "What's a square map?"  The sample image is just showing the directory structure on my work laptop, btw.  The highlight follows the mouse and is pointing at the INBOX directory.

At the moment the "highlight" code is built into the square-map, might want to make it just something that the client code can set.  I'm also thinking maybe I should separate out the layout logic from the GUI code so that the same code could run in e.g. Eric under Qt.  That's for another day, though.


  1. Frank Niessink

    Frank Niessink on 01/07/2009 3:13 p.m. #


    That looks very cool. Can I use your code in an open source (GPL) application (Task Coach, see http://www.taskcoach.org)?

    Thanks, Frank

  2. Mike Fletcher

    Mike Fletcher on 01/07/2009 3:33 p.m. #

    Sure, code is under BSD license. I'd prefer any enhancements coming upstream to be BSD, but obviously you can do whatever you want with it within the license.

    Note: the project is now at:


  3. Frank Niessink

    Frank Niessink on 01/07/2009 5:08 p.m. #

    Hi Mike,

    Thanks. I was able to integrate it very easily into Task Coach. If I can find your email address I'll mail you a screen shot.

    Cheers, Frank

Comments are closed.


Pingbacks are closed.