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
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.
Summary: This is a platform headache, and causes problems in many languages. When compiled on a Windows platform, it's typical for compilers to interpret '\n' to be 0D 0A, yet 0A on Linux, and 0D on Macs, rega...
Summary: I can't figure out how to get the length of a file in Python. The files I'm dealing with are relatively small, so I could read() the whole thing into a buffer then get len(buffer), but there must be ...
Summary: Hey all, I'm trying to do something very simple - open an image in python: >>> img = Image.open("C:\Documents and Settings\Dmitry\Desktop\test.bmp") but I get this error: Traceback (most recent call l...