Category: Raspberry Pi

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… Continue Reading “From Apple to Raspberry Pi: Using Object Oriented Programming with Tkinter”

From Apple to Raspberry Pi: A Gentle Introduction to Themed Widgets With ttk

Up to this point we have used tkinter widgets. For every widget, we had to set all the attributes. We could have this on off panel of three buttons and a label: Type it in, save and run. Each button uses the same .configure()… Continue Reading “From Apple to Raspberry Pi: A Gentle Introduction to Themed Widgets With ttk”

From Apple to Raspberry Pi: More Widgets! More Power!!!

We covered some of the major simple widgets in Tkinter. There are a few more used less regularly: radio buttons, checkboxes, sliders, and spinners. This lesson, we’ll look at those  widgetsand make a better power panel. Control Variables We used control variables in the… Continue Reading “From Apple to Raspberry Pi: More Widgets! More Power!!!”

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… Continue Reading “From Apple to Raspberry Pi: Making Round Rectangle Buttons — The Movie”

From Apple to Raspberry Pi: Making Icons and Cool Buttons

If there is one thing that Apple developers believe,  user interfaces needs to look cool. Looking cool often requires not text, but images on your on your controls. While  not as robust as UIView and its subclasses, Tkinter does display graphics. We can add… Continue Reading “From Apple to Raspberry Pi: Making Icons and Cool Buttons”

From Apple to Raspberry Pi: Living without Storyboards and Interface Builder

In iOS, avoiding Interface Builder is nearly impossible. IB is old – as old as the Xcode SDK itself. Interface builder was one of the components of NextStep, and thus one of the reasons Steve Jobs got his old job back, who then developed… Continue Reading “From Apple to Raspberry Pi: Living without Storyboards and Interface Builder”

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… Continue Reading “From Apple to Raspberry Pi: Configuring Buttons for GUI.”

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… Continue Reading “From Apple to Raspberry Pi: Windows Buttons and Widgets — on Pi!”

From Apple to Raspberry Pi: Importing Classes and Disturbing Attributes.

I didn’t do as much As I thought I would today, as I was installing tightvnc on the Raspberry Pi. I then tried out acessing my RasPi on my Mac, Pc, and even my iPad mini. I wasn’t nuts enough t try it on… Continue Reading “From Apple to Raspberry Pi: Importing Classes and Disturbing Attributes.”

from Apple to Raspberry Pi: Making Classes in Python

Objective-C and Python are similar when it comes to defining new classes, but be careful with their differences. In Objective-C we would define a class with two files: a header and an implementation file. In the header we would declare properties like this And… Continue Reading “from Apple to Raspberry Pi: Making Classes in Python”