On 5/21/2011 10:20 PM, bvdp wrote:
One of the purposes and advantages of Python 3 is having only one class
system. Best to always use new-style classes in Python 2.2+ unless you
understand and need old-style classes (and need should be never for most
people).
Thanks for this. I'll keep it in
On Mon, May 23, 2011 at 12:03 AM, rantingrick wrote:
> ... was about as effective as the "orb of confusion" on Patrick...
> *drool*
>
That sounds like a Dungeons and Dragons artifact item... invoking the
orb of confusion is a standard action that does not provoke an Attack
of Opportunity.
> clas
On May 21, 7:03 pm, bvdp wrote:
> IIRC, I used the class method since it nicely encapsulates a set of
> operations:
>
> - create/raise a window
> - list a set of configurable options
> - have and buttons, both of which destroy the
> window.
Ok NOW we are getting somewhere! It is amazin
> One of the purposes and advantages of Python 3 is having only one class
> system. Best to always use new-style classes in Python 2.2+ unless you
> understand and need old-style classes (and need should be never for most
> people).
>
Thanks for this. I'll keep it in mind!
One thing I really don
On 5/21/2011 8:03 PM, bvdp wrote:
Yes, I can confirm that both the lambda and setting the class to:
class selectFav(object):
One of the purposes and advantages of Python 3 is having only one class
system. Best to always use new-style classes in Python 2.2+ unless you
understand and nee
On May 20, 4:37 pm, rantingrick wrote:
> Thats sounds to me a lot like hammering square pegs though round
> holes... Perhaps you should explain first in "plain english" what
Ahh, but what fun would the Internet, Usenet and programming be
without round holes and square pegs.
I thought my English
Thanks, Peter, for the detailed explanation. I was going to write a
bit of sample/minimal code to demo this, but you nicely beat me to
it!
> Here's a minimal script to reproduces the problem:
>
> $ cat tkcallclass.py
> import Tkinter as tk
>
> root = tk.Tk()
> root.withdraw()
>
> class Classic:
>
bvdp wrote:
> I've just done an update to my system here to Ubuntu 11.04. Mostly no
> problems ... but I have an important (to me) python/TK program that's
> stopped working. Well, it works ... mostly.
>
> The python version is 2.7.1+ (no idea what the + means!).
>
> I _think_ I have traced the
On May 20, 6:07 pm, bvdp wrote:
> Probably the fix is to use a function :)
>
> > The docs [1] say that a callback is a function, so I guess that if it
> > worked before it was just luck. You should bring it up on the tkinter
> > list and see what they have to say about it, though.
>
> > I'm a bit
On May 20, 4:29 pm, Ian Kelly wrote:
> On Fri, May 20, 2011 at 5:07 PM, bvdp wrote:
> > You mention the tkinter group. Ummm, what group is that???
>
> http://tkinter.unpythonic.net/wiki/TkinterDiscuss
Thanks. New one for me. I'll subscribe and see if they know about
this.
Best,
--
http://mail.
On Fri, May 20, 2011 at 5:07 PM, bvdp wrote:
> You mention the tkinter group. Ummm, what group is that???
http://tkinter.unpythonic.net/wiki/TkinterDiscuss
--
http://mail.python.org/mailman/listinfo/python-list
Probably the fix is to use a function :)
> The docs [1] say that a callback is a function, so I guess that if it
> worked before it was just luck. You should bring it up on the tkinter
> list and see what they have to say about it, though.
>
> I'm a bit confused about why you would want to use a
On Fri, May 20, 2011 at 4:12 PM, bvdp wrote:
> Okay, this works. Great and thanks! Seems to me that the way I was
> doing it should be alright ... and I've got some other programs
> exhibiting the same problem.
>
> Before I go "fixing" the issue ... is this known or even a bug?
The docs [1] say t
> I'm not a tk user, but it sounds like it has regressed from accepting
> arbitrary callables as callbacks to accepting functions specifically.
>
> What happens if you replace:
>
> ("Favorites", selectFav),
>
> with:
>
> ("Favorites", lambda: selectFav()),
Okay, this works. Great and thanks! Seem
On Fri, May 20, 2011 at 12:03 PM, bvdp wrote:
> All this is fine (and worked perfectly before my upgrade). The menu
> items which are ordinary functions continue to work. BUT the callbacks
> which are classes are just ignored when they are clicked.
I'm not a tk user, but it sounds like it has reg
I've just done an update to my system here to Ubuntu 11.04. Mostly no
problems ... but I have an important (to me) python/TK program that's
stopped working. Well, it works ... mostly.
The python version is 2.7.1+ (no idea what the + means!).
I _think_ I have traced the problem to certain menus wh
16 matches
Mail list logo