wxPython

Black Friday / Cyber Monday Sale 2018

This week I am putting my 2 most recent self-published books on Sale starting today through November 26th. ReportLab – PDF Processing with Python is available for $9.99: Leanpub Gumroad – Use offer code black18 JupyterLab 101 is available for $9.99: Leanpub Gumroad – Use offer code black18 You can also get my book, wxPython […]

Black Friday / Cyber Monday Sale 2018 Read More »

wxPython: Moving items in ObjectListView

I was recently asked about how to implement drag-and-drop of items in a wx.ListCtrl or in ObjectListView. Unfortunately neither control has this built-in although I did find an article on the wxPython wiki that demonstrated one way to do drag-and-drop of the items in a ListCtrl. However I did think that implementing some buttons to

wxPython: Moving items in ObjectListView Read More »

wxPython: Drag and Drop an Image onto Your Application

I recently came across a question on StackOverflow where the user wanted to know how to drag images onto their image control in wxPython and have the dragged image resize into a thumbnail. This piqued my interest and I decided to figure out how to do it. I knew that you could create a thumbnail

wxPython: Drag and Drop an Image onto Your Application Read More »

wxPython: All About Accelerators

The wxPython toolkit supports using keyboard shortcuts via the concept of Accelerators and Accelerator Tables. You can also bind directly to key presses, but in a lot of cases, you will want to go with Accelerators. The accelerator gives to the ability to add a keyboard shortcut to your application, such as the ubiquitous “CTRL+S”

wxPython: All About Accelerators Read More »

wxPython: Learning about TreeCtrls

The wxPython GUI toolkit comes with many widgets. A common control is a tree widget. wxPython has several different tree widgets, including the regular wx.TreeCtrl, the newer DVC_TreeCtrl and the pure Python variants, CustomTreeCtrl and HyperTreeList. In this article, we will focus on the regular wx.TreeCtrl and learn the basics of how to create and

wxPython: Learning about TreeCtrls Read More »