I recently became aware of a Tic-Tac-Toe challenge on github where the programmer is supposed to create a Tic-Tac-Toe game that let's the player win every time. You have to code it in Python, although the people behind this challenge prefer you do it with Django. I don't know Django very well, so I decided […]
I recently tried to help someone (on the wxPython mailing list) figure out how to use a Grid widget (wx.grid.Grid) via XRC. It should be simple, but if you run the code below, you'll discover a weird issue: import wx from wx import xrc ######################################################################## class MyApp(wx.App): def OnInit(self): self.res = xrc.XmlResource("grid.xrc") frame = self.res.LoadFrame(None, […]
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 […]
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.
I see people asking about this topic from time to time in various places on the internet. Making wxPython minimize to the tray is really quite simple, but there is at least one thing you need to watch out for. We'll get to that, but first we need to spend some time looking at some […]