Re: A question about event handlers with wxPython

2008-01-16 Thread Erik Lind
"Mike Driscoll" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Jan 15, 2:20 pm, "Erik Lind" <[EMAIL PROTECTED]> wrote: >> That all looks cool. I will experiment more. I'm a bit slow on this as >> only >> two weeks old

Re: A question about event handlers with wxPython

2008-01-15 Thread Erik Lind
That all looks cool. I will experiment more. I'm a bit slow on this as only two weeks old so far. Thanks for the patience -- http://mail.python.org/mailman/listinfo/python-list

Re: A question about event handlers with wxPython

2008-01-15 Thread Erik Lind
> def HandleSomething(self, event): >generating_control = event.GetEventObject() >print generating_control > > HTH, Thank you.That is what I was looking for, but as often seems the case, one thing exposes another. Is there any way to listen for events without specifically binding to a ha

A question about event handlers with wxPython

2008-01-14 Thread Erik Lind
I'd appreciate any pointer on a simple way to tell within an event handler where the event came from. I want to have "while" condition in a handler to stop or change processing if an event occurs from some other button click. Trying to bind more than one event to the same handler still doesn't t

help with slicing/replacing matrix sections.

2008-01-14 Thread Erik Lind
I see a more complicated thread on a similar sounding question, but my question is simpler, I hope. I have a large numpy matrix, initially created as: Mat = zeros((a,b), int) and a smaller array with other data Sub = [1,2,3,4,5],[6,7,8,9,0] I want to replace a section of Mat matrix with Sub m

__init__ explanation please

2008-01-12 Thread Erik Lind
I'm new to Python, and OOP. I've read most of Mark Lutz's book and more online and can write simple modules, but I still don't get when __init__ needs to be used as opposed to creating a class instance by assignment. For some strange reason the literature seems to take this for granted. I'd app

Slicing / subsetting list in arbitrary fashion

2006-11-17 Thread Gregg Lind
I wish something like this was part of the standard python installation, and didn't require one to use Numpy or Numarray. This sort of list subsetting is useful in many, many contexts. -- http://mail.python.org/mailman/listinfo/python-list

Slicing / subsetting list in arbitrary fashion

2006-11-17 Thread Gregg Lind
One difficulty I am having with using Python for scientific computing is that I cannot figure out good ways to get arbitrary (unpatterned?) slices. As an example, in R or Matlab / Octave, syntax exists such that: vals = range(6) wanted = [1,2,3,1,1,1] vals[wanted] = [1,2,3,1,1,1] Both of those

Re: used to work at ungerer lab?

2006-09-01 Thread lind
Yes, and Du Buisson's and a variety of others. Liked spiders and spent time at the WNNR? lind wrote: > I am looking for an old friend, used to work at a path lab in Pretoria, > dabbled in Scientology and rock climbing? I know this is not > friendster.com, but I really have to ge

used to work at ungerer lab?

2006-09-01 Thread lind
I am looking for an old friend, used to work at a path lab in Pretoria, dabbled in Scientology and rock climbing? I know this is not friendster.com, but I really have to get into contact with him. Hendrik van Rooyen wrote: > <[EMAIL PROTECTED]> Wrote: > > > | Hi, > | I need help about Tkinter lis

Re: Static executable with shared modules

2005-01-17 Thread Rickard Lind
Martin v. Löwis wrote: > I'm not what "build statically" means; if you talking about > building a statically linked interpreter binary - then no, > this is not possible. At a minimum, you need to link with -ldl, > or else you cannot perform dlopen(3). I'll be more specific: when I build python 2.3.

Static executable with shared modules

2005-01-14 Thread Rickard Lind
Is there any way to build the python executable statically and still be able to load modules built as shared libraries? I'm trying to run python scripts on a stripped down FreeBSD (4.9) machine which has no shared system libraries so I want to link it statically against libc et al, but it would be