from tkinter import * class lala: def __init(self): self.window=Tk()…
Jump to turn (6)
- 1from tkinter import class lala: def init(self): self.window=Tk() self.window.tit
- 29- In GUI, which of the below statements is not valid for the pack method: a. de
- 31- Which of the following is not correct? a. If the condition is true, the while
- 4Input Store a Input Store y Output Halt a, DES 0 y, DES 0
- 5Input Store a Input Store y Output Halt a, DES 0 y, DES 0 صحح لي هذا
- 6Which gate does the following Boolean expression represent? X = (A + B)' a) NAND
- User
from tkinter import * class lala: def __init(self): self.window=Tk() self.window.title("my dream") self.label1=Label(self.window,text="maskas slka") self.label1.pack() mainloop() p=lala()
- Assistant
This code creates a basic GUI application using the Tkinter library in Python.
The class
laladefines the GUI application. It has an__init__method that initializes the application window, sets the title, and creates a label widget with the text "maskas slka". The label widget is then packed to display it on the application window.Finally, the
mainloop()function is called to start the GUI application and wait for user interactions.To run this code, you can create an instance of the
lalaclass and assign it to a variable. In this case, the instance is assigned to the variablep.