Re: what's the difference between these two methods? (aka, why doesn't one of them work?)

2006-11-02 Thread JohnJSal
Carsten Haese wrote: > The fact that you were able to answer your own question only a few > minutes later indicates to me that you should set your "I give up and > ask the list" threshold a tad higher. That's a perfectly valid comment, but in this case just not applicable. I spent a lot of time w

Re: what's the difference between these two methods? (aka, why doesn't one of them work?)

2006-11-02 Thread JohnJSal
JohnJSal wrote: > JohnJSal wrote: > > Peter Otten wrote: > > > > > > > ...the above is not a 1-tuple, but an ordinary string. You forgot the > > > trailing comma: > > > > > > ('notes',) > > > > Right you are! Now it

Re: what's the difference between these two methods? (aka, why doesn't one of them work?)

2006-11-02 Thread JohnJSal
JohnJSal wrote: > Peter Otten wrote: > > > > ...the above is not a 1-tuple, but an ordinary string. You forgot the > > trailing comma: > > > > ('notes',) > > Right you are! Now it works! :) > > Thanks! Oh great, now I've moved on to a

Re: what's the difference between these two methods? (aka, why doesn't one of them work?)

2006-11-02 Thread JohnJSal
Peter Otten wrote: > ...the above is not a 1-tuple, but an ordinary string. You forgot the > trailing comma: > > ('notes',) Right you are! Now it works! :) Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: what's the difference between these two methods? (aka, why doesn't one of them work?)

2006-11-02 Thread JohnJSal
JohnJSal wrote: > Can someone explain to me why the first version of this method works, > but the second one doesn't? Sorry, it's the first one that doesn't work. The second one does. -- http://mail.python.org/mailman/listinfo/python-list

what's the difference between these two methods? (aka, why doesn't one of them work?)

2006-11-02 Thread JohnJSal
Can someone explain to me why the first version of this method works, but the second one doesn't? All I've changed (I think) is how the information is nested. The error I'm getting is that the call to xrc.XRCCTRL is not working in the second example. Instead of getting the appropriate widget, it's

Re: creating new objects with references to them

2006-11-02 Thread JohnJSal
JohnJSal wrote: > Hope that makes sense. It seems like such a common task. Ok, I'm thinking about the suggestion to make a list, but I'm still confused. Even with a list, how do I access each instance. Would I have to do it by index? I assume I'd do something like t

Re: creating new objects with references to them

2006-11-02 Thread JohnJSal
Steve Holden wrote: > del rec[7] Hmmm, but what if the record can remain open, changes can be made, and then saved again to the same object? I suppose it isn't necessary to delete them, right? Man, this stuff gets complicated -- http://mail.python.org/mailman/listinfo/python-list

Re: creating new objects with references to them

2006-11-02 Thread JohnJSal
Ant wrote: > It all depends on what UI you are using (Web frontend? GUI such as > Tkinter?) and what your use case is. Making it myself with wxPython. > > What is it exactly that you want to do? Create a bunch of Researcher > objects and then save them in a single hit? Create a list of > Researc

creating new objects with references to them

2006-11-02 Thread JohnJSal
It seems like what I want to do is something that programmers deal with everyday, but I just can't think of a way to do it. Basically, I am writing a DB front-end and I want a new "Researcher" object to be created whenever the user presses the "New Record" button. He can open as many new records at