Popular recipes tagged "meta:requires=wxpython" and "wxpython"http://code.activestate.com/recipes/tags/meta:requires=wxpython+wxpython/2016-09-28T12:21:03-07:00ActiveState Code RecipeswxPython PDF / XPS Viewer using PyMuPDF (binding for fitz / MuPDF) (Python)
2016-09-28T12:21:03-07:00Jorj X. McKiehttp://code.activestate.com/recipes/users/4193772/http://code.activestate.com/recipes/580621-wxpython-pdf-xps-viewer-using-pymupdf-binding-for-/
<p style="color: grey">
Python
recipe 580621
by <a href="/recipes/users/4193772/">Jorj X. McKie</a>
(<a href="/recipes/tags/cbz/">cbz</a>, <a href="/recipes/tags/epub/">epub</a>, <a href="/recipes/tags/mupdf/">mupdf</a>, <a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/pymupdf/">pymupdf</a>, <a href="/recipes/tags/wxpython/">wxpython</a>, <a href="/recipes/tags/xps/">xps</a>).
Revision 2.
</p>
<p>A simple program to display a PDF (or XPS, EPUB, CBZ) document with forward / backward buttons and a field for directly jumping to a specific page.
It uses the Python binding PyMuPDF for fitz, the high-performance / high-quality graphics library of MuPDF.
It obviously can also be used to display XPS documents on non-Windows platforms.</p>
<p>This new version also supports any links contained in a page.</p>
ObjectListView GetColumnClicked(event) # handler (Python)
2011-01-14T04:41:35-08:00Dev Playerhttp://code.activestate.com/recipes/users/4170638/http://code.activestate.com/recipes/577543-objectlistview-getcolumnclickedevent-handler/
<p style="color: grey">
Python
recipe 577543
by <a href="/recipes/users/4170638/">Dev Player</a>
(<a href="/recipes/tags/listctrl/">listctrl</a>, <a href="/recipes/tags/objectlistview/">objectlistview</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/wxpython/">wxpython</a>).
</p>
<p>ObjectListView is a 3rd party wxPython 2.8+ module that adds a more object-friendly API to the wx.ListCtrl(). When clicking on an item in the list it's easy to process mouse click events or item selection events. However some OS platforms do not set all the event's attributes. Also the various HitTest() methods currently on various platforms are not implemented the same. So here is a little recipe to get the column number (first column equals zero) when left clicking and item in the ObjectListView with the mouse.</p>