मैं निम्नलिखित त्रुटि मिलती रहती है साथ बटन रंग बदलने के लिए: AttributeError: 'NoneType' ऑब्जेक्ट कोई विशेषता 'कॉन्फ़िगर'कैसे tkinter
# create color button
self.button = Button(self,
text = "Click Me",
command = self.color_change,
bg = "blue"
).grid(row = 2, column = 2, sticky = W)
def color_change(self):
"""Changes the button's color"""
self.button.configure(bg = "red")
उत्कृष्ट, यह ठीक है! बहुत धन्यवाद! –
एक बार जब आप बटन बना चुके हैं तो आप पृष्ठभूमि को कैसे बदल सकते हैं? – RhetoricalRuvim