Wednesday, July 26,2017
So I decide to go thought the coding again and I highlighted some important part while reading though the coding in github will looking though it. I found somethings that were similar to what I will be type again which would repeat.
So I decide to go thought the coding again and I highlighted some important part while reading though the coding in github will looking though it. I found somethings that were similar to what I will be type again which would repeat.
| def numPadConvert(num2convert): | |
| if num2convert == "KP_Insert": | |
| return "0" | |
| if num2convert == "KP_End": | |
| return "1" | |
| if num2convert == "KP_Down": | |
| return "2" | |
| if num2convert == "KP_Next": | |
| return "3" | |
| if num2convert == "KP_Left": | |
| return "4" | |
| if num2convert == "KP_Begin": | |
| return "5" | |
| if num2convert == "KP_Right": | |
| return "6" | |
| if num2convert == "KP_Home": | |
| return "7" | |
| if num2convert == "KP_Up": | |
| return "8" | |
| if num2convert == "KP_Prior": | |
| return "9" | |
| else: | |
| return num2convert | |
As you can notice that in the code that its keeps reating if num2convert== "KP_ ": Also their is a coding for the numbers and the color in the roulette and the even talk about the camera . The numbers determine what color it is.
Comments
Post a Comment