dabo Commit Revision 5967 Date: 2010-08-31 14:03:53 -0700 (Tue, 31 Aug 2010) Author: Paul Trac: http://trac.dabodev.com/changeset/5967
Changed: U trunk/dabo/lib/reportUtils.py Log: Previewing and printing should be modeless by default. Fixed. Diff: Modified: trunk/dabo/lib/reportUtils.py =================================================================== --- trunk/dabo/lib/reportUtils.py 2010-08-31 13:02:02 UTC (rev 5966) +++ trunk/dabo/lib/reportUtils.py 2010-08-31 21:03:53 UTC (rev 5967) @@ -61,17 +61,19 @@ break if viewer: - subprocess.call((viewer, path)) + if modal: + subprocess.call((viewer, path)) + else: + subprocess.Popen((viewer, path)) - def printPDF(path): """Print the passed PDF file to the default printer.""" try: os.startfile(path, "print") except AttributeError: # startfile() only available on Windows - subprocess.call(("lpr", path)) + subprocess.Popen(("lpr", path)) _______________________________________________ Post Messages to: Dabo-dev@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/20100831210354.00292204...@mail.paulmcnett.com