Already I have seen Tkinter library, but I am unable to find a shortcut or at least a way to click on the image button in any window application. This image button is used for uploading a folder.
To click on a specific button, we need the specific property of that button. After trying the below code (with one of a similar threads in StackOverflow regarding buttons in python)
from Tkinter import Button
b = Button()
for k in b.configure().keys():
print (k, ':', b.cget(k), b.winfo_class())
Output:
('highlightthickness', ':', <pixel object at 0283A930>, 'Button')
But with the output I have got:
- I am not sure which property of that image button to use, and
- how to code to click that image button.
There is no text seen for this image button in the window application. It is a simple square image button, which only changes a bit in size when hovered over by the cursor.
Please ask if you need any more details regarding the same.
commandattribute. This is described in pretty much every single tkinter tutorial.