Computing.Net > Forums > Programming > Button problem in Python/Tkinter

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Button problem in Python/Tkinter

Reply to Message Icon

Name: seeJ
Date: May 24, 2004 at 10:08:05 Pacific
OS: RH 9.0
CPU/Ram: 1.3
Comment:

Im fairly new to python so bear with me. I created a button and it shows up fine in Python using Tkinter. when i created the button i gave
cmd_search = Button (root, text="Search", command=self.callback(rv))

callback being another function in the same class.
When the frame loads it is firing that callback right away instead of when its clicked.
It shouldnt fire until the button is clicked. or atleast i dont want it to.
Any help would be great.

CJ



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Button problem in Python/Tkinter

'\n' character in python www.computing.net/answers/programming/n-character-in-python/2760.html

Determine length of file in Python www.computing.net/answers/programming/determine-length-of-file-in-python/11903.html

opening an image in python www.computing.net/answers/programming/opening-an-image-in-python/14922.html