विंडो मैनेजर Tcl/Tk में उपलब्ध टूलकिट है जिसे 'wm' कमांड से एक्सेस किया जा सकता है . 'wm' कमांड आपको टिंकर विंडो की उपस्थिति और ज्यामिति सेट करने की अनुमति देता है। हम इस कमांड से शीर्षक, रंग, आकार और अन्य विशेषताओं को नियंत्रित कर सकते हैं। 'wm' कमांड में कई कीवर्ड हैं जिनका उपयोग इसकी संपत्ति को संशोधित करने के लिए किया जा सकता है।
उदाहरण
# Import the required library
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
# Create an instance of tkinter frame
win=Tk()
# Set the geometry
win.geometry("700x350")
Label(win, text="This window is disabled.",
font=("Calibri, 24")).pack()
# Makes the window topmost
win.wm_attributes('-topmost', True)
# Makes the window transparent
win.wm_attributes('-alpha', 0.9)
# Disable the window
win.wm_attributes('-disabled', True)
# Set the geometry of the window
win.wm_geometry('700x350')
win.mainloop() की ज्योमेट्री सेट करें आउटपुट
यदि आप उपरोक्त कोड चलाते हैं, तो यह एक शीर्षतम पारदर्शी विंडो प्रदर्शित करेगा, जिसके साथ आप इंटरैक्ट नहीं कर सकते, क्योंकि wm का उपयोग करके विंडो को अक्षम कर दिया गया है। विशेषता "-अक्षम" ।
