3 posts
Location
Austria
Posted 31 October 2012 - 06:11 PM
Why this program doesnt work:
When I klick on a menu there happens nothing
389 posts
Location
Norway
Posted 31 October 2012 - 06:19 PM
You don't ask for help in the programs section, moved to ask a pro.
27 posts
Posted 31 October 2012 - 07:22 PM
The folowing errors are in your code:
Line 6: close the print statement like so print("main")
you use if p2 == 4 and 5 and 6 and 7 then , this won't do what you want, you need:
if p2 == 4 or p2 == 5 or p2 == 6 or p2 == 7 then
otherwise it will check if p2 == 4 and 5 != 0 and 6 != null and 7 != null
2005 posts
Posted 31 October 2012 - 11:21 PM
I think you might want to use "pl2 > 1 and pl2 < 9" for your conditional. Still, while the conditionals are messed up, you should still be able to activate your menu items by clicking on the exact right spot. Can you?
3 posts
Location
Austria
Posted 01 November 2012 - 09:37 PM
The folowing errors are in your code:
Line 6: close the print statement like so print("main")
you use if p2 == 4 and 5 and 6 and 7 then , this won't do what you want, you need:
if p2 == 4 or p2 == 5 or p2 == 6 or p2 == 7 then
otherwise it will check if p2 == 4 and 5 != 0 and 6 != null and 7 != null
I think you might want to use "pl2 > 1 and pl2 < 9" for your conditional. Still, while the conditionals are messed up, you should still be able to activate your menu items by clicking on the exact right spot. Can you?
Thanks for help
147 posts
Location
England
Posted 01 November 2012 - 10:56 PM
Also what is up with all the elses in your if statements. Unless you need an else don't put one in
3 posts
Location
Austria
Posted 03 November 2012 - 12:52 AM
The folowing errors are in your code:
Line 6: close the print statement like so print("main")
The line is cutten. Its so: (" Main
___________________________")