Visions of AestiaRamblings of a developerGtkPrint - hope at last!- March 29, 2006 I&8217;ve been disappointed for a long time in how broken printing was using PyGTK; currently I just dump out a PDF in a temp file and send that to the printer. Luckily, the (poorly-documented and little used) GnomePrint and GnomePrintUI are on the way out, and a cairo-based printing API with cross-platform support has been merged ...http://www.nzlinux.org.nz/blogs/2006/03/29/gtkprint-hope-at-last/ Neat Python trick- March 29, 2006 This is mostly as a reminder to myself, in case I forget again. If you want to put all your unit tests in a subdirectory called &8220;tests&8221;, do so and add &8220;..&8221; to the python path. import sys, os, re, unittest, os.path def regressionTest(): path=os.path.abspath(os.path.dirname(sys.argv0)) files=os.listdir(path) test=re.compile("tests.py$", re.IGNORECASE) files=filter(test.search, files) filenameToModuleName = lambda f:...http://www.nzlinux.org.nz/blogs/2006/03/29/neat-python-trick/ |