Python GUI Example

Tkinter & Wx can bu used to develop GUI based Python applications.

python test.py

How to code test.py
Continue reading Python GUI Example

Advertisements

GPIO Programming for Raspberry Pi using Python

import RPi.GPIO as GPIO         
import time
GPIO.setmode(GPIO.BOARD)
led = 23
GPIO.setup(led, GPIO.OUT)
GPIO.output(led, 1)
time.sleep(5)
GPIO.output(led, 0)
GPIO.cleanup()

Save as test.py

sudo python /home/pi/Desktop/test.py

And it works!