Hello I just need the code for this GUI thanks
Also computer screenshot of the code will be helpful
Detailed input (Source code) screenshots and output screenshots have been provided for user convenience please go through it and modify any thing if required.
Thank You.
source code:
import tkinter as tk
class gui:
def __init__(self,m):
self.m= m #Creates window
m.title("MULTI Button Colour") #sets window title
#Creates four label and arraged them using grid
self.l1 = tk.Label(m,text="",bg="grey",width=10)
self.l1.grid(row=0,column=0, padx=5, pady=5)
self.l2 = tk.Label(m,text="",bg="grey",width=10)
self.l2.grid(row=0,column=1,padx=5, pady=5)
self.l3 = tk.Label(m,text="",bg="grey",width=10)
self.l3.grid(row=0,column=2,padx=5, pady=5)
self.l4 = tk.Label(m,text="",bg="grey",width=10)
self.l4.grid(row=0,column=3,padx=5, pady=5)
#created four buttons and arranged them using grid
self.b1=tk.Button(m,text="Violet",command=self.b1c,width=10)
self.b1.grid(row=1,column=0,padx=5, pady=5)
self.b2=tk.Button(m,text="Purple",command=self.b2c,width=10)
self.b2.grid(row=1,column=1,padx=5, pady=5)
self.b3=tk.Button(m,text="Blue",command=self.b3c,width=10)
self.b3.grid(row=1,column=2,padx=5, pady=5)
self.b4=tk.Button(m,text="Green",command=self.b4c,width=10)
self.b4.grid(row=1,column=3,padx=5, pady=5)
#One more button for reset option
self.b5=tk.Button(m,text="Reset",command=self.reset,width=10)
self.b5.grid(row=2,column=0,columnspan=4,padx=5, pady=5)
#five functions for five buttons
def b1c(self):
self.l1.config(bg="violet")
def b2c(self):
self.l2.config(bg="purple")
def b3c(self):
self.l3.config(bg="blue")
def b4c(self):
self.l4.config(bg="green")
def reset(self):
self.l1.config(bg="grey")
self.l2.config(bg="grey")
self.l3.config(bg="grey")
self.l4.config(bg="grey")
root=tk.Tk()
gui = gui(root)
root.mainloop()
output:
Hello I just need the code for this GUI thanks Also computer screenshot of the code...
Attached is an incomplete Python template file. button_get4_Q.py Download this file and complete it to solve the following problem. Consider the GUI below (1 Text area, 5 number Buttons and a "RESET" Button) which has been produced with a Python program using the Tkinter library. Get 4 - 0 X Il 0 X Get 4 - 3542 RESET RESET Initial GUI GUI after interaction You are required to write a Python program to produce this interactive GUI. Your GUI must...
Python Consider the GUI below (3 Labels and 3 Radiobuttons) which has been produced with a Python program using the Tkinter library. You are required to write a Python program to produce this interactive GUI. Your GUI must replicate the example above as closely as possible, including the same widgets displayed in the sample positions on the GUI, using the same colours, shapes and relative sizes. (Note that the GUI border in the sample output does not need to be...
" In the workshop exercises you have used Python's Tkinter module to create simple Graphical User Interfaces. The following code is an incomplete Python program relying on Tkinter (with deliberately unhelpful variable and function names) which you must complete by filling in the blanks. When complete the program should create a window with two buttons, labelled and!!', respectively. When the button la belled'???' is pushed nothing happens. When the button labelled'!!"is pushed both buttons' labels are set to'!!!' from tkinter...
I need help creating a code for the problem in Python. Joe's Automotive Joe's Automotive performs the following routine maintenance services: Oil change-$30.00 . Lube job-$20.00 Radiator flush-$40.00 Transmission flush-$100.00 Inspection-$35.00 Muffler replacement-$200.00 Tire rotation- $20.00 Write a GUI program with check buttons that allow the user to select any or all of these services. When the user clicks a button, the total charges should be displayed Joe's Automotive Joe's Automotive performs the following routine maintenance services: Oil change-$30.00 ....
##JAVA## about a GUI program (see screenshot below) that permits the user to create, save, and load polygons that are displayed (both hollow and filled) in a GUI. The features and operations required by the GUI program include: 1. The program starts with an empty (no vertices) polygon set with a randomly generated color. The drawing area is set to be initially square and should have a black background. ------------------------------------------------------------------------------------------------ 2. The left mouse button lets you begin building a...
This is python3. Please help me out. Develop the following GUI interface to allow the user to specify the number of rows and number of columns of cards to be shown to the user. Show default values 2 and 2 for number of rows and number of columns. The buttons "New Game" and "Turn Over" span two column-cells each. Fig 1. The GUI when the program first starts. When the user clicks the "New Game" button, the program will read...
****THIS IS A 2 PART QUESTION! I ONLY NEED THE ANSWER TO PART 2 ON HOW TO SEND THE DATA SERIALIZED**** Write a c# program that stores student grades in a text file and read grades from a text file. The program has the following GUI: There are four buttons: Create File, Save Case, Close File and Load File. Initially, only the Create File and Load File buttons are enabled. If the user clicks the Create File button, a Save File Dialog window...
JAVA CODING Must be compilable, thanks The purpose is to provide an exercise in event-driven programming and image handling using JavaFX. Create an application that responds to the user clicking command buttons. Initially, it will display one of two graphic images and, based upon the button clicked by the user, will switch the image displayed. If the user clicks the mouse button to display the same image as is currently displayed, the image is not changed, but a message at...
Python 3.6 I need the code ready to run using GUI programming Write a program for the Knight's Tour problem. Your program should let the user move a knight to any starting square and click the Solve button to animate a knight moving along the path, as shown below.
Using C# Language Develop a Visual C# .NET application that performs a colour control operation. The main form contains a reset button and sets the form's background colour according to the colour values indicated by the colour control objects. Each colour control object is controlled by a corresponding colour control form which provides a progress bar to show the value (in the range 0 to 255) of the corresponding colour control object. The user can click the increase (+) or...