filmov
tv
Python - tkinter animation - coding for all
Показать описание
Animating tkinter label in Python.
Ref: Programming Python by Mark Lutz
# Source Code
import random
from tkinter import *
fsize = 20
colors=('red', 'green', 'orange','grey', 'cyan', 'blue', 'violet')
def makePopUp():
pop=Toplevel()
lb=Label(pop, text='new popup')
def changeColor():
def blowUp():
global fsize
fsize += 5
win = Tk()
rootLabel = Label(win, text="Gui Animation")
fg="#%02x%02x%02x" % (255, 0, 0), bg='papaya whip')
Button(win, text='make popup', command=makePopUp).pack(fill=X)
Button(win, text='change color', command=changeColor).pack(fill=X)
Button(win, text='blow up', command=blowUp).pack(fill=X)