title: xlwt - How to add page breaks to an Excel File?
body: <p>I'm trying to add page breaks whenever a column's value changes in Excel using Python and <a href="http://www.python-excel.org/" rel="nofollow">xlwt</a>.</p>
  
  <p>Does anyone know how to do this?</p>
  
  <p>I found <a href="http://groups.google.com/group/python-excel/browse_thread/thread/f5cd78b3023311ab" rel="nofollow">one example</a> but they don't really say if their code works, and they don't say what the numbers mean in the tuple:</p>
  
  <pre><code>ws.horz_page_breaks = [(54, 0, 255), (108, 0, 255)]
  </code></pre>