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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.