sending output

Discussion in 'Python' started by Fknapp, Feb 15, 2004.

  1. Fknapp

    Fknapp Guest

    I'm new to boa constructor, however I went through the tutorial and
    loved it. I am trying to create a simple math program for my 6 yr old
    daughter, I am creating a window that askes for two numbers and then
    asks for the total, based on what they enter it compares and says that
    is correct or that is wrong. I created a python script that works,
    however when I try to import and say "myscript".DoThis() I get all
    kinds of sytax errors. Any help would be appriciated
    Fknapp, Feb 15, 2004
    #1
    1. Advertising

  2. Fknapp

    Peter Otten Guest

    Fknapp wrote:

    > I'm new to boa constructor, however I went through the tutorial and
    > loved it. I am trying to create a simple math program for my 6 yr old
    > daughter, I am creating a window that askes for two numbers and then
    > asks for the total, based on what they enter it compares and says that
    > is correct or that is wrong. I created a python script that works,
    > however when I try to import and say "myscript".DoThis() I get all
    > kinds of sytax errors. Any help would be appriciated


    Let's see:

    >>> "myscript".doThis()

    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    AttributeError: 'str' object has no attribute 'doThis'
    >>>


    Failing, but definitely *not* a syntax error. Please post _real_ if short
    code and _actual_ tracebacks (cut and paste).

    Peter
    Peter Otten, Feb 15, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    478
    Benjamin Niemann
    Feb 20, 2006
  2. Steve G
    Replies:
    12
    Views:
    770
    Patricia Shanahan
    Aug 6, 2006
  3. Replies:
    0
    Views:
    1,332
  4. johnny
    Replies:
    4
    Views:
    342
    Gabriel Genellina
    Dec 13, 2006
  5. Luke
    Replies:
    2
    Views:
    4,682
    Nigel Wade
    Mar 15, 2007
Loading...

Share This Page