Computer.py - from tkinter import app = Tk...

This preview shows page 1 out of 1 page.

from tkinter import * app = Tk() app.geometry ('800x400') app.title(" Parts of the Computer") app['bg'] = "#F5F5DC" #def def processdef(): #change part partlabel['text'] = "Processing" #change Definition deflabel['text'] = " Recives input and translates it to output" #change 3 images (1 for now) pic1label['image'] = cpu #make widgets #buttons inputbutton = Button(text="Input", fg = "yellow", bg= "black", font=("Arial", 14), width=15) processingbutton= Button(text="Process", fg = "yellow", bg= "black", font=("Arial", 14), width=15, command=processdef ) outputbutton= Button(text="Output", fg = "yellow", bg= "black", font=("Arial", 14), width=15) storagebutton=Button(text="Storage", fg = "yellow", bg= "black", font=("Arial", 14), width=15) #photoimages (12 in total) kbimage = PhotoImage(file = "kb.gif") mouseimage=PhotoImage(file = "mouse.gif")

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture