![]() |
Error while changing button relief from raised to sunken on left click - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: Error while changing button relief from raised to sunken on left click (/thread-7413.html) |
Error while changing button relief from raised to sunken on left click - mgtheboss - Jan-09-2018 Hi, I am trying to change the relief of a button from raised to sunken on left click. The button is created with a standard ttk.Button statement. In a custom theme, its relief has been modified to raised. It gets displayed perfectly. The code fragment for relief change is provided below. button1.bind("<l>", lambda e: button1.configure(relief="sunken"))Here is the error. Version information: python 3.4.3, tkinter 8.6I appreciate the cooperation of forum members. RE: Error while changing button relief from raised to sunken on left click - Gribouillis - Jan-09-2018 You could perhaps check this example |