GUI Toolkits

eBook Review: Creating Apps in Kivy

Kivy is a neat package that allows Python developers to create user interfaces on mobile devices. You can also deploy the applications to desktops too. This is the second book I’ve seen put out on the subject. The first book, Kivy – Interactive Applications in Python by Roberto Ulloa came out last year from Packt […]

eBook Review: Creating Apps in Kivy Read More »

wxPython: How to Catch All Exceptions

One of my friends on the wxPython Google Group asked how to catch any exception that happens in wxPython. The problem is complicated somewhat because wxPython is a wrapper on top of a C++ library (wxWidgets). You can read about the issue on the wxPython wiki. Several wxPython users mentioned using Python’s sys.excepthook to catch

wxPython: How to Catch All Exceptions Read More »

wxPython: An Introduction to Sized Controls

The wxPython toolkit provides an alternative to using Sizers for layout that is known as “sized_controls”. These controls or widgets are basically top-level widgets (like frame, panel, dialog, etc) that have sizing logic built into them. This article will cover all four types of sized_controls. They are as follows: SizedPanel SizedScrolledPanel SizedFrame SizedDialog The SizedScrolledPanel

wxPython: An Introduction to Sized Controls Read More »

wxPython: Wrap Widgets with WrapSizer

wxPython 2.9 introduced the world to a new type of sizer that can take widgets and automatically make them “wrap” around as you resize the frame. That sizer is known as wx.WrapSizer. For some reason, it is relatively unknown, so we’ll spend a few minutes going over how to use it in this article. To

wxPython: Wrap Widgets with WrapSizer Read More »

eBook Review: Kivy – Interactive Applications in Python

I recently received a copy of Kivy: Interactive Applications in Python by Roberto Ulloa. This is currently the only book about Kivy. Kivy is a cross-platform GUI toolkit that will run on Linux, Windows, and OS X as well as Android and iOS. In fact, the people behind Kivy emphasize that this is aimed primarily

eBook Review: Kivy – Interactive Applications in Python Read More »

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 »

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 »

Book Review: Tkinter GUI Application Development HOTSHOT

There aren’t very many Tkinter books in existence, which is something I’ve always found a little odd as it is the GUI toolkit that is included with Python. Basically you have Grayson’s Python and Tkinter Programming from 2000 or Roseman’s Modern Tkinter for Busy Python Developers from 2012. I reviewed the latter here, if you’re

Book Review: Tkinter GUI Application Development HOTSHOT 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 »