Roland's homepage

My random knot in the Web

Older articles (2/20)

  1. Playing a sound when the battery is low

    Although I have a battery indicator on the bottom of my laptop screen I don’t alway check that often enough. That’s why I wanted to add an extra warning in the form of an audio signal. So even if I’m turned away from the laptop, it should still catch my attention.

  2. Generating barcodes with “BWIPP

    Originally I looked for a Python module to generate barcodes, and I found the treepoem module. This used Pillow to create bitmaps, and I preferred to have PDF or other resolution independant formats. Looking through the README, I found that treepoem is a wrapper for bwipp. This is a set of PostScript procedures to generate barcodes.

    Since I’m familiar with using PostScript, I decided to use bwipp directly.

  3. On the nature of GUI programs

    This is based on an answer I gave on stackoverflow. That answer is specific to the tkinter toolkit that comes with Python. The principles apply to other GUI toolkits and languages as well but the terminology used (like mainloop and idle task) may be different.

←  Page 1 Page 2 / 20 Page 3 →