टिंकर बटन को टिंकर में विभिन्न उपलब्ध विशेषताओं और गुणों के माध्यम से कॉन्फ़िगर किया जा सकता है। हम एक चिपचिपा . जोड़ सकते हैं संपत्ति को उस खिड़की के सापेक्ष चिपचिपा बनाने के लिए जिसमें वह रहता है। चिपचिपा गुण विजेट को विंडो में सापेक्ष स्थिति निर्धारित करने की अनुमति देता है। बटन को चिपचिपा बनाने के लिए, हमें दिशा या स्थिति चुननी होगी जैसे N, E, S, W, NE, NW, SE, SW, और शून्य।
उदाहरण
#Import the tkinter library
from tkinter import *
from tkinter import ttk
#Create an instance of tkiner frame
win= Tk()
#Define the geometry of the function
win.geometry("750x250")
#Create a button to close the window
btn1 = ttk.Button(win, text ="I am in Column 3")
btn1.grid(column=3)
btn2=ttk.Button(win, text="I am stuck to South West")
btn2.grid(sticky=SW)
btn3= ttk.Button(win, text="I am stuck to North west")
btn3.grid(sticky=N)
win.mainloop() आउटपुट
उपरोक्त कोड एक विंडो प्रदर्शित करेगा जिसमें कुछ चिपचिपे बटन होंगे।
