Popular recipes tagged "wxpython" but not "gui"http://code.activestate.com/recipes/tags/wxpython-gui/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>
wxPython: Dramatic, shaded 3-D buttons that look like round glass in a metal ring. (Python)
2011-11-19T17:37:07-08:00Edward Sitarskihttp://code.activestate.com/recipes/users/4180006/http://code.activestate.com/recipes/577951-wxpython-dramatic-shaded-3-d-buttons-that-look-lik/
<p style="color: grey">
Python
recipe 577951
by <a href="/recipes/users/4180006/">Edward Sitarski</a>
(<a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/button/">button</a>, <a href="/recipes/tags/round/">round</a>, <a href="/recipes/tags/wxpython/">wxpython</a>).
</p>
<p>These buttons work like regular wx buttons and can be used the same way.</p>
<p>They are very dramatic and add a strong visual and artistic flair to your interface.
Use when there is something really significant and a regular button just doesn't cut it.</p>
<p>The buttons are drawn with gradient shading (no bitmaps). They can be any size and support any font.</p>
<p>This source has a self-test. Just run "python roundbutton.py".</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>
wxPython PDF Viewer using Poppler (Python)
2010-04-15T17:43:27-07:00Marcelo Fernándezhttp://code.activestate.com/recipes/users/4173551/http://code.activestate.com/recipes/577195-wxpython-pdf-viewer-using-poppler/
<p style="color: grey">
Python
recipe 577195
by <a href="/recipes/users/4173551/">Marcelo Fernández</a>
(<a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/poppler/">poppler</a>, <a href="/recipes/tags/python_poppler/">python_poppler</a>, <a href="/recipes/tags/viewer/">viewer</a>, <a href="/recipes/tags/wxpython/">wxpython</a>).
</p>
<p>This example shows a PDF Viewer class, which handles things like Zoom and Scrolling. It requires python-poppler and wxPython >= 2.8.9.</p>