![]() Print 'Error connecting to the wiimote, press 1 and 2 ' Have another go and this time, paste the three lines, starting with the line above the line with the red box from the code editing window, not the shell window.Īrm = (idVendor=0x1267, idProduct=0x0000)Īrm.ctrl_transfer(0x40, 6, 0x100, 0, ArmCmd, 1000) When you load a program from disk into IDLE, it opens in a code editor window with your file name as the title, and, if it finds a bug when run, such as "invalid syntax", it prints a red box in the code window where it thinks the error occurred. The second is the Python code editor, will be titled with your code's filename. The first window will be titled 'Python 2.7.9, and is a Python shell. ![]() When you are using IDLE there should be two widows open on your Desktop. ![]() Next, the lines you have posted do not look like the first three lines of a Python script stored in a file, some lines start with '>', which indicates you are copying & pasting something from a Python shell, not a Python code editor. ![]() Code: Select all Then your code will look like this on the Forum, and we can see the formattingīefore you click 'Submit', click 'Preview', and check that your code appears in a Code Block, then submit your post. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |