Problem w/ Tkinter

2007-08-24 Thread Lamonte Harris
How do I add a command to a button say for instance class MYCLASNAME: def choices(self): choices = Toplevel() v = IntVar() a = Radiobutton(choices, text=Add News, variable=v,value=1).pack(anchor=W) b = Radiobutton(choices, text=Edit News,

Re: Problem w/ Tkinter

2007-08-24 Thread Matt McCredie
text=Action?,command=self.V(a,b,c,d)).pack(anchor=W) doesn't even do anything, what can I do to fix this problem? I see many mistakes. First: `command=self.V(a,b,c,d)' is actually calling self.V. You don't want to call self.V, which will assing `command' to the return value, you want to pass

Re: Problem w/ Tkinter

2007-08-24 Thread Matt McCredie
On 8/24/07, Lamonte Harris [EMAIL PROTECTED] wrote: How to fix my code, wth that doesn't help solve anything really.the Tkinter tutorial doesn't even explain radio buttons correctly, let alone, everything else. gah. can you give a answer that I can work from. You asked, what can I do to fix

Re: Problem w/Tkinter on 2.5 (Panther)

2006-03-29 Thread Russell E. Owen
I don't know, and I'm sorry this isn't more helpful, but...if you don't get an answer here, I suggest you post to the python apple mailing list. If you prefer a newsgroup interface (as I do), use gmane's news server and subscribe to gmane.comp.python.apple (you may still have to join the

Problem w/Tkinter on 2.5 (Panther)

2006-03-28 Thread w chun
i've built a Python 2.5a0 interpreter on my iBook using gcc 3.3-1666 using the tarball from last nite... $ uname -a Darwin myMac.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc $ $ python Python 2.5a0 (trunk,