User Profile

Collapse

Profile Sidebar

Collapse
indeed
indeed
Last Activity: Jul 9 '16, 06:38 AM
Joined: Jul 8 '16
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • indeed
    replied to Change button color on if clause - Tkinter
    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).
    See more | Go to post

    Leave a comment:


  • indeed
    started a topic Change button color on if clause - Tkinter

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...