Looking to start learning Python?

Begin Here

Author: Mike

Central Python Events Calendar Announced

October 25, 2012 by Mike
The Python Software Foundation recently put out an announcement about a central Python events calendar. I thought that was really cool, so I'm reproducing their announcement here. Spread the word! ________________________________________________________________________ ANNOUNCING Central Python Events Calendars maintained by the Python Software Foundation (PSF) and a group of volunteers ________________________________________________________________________ INTRODUCTION The PSF has put together […]

Python 101: Exception Handling

September 12, 2012 by Mike
Python provides robust exception handing baked right into the language. Exception handing is something every programmer will need to learn. It allows the programmer to continue their program or gracefully terminate the application after an exception has occurred. Python uses a try/except/finally convention. We'll spend some time learning about standard exceptions, how to create a […]

Python 101: The Ternary Operator

August 29, 2012 by Mike
There are a lot of computer languages that include the ternary (or tertiary) operator, which is basically a one-line conditional expression in Python. If you're interested, you can read about the various ways it's rendered in other languages over on Wikipedia. Here we will spend some time looking at several different examples and why you […]

Python logging with lggr

August 27, 2012 by Mike
Some people complained about my last logging article, wondering if it was even necessary since the docs and Doug Hellman have already written on the topic. I sometimes wonder why I write on these topics too, but usually when I do, I get lots of readers. In this case, I've gotten almost 10,000 hits just […]

wxPython: How to Get Children Widgets from a Sizer

August 24, 2012 by Mike
The other day, I stumbled across a question on StackOverflow asking how to get the children widgets of a BoxSizer. In wxPython, you would expect to call the sizer's GetChildren() method. However, this returns a list of SizerItems objects rather than a list of the actual widgets themselves. You can see the difference if you […]

wxPython: How to make "flashing text"

August 9, 2012 by Mike
People keep on asking fun wxPython questions on StackOverflow. Today they wanted to know how to make "flashing text" in wxPython. That's actually a pretty easy thing to do. Let's take a look at some simple code: import random import time import wx ######################################################################## class MyPanel(wx.Panel): """""" #---------------------------------------------------------------------- def __init__(self, parent): """Constructor""" wx.Panel.__init__(self, parent) self.font […]
View More

End of content

No more pages to load

Copyright © 2024 Mouse Vs Python | Powered by Pythonlibrary