Menu

sending output

Anonymous
2004-02-15
2004-02-15
  • Anonymous

    Anonymous - 2004-02-15

    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

     
    • Riaan Booysen

      Riaan Booysen - 2004-02-15

      Hi Fritz (and your daughter!),

      "myscript".DoThis() is not really valid Python (strings do not have a DoThis method).
      If you have a DoThis function in a module you imported called myscript, simply call it as myscript.DoThis().

      Cheers,
      Riaan.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.