Tag: Raspberry Pi

From Apple to Raspberry Pi: How to do Threading with Python and Tkinter

We’re going to have a diversion away from the penguin app for a bit due to some work I ‘m doing and thought it would be useful for many working with the Raspberry Pi and Python. I’m working with time-lapse photography on the Raspberry…

From Apple to Raspberry Pi: A Scroll List Box that Works.

For the last few posts, we have tried to get past the Tkinter limitation with scrolling list boxes using only one word per line. This post we take the Text widget we added last week, and turn it into a true list box. We…

From Apple to Raspberry Pi: Adding a Tkinter Text Box in Python

Tkinter lacks a good list box. There is a widget, but as shown in earlier posts in this series, it doesn’t do the best job. We had to use underscores to get the list box to work.  There is another widget that might do…

From Apple to Raspberry Pi: Adding Combo Box Selections and Message Boxes

We began to make our penguin data collection interface last week. Today we are going to add Combobox selections to the penguin panel.  The Combobox widget codes similar to the Entry widget. Instead of text for a title it takes a list for values….

From Apple to Raspberry Pi: Using Object Oriented Programming with Tkinter

We’ve been learning parts of Python together. So far we’ve learned the basics of Python and setting up classes and instances in it. We have a good start on using UI elements and styling them with the basics of tk and ttk. I’d like…

From Apple to Raspberry Pi: Making Round Rectangle Buttons — The Movie

When I posted yesterday about GIMP and making Buttons for Python projects on the Raspberry Pi, I had thought someone would have a tutorial for the classic pre-iOS7 rounded rectangle button. I didn’t find any. Here is a video I put together of making…

From Apple to Raspberry Pi: Configuring Buttons for GUI.

In our last installment, we learned how to add buttons and labels to a Python program. Now we are going to make them look a little nicer than the generic buttons we haven now using the configure method of Tkinter. Make a beginning framework…

From Apple to Raspberry Pi: Windows Buttons and Widgets — on Pi!

I’ve explored much of the basic coding in Python, but I’ll need a good user interface for the projects I’m doing. When it comes to the graphical user interface (GUI), Xcode and Python are on  two different planets. With storyboards and interface builder, Xcode…

From Apple to Raspberry Pi: Using Strings

There are several ordered types in Python, one of the most common is the string. In Xcode, we defined a NSString this way: Objective-C has the @”…” indicators for a string. Python on the other hand can use the much easier “…” or ‘…’…

From Apple to Raspberry Pi: Using Inheritance and Overrides

Object oriented languages have a  concept called inhertance. A class can give its methods and properties to another class, which then replaces or expands the inherited class. We call the new class a subclass. When we replace a function or method we override the…