Thank you, I found that link myself. But I can't make it work..
What I want to do is to change button bg color when a condition is met. If file is selected change to green, if not don't (pass).
User Profile
Collapse
-
Change button color on if clause - Tkinter
Hi guys,
I'm new to Python, and now I'm trying to make a simple GUI with Tkinter.
So.. I want to change a button's color based on if file is selected clause:
...Code:import Tkinter, tkFileDialog, Tkconstants from Tkinter import * version = '1.0' filetext= 'Select Landsat 8 OLI' def openFile(): filename = tkFileDialog.askopenfilename(parent=root,initialdir='/home/',title=filetext
No activity results to display
Show More
Leave a comment: