Re: [Tutor] passing form data into a class

2007-07-31 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > dear fellow Python enthusiasts, let's say I have a dictionary of keys > and values obtained from a form submitted by a user. For each submitted > form I will create the Application and Candidate classes, and I want to > be able to call Application(Candidate(**submitte

Re: [Tutor] passing form data into a class

2007-07-31 Thread Dave Kuhlman
On Mon, Jul 30, 2007 at 08:32:55PM -0700, [EMAIL PROTECTED] wrote: > dear fellow Python enthusiasts, let's say I have a dictionary of keys and > values obtained from a form submitted by a user. For each submitted form I > will create the Application and Candidate classes, and I want to be able to

Re: [Tutor] passing form data into a class

2007-07-31 Thread Eric Brunson
Dave Kuhlman wrote: > On Mon, Jul 30, 2007 at 08:32:55PM -0700, [EMAIL PROTECTED] wrote: > >> dear fellow Python enthusiasts, let's say I have a dictionary of keys and >> values obtained from a form submitted by a user. For each submitted form I >> will create the Application and Candidate clas

Re: [Tutor] Which GUI?

2007-07-31 Thread scott
Hi, I have been doing some research on the GUI's and noticed it is a very difficult choice to make which one to write with. It seems to be even more difficult than choosing which programming language to use. If you don't mind I have a few questions to ask about selecting the r

Re: [Tutor] Which GUI?

2007-07-31 Thread Ian Witham
Hi Scott, I'm no expert (yet) but I have come across this fun online tool which helps you choose a GUI toolkit for Python: Choose Your GUI Toolkit I had no problem installing WxPython from the Ubuntu repos, and I have heard that is is one of the top choice

Re: [Tutor] Which GUI?

2007-07-31 Thread Terry Carroll
On Wed, 1 Aug 2007, Ian Witham wrote: > I'm no expert (yet) but I have come across this fun online tool which helps > you choose a GUI toolkit for Python: > > Choose Your GUI Toolkit I think it's rigged. I answered it honestly, and it suggested wxPython,

[Tutor] C program

2007-07-31 Thread Alondt Yauk
Hello people of the world. This question is not a Python related question, but I thought I might just throw it in here and see if there are any C old-timers who could help out. I have a string with space and I would like to remove the space before comparing but I don't know how to go about doin

Re: [Tutor] C program

2007-07-31 Thread Tiger12506
Hello people of the world. This question is not a Python related question, but I thought I might just throw it in here and see if there are any C old-timers who could help out. I have a string with space and I would like to remove the space before comparing but I don't know how to go about doin

Re: [Tutor] passing form data into a class

2007-07-31 Thread John Fouhy
On 01/08/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > John, I spent the last two hours trying to understand what you wrote, and I > feel I'm missing something: > > >>> a_dict = {'one':1, 'two':2, 'three':3} > >>> class A(object): > def __init__(self, **kwargs): > for var in kw

Re: [Tutor] Which GUI?

2007-07-31 Thread Luke Paireepinart
Terry Carroll wrote: > On Wed, 1 Aug 2007, Ian Witham wrote: > > >> I'm no expert (yet) but I have come across this fun online tool which helps >> you choose a GUI toolkit for Python: >> >> Choose Your GUI Toolkit >> > > I think it's rigged. I answer

Re: [Tutor] Which GUI?

2007-07-31 Thread Alan Gauld
"scott" <[EMAIL PROTECTED]> wrote > 1: I know many people suggest learning more than one programming > language when writing programs and use each programming language > like a > tool on a toolbox. Should one also learn more than one GUI and > select > the correct one for each individual progra

Re: [Tutor] C program

2007-07-31 Thread Alan Gauld
"Tiger12506" <[EMAIL PROTECTED]> wrote > I have a string with space and I would like to remove the space > before > comparing but I don't know how to go about doing it. Here is the > code Look at strrchr()... > void rstrip(char *c) { > while (*c++!=0); > c--; > while (*--c==' ') *c = 0; >