I am developing a GUI interface using python and Tkinter. I dynamically generate buttons and text boxes and the user would be able to move them around.
My requirement is, when the use selects a button, I need to give it a border with small rectangles on 4 of its edges. (To give an impression to the user that this is the button which is actually selected. ).
I tried to use a fixed size image to do this. But some how this is not working. Also the user has option to resize the button (change width and height). If he do this, then enlarging will cause the fixed image not to display correctly.
Is there any general solution to this problem which I can apply to buttons, text boxes or any other widgets the user drags on the screen.