Re: How to assign a function to another function

2007-09-17 Thread Paddy
On Sep 17, 6:11 pm, Stefano Esposito <[EMAIL PROTECTED]> wrote: > On Mon, 17 Sep 2007 17:49:58 +0100 > > > > Paul Rudin <[EMAIL PROTECTED]> wrote: > > Stefano Esposito <[EMAIL PROTECTED]> writes: > > > > Hi all > > > > what i'm trying to do is this: > > > def foo (): > > > ... return None > >

Re: How to assign a function to another function

2007-09-17 Thread Stefano Esposito
On Mon, 17 Sep 2007 17:49:58 +0100 Paul Rudin <[EMAIL PROTECTED]> wrote: > Stefano Esposito <[EMAIL PROTECTED]> writes: > > > Hi all > > > > what i'm trying to do is this: > > > def foo (): > > ... return None > > ... > def bar (): > > ... print "called bar" > > ... > def assigner ():

Re: How to assign a function to another function

2007-09-17 Thread Kurt Smith
On 9/17/07, Stefano Esposito <[EMAIL PROTECTED]> wrote: > Hi all > > what i'm trying to do is this: > > >>>def foo (): > ... return None > ... > >>>def bar (): > ... print "called bar" > ... > >>>def assigner (): > ... foo = bar > ... You need to tell "assigner()" that foo doesn't belo

Re: How to assign a function to another function

2007-09-17 Thread Paul Rudin
Stefano Esposito <[EMAIL PROTECTED]> writes: > Hi all > > what i'm trying to do is this: > def foo (): > ... return None > ... def bar (): > ... print "called bar" > ... def assigner (): > ... foo = bar > ... assigner() foo() > called bar > > This piece of code is no

Re: How to assign

2005-01-25 Thread Laszlo Zsolt Nagy
Jan Rienyer Gadil wrote: Sort of a newbie question: How am i going to assign to a variable anything the user inputs on a wxTxtCtrl? I'm affraid you have to do it manually. I think the best solution is to use a property like this: import wx class FrameMain(wx.Frame): def __init__(self, *args