Popular Python recipes tagged "meta:requires=wxpython"http://code.activestate.com/recipes/langs/python/tags/meta:requires=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>
New Version: GUI PDF Table of Contents Editor using fitz / MuPDF, wxPython (Python)
2016-06-22T11:34:20-07:00Harald Liederhttp://code.activestate.com/recipes/users/4191581/http://code.activestate.com/recipes/580623-new-version-gui-pdf-table-of-contents-editor-using/
<p style="color: grey">
Python
recipe 580623
by <a href="/recipes/users/4191581/">Harald Lieder</a>
(<a href="/recipes/tags/fitz/">fitz</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/python/">python</a>, <a href="/recipes/tags/toc/">toc</a>).
Revision 2.
</p>
<p>Create or modify the bookmarks list of a PDF (ToC - table of contents).
Supports arbitrary hierarchy levels.
Display PDF while editing to control bookmark targets.
PDF meta data are maintainable.
Save PDF under the same or a different name.</p>
PDF Joiner / Splitter using wxPython, PyMuPDF (fitz / MuPDF) (Python)
2016-03-15T19:07:35-07:00Harald Liederhttp://code.activestate.com/recipes/users/4191581/http://code.activestate.com/recipes/580622-pdf-joiner-splitter-using-wxpython-pymupdf-fitz-mu/
<p style="color: grey">
Python
recipe 580622
by <a href="/recipes/users/4191581/">Harald Lieder</a>
(<a href="/recipes/tags/join/">join</a>, <a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/split/">split</a>).
</p>
<p>Full featured PDF joiner. Join several PDF files into one output PDF. Page ranges can be specified as well as page orientation for each output page range. Tables of contents are intelligently preserved for each page range (can also be switched off).
Output PDF metadata editable.</p>
Music Downloader with Wx GUI! (Python)
2013-11-05T02:52:29-08:00Christian Careagahttp://code.activestate.com/recipes/users/4186639/http://code.activestate.com/recipes/578681-music-downloader-with-wx-gui/
<p style="color: grey">
Python
recipe 578681
by <a href="/recipes/users/4186639/">Christian Careaga</a>
(<a href="/recipes/tags/beautifulsoup/">beautifulsoup</a>, <a href="/recipes/tags/downloader/">downloader</a>, <a href="/recipes/tags/gui/">gui</a>, <a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/urllib/">urllib</a>, <a href="/recipes/tags/urllib2/">urllib2</a>, <a href="/recipes/tags/wxpyton/">wxpyton</a>).
</p>
<p>Just type in a song and the artist and the program will get the YouTube video, convert it to an mp3 then download it!
It has a high quality function and a medium quality function and also the user can choose the directory and name they want the file to be saved to!</p>
<p>It is the first time I've used threads and my second time with WxPython! I used BeautifulSoup for the scraping and I'm pretty familiar with that.just thought id share it with you guys and see if you have any feedback or suggestions!</p>
<p>also you may get an error saying self.convhtml doesn't exist just wait then retry</p>
<p>Here is a link to an screenshot:</p>
<p><a href="http://adf.ly/XJaoU" rel="nofollow">http://adf.ly/XJaoU</a></p>
<p>if you want you can checkout the Github page:</p>
<p><a href="http://adf.ly/XGL6P" rel="nofollow">http://adf.ly/XGL6P</a></p>
<p>also you will need to make a folder called Files and put a file called dir.txt and in the file write /Files. this is where the music will be downloaded to!</p>
<p>I just made the .exe so you can just use that and its easier!
Here:
<a href="http://adf.ly/XRjRH" rel="nofollow">http://adf.ly/XRjRH</a></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>