Today I decided to figure out how to make Python log to a file and the console simultaneously. Most of the time, I just want to log to a file, but occasionally I want to be able to see stuff on the console too to help with debugging. I found this ancient example in the […]
Yesterday, I stumbled on to Dropbox's Python API. I ended up using their tutorial to design a simple class for accessing my Dropbox. You'll need to download their dropbox module to follow along or use "pip install dropbox" to install it. You will also need to sign up for a key and secret. Once you […]
My wife teaches 3rd grade math and she recently learned about the process of obtaining the digital root of numbers. The digital root is a single digit number found by summing the individual digits. So for 15, you would add 1+5 to get 6. Thus 6 is the digital root of 15. The trainer that […]
At my job, we sometimes need to write a PDF to memory instead of disk because we need to merge an overlay on to it. By writing to memory, we can speed up the process since we won't have the extra step of writing the file to disk and than reading it back into memory […]
Today we're going to learn about one of wxPython's newer features: wx.lib.softwareupdate. It was actually added a couple of years ago. What this allows you to do is add update abilities to your software. As far as I can tell, this mixin only allows prompted updates, not silent updates. Getting Started It's built into wxPython […]
This topic comes up from time to time every year. Someone will ask about how to make their application full screen or how to just make it maximize when it first loads. So we'll spend a little time showing you how to do each of these activities.