wxPython: Using PyDispatcher instead of Pubsub
The other day, I wrote an updated version of my wxPython pubsub article for wxPython 2.9 and realized I had never gotten around to trying PyDispatcher to see how it differed from pubsub. I’m still not...
View ArticlePython 101: How to Find the Path of a Running Script
This topic is actually more complicated then it first appears. In this article, we’ll spend a little time looking at this problem and some of the solutions. Several years ago, one of my friends on the...
View ArticlePython: Bad Code of the Day (Oct 30th, 2013 Ed)
We all write bad code from time to time. I tend to do it deliberately when I’m experimenting in the interpreter or the debugger. I can’t say why I do it exactly except that it’s fun to see what I can...
View ArticlewxPython: 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...
View ArticlePython 101: How to Grab Data from RottenTomatoes
Today we’ll be looking at how to acquire data from the popular movie site, Rotten Tomatoes. To follow along, you’ll want to sign up for an API key here. When you get your key, make a note of your...
View ArticlewxPython 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...
View ArticleeBook Review: Instant Flask Web Development
Packt Publishing recently contacted me about reviewing their new book, Instant Flask Web Development by Ron DuPlain. They sent me an ebook copy and I just finished it up. I always strive to give an...
View ArticleBook 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...
View ArticlePython Blog Review: Bite Sized Python Tips
I was recently asked to review a Python blog, which is something I’ve never really done before. The blog’s name is “Bite Sized Python Tips” and you can find it here:...
View ArticlePython 101: How to Write a Cleanup Script
The other day, someone asked me if I could write a script that could cleanup a directory of all files that are greater than or equal to X number of days old. I ended up using Python’s core modules for...
View ArticleHow 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...
View ArticlePython 101: An Intro to Object Serialization with Pickle
Python’s “batteries included” philosophy even includes a module for object serialization. They call it the pickle module. Some people call serialization by other names, such as marshalling or...
View ArticleKivy 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...
View ArticlewxPython: 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...
View ArticlewxPython: 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...
View ArticleA 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...
View ArticlewxPython 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...
View ArticleeBook 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,...
View ArticlePyWin32 – How to Monitor the Print Queue
The other day I was trying to figure out a way to monitor the print queue on Windows. The task at hand was to keep track of what documents went to the printer and completely successfully. The idea was...
View ArticlePython eBook Sale from Packt
Packt Publishing contacted me today to let me know that they are having a $5 eBook sale on all of their eBooks. They have a lot of Python books, so I thought I should let my readers know about the...
View Article