Python, GTK and WebKit – creating a web browser – Part 2

IF YOU HAVE NOT YET, PLEASE READ PART 1 BEFORE CONTINUING! In Part 1, I showed you how to create a very basic web browser in Python with WebKit and GTK. It is a great example of Python’s power, but there was no refresh button. Part 2 focuses on adding this feature so you can refreshContinue reading “Python, GTK and WebKit – creating a web browser – Part 2”

Rate This

Python, GTK and WebKit – creating a web browser – Part 1

THIS WEB BROWSER IS NOT SEASURF. IT IS A VERY BASIC BUT RATHER FUNCTIONAL WEB BROWSER.  Here is how to use Python, GTK and WebKit to create a very simple web browser. First, you will need Python and the GTK and WebKit modules installed. Here is the code for the basic web browser: #!/usr/bin/env pythonContinue reading “Python, GTK and WebKit – creating a web browser – Part 1”

Rate This

What is a Raspberry Pi?

A Raspberry Pi is a £30 computer the size of a credit card designed with kids and programming in mind. It is capable of doing everything a desktop computer is capable of, from surfing the net to playing Minecraft. On this blog I sometimes write about it. You can learn more about the Raspberry Pi atContinue reading “What is a Raspberry Pi?”

Rate This

Unofficial Raspberry Pi Clock Application

Hi guys. Today I have been experimenting with Python and Pygame. I managed to make a clock application for the Raspberry Pi. Here is the code: import pygame, sys, time pygame.init() screen = pygame.display.set_mode((1184, 624), pygame.FULLSCREEN) pygame.display.set_caption(“Raspberry Pi Clock”) clockFont = pygame.font.Font(None, 72) clock = pygame.time.Clock() ##COLOURS WHITE = (255, 255, 255) RED = (255,Continue reading “Unofficial Raspberry Pi Clock Application”

Rate This

Sense HAT emulator on Raspbian

On the latest version of raspbian a new app appeared. This app is a sense hat emulator. It is very cool and when you do from sense_hat import SenseHat do from sense_emu import SenseHat instead. For example, here is some Python code that I found here! Here is the code, but this code is for the emulator insteadContinue reading “Sense HAT emulator on Raspbian”

Rate This