Shows how to create a basic slide show with the Python Tkinter GUI toolkit.
|+4 forum 19|
A short code to show you how you can download and display an image from the internet on Python's Tkinter GUI toolkit.
|+3 forum 0|
This little experiment with Tkinter and pixel drawing shows some strange effects (look at line 27 comments!!!): '''tk_put_pixel.py place a pixel at pos=(x,y) with color=(r,g,b) on an image area note: one pixel might be hard to see, so create a series of pixels (line) ''' try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk def put_pixel(image, pos, color): """ place a pixel at pos=(x,y) with color=(r,g,b) on an image area """ r, g, b = color x, y = pos # color given in HTML format "#rrggbb" # blue is (0,0,255) --> #0000ff ph_image.put("#%02x%02x%02x" …
|+0 forum 0|