Re: Quick Question regarding Frames

2006-03-28 Thread Chris S
HI Dave, Thanks for the reply. I am a bit confused by this piece of code: class FrameB(wx.Frame): def __init__(self, frameA, ...): self.frameA = frameA What is frameA in the __init__ definition? Do I need to create something called frameA in order to pass it to that __init__ func

Re: Quick Question regarding Frames

2006-03-28 Thread Chris S
A little further clarification. FrameA and FrameB are in different modules. Thanks. Chris -- http://mail.python.org/mailman/listinfo/python-list

Quick Question regarding Frames

2006-03-28 Thread Chris S
Hello All, Just starting out with Python and wxPython. I have two Frames, FrameA and FrameB. FrameA opens FrameB when a button on FrameA is clicked. I can get this. Now I want a button on FrameB to update a control on FrameA. I am having an issue with this. Can anyone point me in the right di

Re: Memory Allocation?

2005-02-07 Thread Chris S.
Donn Cave wrote: In article <[EMAIL PROTECTED]>, "Chris S." <[EMAIL PROTECTED]> wrote: Is it possible to determine how much memory is allocated by an arbitrary Python object? There doesn't seem to be anything in the docs about this, but considering that Python man

Re: Memory Allocation?

2005-02-07 Thread Chris S.
M.E.Farmer wrote: Hello Chris, I am sure there are many inaccuracies in this story but hey you asked instead of seeking your owns answers so In general you need not worry about memory allocation. Too be more specific objects have a size and most of them are known (at least to a wizard named T

Re: Memory Allocation?

2005-02-07 Thread Chris S.
Gerrit Holl wrote: Chris S. wrote: Is it possible to determine how much memory is allocated by an arbitrary Python object? There doesn't seem to be anything in the docs about this, but considering that Python manages memory allocation, why would such a module be more difficult to design

Memory Allocation?

2005-02-06 Thread Chris S.
Is it possible to determine how much memory is allocated by an arbitrary Python object? There doesn't seem to be anything in the docs about this, but considering that Python manages memory allocation, why would such a module be more difficult to design than say, the GC? -- http://mail.python.org

Re: how to drop all thread ??

2004-11-29 Thread Chris S.
Leon wrote: if class A( use threading,thread module ) to produce 100 thread,how to drop its (100 thread) when its running As Roggisch suggests, the cleanest way is if the thread kills itself once signaled by an exit condition. However, there is a non-orthodox way of pseudo-forcibly killing threa