In this tutorial, you will learn how to drag an image into your #wxPython application and display it to your user.
In this tutorial, you will learn how to add an image to your panel so that you have a background image to put your widgets on.
In this video tutorial, you will learn how to add icons to your wxPython application’s title bar. This is a nice feature to add to your application to give your program some branding.
In this wxPython tutorial, you will learn how to make your label flash. This is a useful way to get a user’s attention when something goes wrong.
In this screencast, you will learn how to change the transparency of your application. This will allow you to make your application fade in or out.
In this tutorial, you will learn how to reset the background color of your application to the default color.
In this tutorial, you will learn how to improve the image viewer application that you created in the previous video tutorial to make it load up a folder of images.
Then you will add some buttons so that the user can go forwards and backwards through the images or play a slideshow of the images.
This week I came across someone who was wondering if there was a way to allow the user to edit the contents of a wx.ComboBox. By editing the contents, I mean change the names of the pre-existing choices that the ComboBox contains, not adding new items to the widget.
While editing the contents of the selected item in a ComboBox works out of the box, the widget will not save those edits automatically. So if you edit something and then choose a different option in the ComboBox, the edited item will revert back to whatever it was previously and your changes will be lost.
Let’s find out how you can create a ComboBox that allows this functionality! Continue reading Letting Users Change a wx.ComboBox’s Contents in wxPython
The Portable Document Format (PDF) is a well-known format popularized by Adobe. It purports to create a document that should render the same across platforms.
Python has several libraries that you can use to work with PDFs:
- ReportLab – Creating PDFs
- PyPDF2 – Manipulating preexisting PDFs
- pdfrw – Also for manipulating preexisting PDFs, but also works with ReportLab
- PDFMiner – Extracts text from PDFs
There are several more Python PDF-related packages, but those four are probably the most well known. One common task of working with PDFs is the need for merging or concatenating multiple PDFs into one PDF. Another common task is taking a PDF and splitting out one or more of its pages into a new PDF.
You will be creating a graphical user interface that does both of these tasks using PyPDF2. Continue reading wxPython – Creating a PDF Merger / Splitter Utility