GUI Toolkits

PySide: Standard Dialogs and Message Boxes

The PySide GUI toolkit for Python has several standard dialogs and message boxes that you can use as-is. You can also create custom dialogs, but we’ll be saving that for a future article. In this post, we will cover the following dialogs: Color Dialog File Dialog Font Dialog Input Dialog Print & Print Preview Dialogs …

PySide: Standard Dialogs and Message Boxes Read More »

PySide: Connecting Multiple Widgets to the Same Slot

As I learn PyQt and PySide, I am writing some tutorials to help my fellow travelers. Today we’ll be looking at how to connect multiple widgets to the same slot. In other words, we’ll be binding the widgets signals (basically events) to slots (i.e. callables like functions, methods) which are better known as “event handlers”. …

PySide: Connecting Multiple Widgets to the Same Slot Read More »

PyDev Starts a Crowdsourcing Campaign on Indiegogo

Fabio Zadrozny, the primary developer behind PyDev has started a campaign on Indiegogo to fund continuing development of PyDev. In case you’re new to Python development, PyDev is a plugin for Eclipse that provides a nice Integrated Development Environment (IDE) for Python, Jython and IronPython in the Eclipse environment. You can read about why Fabio …

PyDev Starts a Crowdsourcing Campaign on Indiegogo Read More »

wxPython: How to Double-click an Item in an ObjectListView Widget

This week, I needed to figure out how to attach an event handler that would fire when I double-clicked an item (i.e. row) in an ObjectListView widget that was in LC_REPORT mode. For some reason, there isn’t an obvious mouse event for that. There is an EVT_LIST_ITEM_RIGHT_CLICK and an EVT_LIST_ITEM_MIDDLE_CLICK, but nothing for LEFT clicks …

wxPython: How to Double-click an Item in an ObjectListView Widget Read More »

wxPython: How to drag and drop a file from your app to the OS

Today on StackOverflow I saw someone who wanted to know how to drag a file from a wx.ListCtrl onto their Desktop or somewhere else in the file system. They were using the file manager skeleton from zetcode, but couldn’t figure out how to add the DnD portion. After a bit of searching and hacking, I …

wxPython: How to drag and drop a file from your app to the OS Read More »