Cross-Platform

This article will be about a topic that can be used across platforms, such as Linux, Windows and Mac.

wxPython 201: Syncing Scrolling Between Two Grids

This week I saw a question on StackOverflow about putting two grids into a SplitterWindow which itself was in a Notebook page. Personally I think that’s a little convoluted, but I thought it was an interesting challenge and I came up with a solution. Then the fellow wanted to know how to sync the scrolling […]

wxPython 201: Syncing Scrolling Between Two Grids Read More »

A new Python Kickstarter Project: Advanced Web Development, featuring Django 1.6

Last night I received an email about a new Python-related Kickstarter. The Real Python crew added a new author to write a book entirely about Django 1.6. This is a subject that I keep meaning to get into and haven’t had the opportunity to do so. Hopefully by backing this project, I’ll finally learn Django.

A new Python Kickstarter Project: Advanced Web Development, featuring Django 1.6 Read More »

wxPython: ObjectListview – How to Double-click items

The other day I was working on a project where I was using the fabulous ObjectListView widget (a wrapper around wx.ListCtrl) and I wanted to add the ability to double-click an item in the control to make it open a PDF. I knew I had read somewhere on the internet about how do this sort

wxPython: ObjectListview – How to Double-click items Read More »

wxPython: Adding Tooltips to ObjectListView

Recently I was trying to figure out how to add tooltips to each item in an ObjectListView widget in wxPython on Windows. The wxPython wiki has an example that uses PyWin32, but I didn’t want to go that route. So I asked on the wxPython Google Group and got an interesting answer. They had actually

wxPython: Adding Tooltips to ObjectListView Read More »

Kivy 101: How to Use BoxLayouts

Recently I’ve started learning about Kivy, a Python Natural User Interface (NUI) toolkit. As I understand it, Kivy is kind of a spiritual successor to pyMT, which you can read more about here. In this article, we will be learning how Kivy handles layout management. While you can position widgets using x/y coordinates, in every

Kivy 101: How to Use BoxLayouts Read More »

How to Set up Wing IDE for Kivy on Windows

I like to use Wingware’s IDE for coding in Python. I am working through some sample applications with Kivy, a cross-platform Python GUI framework that can also create UIs for mobile. Anyway, getting Kivy set up in Wing is slightly confusing, so here’s a crash course: Download Kivy Unzip Kivy somewhere. In my case, I

How to Set up Wing IDE for Kivy on Windows Read More »

wxPython 101: Using Frame Styles

The wxPython Frame widget is used in almost all wxPython applications. It has the minimize, maximize and close buttons on it as well as the caption along the top that identifies the application. The wx.Frame allows you to modify its styles in such a way that you can remove or disable various buttons and features.

wxPython 101: Using Frame Styles Read More »

wxPython: How to Get Selected Cells in a Grid

Today we will be looking at how to get the selected cells from a wxPython grid object. Most of the time, getting the section is easy, but when the user selects more then one cell, getting the selection becomes more complicated. We will need to create some sample code to show how all this fits

wxPython: How to Get Selected Cells in a Grid Read More »

Python 101: An Intro to ConfigParser

Configuration files are used by both users and programmers. They are usually used for storing your applications settings or even your operating system’s settings. Python’s core library includes a module called ConfigParser that you can use for creating and interacting with configuration files. We’ll spend a few minutes learning how it works in this article.

Python 101: An Intro to ConfigParser Read More »

wxPython: An Introduction to SplitterWindows

The wxPython GUI toolkit comes with lots of widgets. We will be covering some widgets that are somewhat harder to get ones mind wrapped around. In this case, we will be talking about splitter windows. WxPython includes three types of splitter windows: wx.SplitterWindow fourwaysplitter which you can find in wx.lib.agw MultiSplitterWindow which you can find

wxPython: An Introduction to SplitterWindows Read More »

wxPython 2.9 and the Newer Pubsub API: A Simple Tutorial

NOTE: This article is for wxPython 2.9-3.0. If you are using wxPython 4, you should go to my newer article Several years ago, I wrote a tutorial about wxPython 2.8 and its built-in pubsub module which you can read here. Back then, a new API for pubsub was added in wxPython 2.8.11.0 that could be

wxPython 2.9 and the Newer Pubsub API: A Simple Tutorial Read More »

wxPython: How to Update a Progress Bar from a Thread

Every now and then, I see someone wondering how to create a progress bar and update it. So I decided to whip up an example application that updates a progress bar (technically a wx.Gauge widget) from a thread. In this tutorial, we will create a frame with a button. When the button is pushed, it

wxPython: How to Update a Progress Bar from a Thread Read More »