나는 이것이 아마도 kivy.bat가 설치하고 kivy가 설치된 두 번째 파이썬 배포판을 사용하기 때문일 것이라고 생각합니다. 그러나 pyscripter는 kivy 모듈이 설치되어 있지 않은 일반 시스템 설치를 사용하고 있습니다.
올바른 환경을 설정 한 kivy 인터프리터를 사용하도록 pyscripter에 지시 할 수 있습니다. 나는 정확히 어떻게 (나는 창문에서 시도한 적이 없다) 모르지만, 예를 들어 this previous question은 pyscripter보다는 pycharm과 비슷하지만 비슷하다. 아래에 그 대답을 붙여 넣었습니다. 그 중 일부는 특히 파이크 (pycharm)와 관련이 있지만 비슷한 것이 아마도 pyscripter에서 작동합니다.
Install and open PyCharm
If you already had it installed and have a project open, click File -> Settings (Ctrl + Alt + S). (If not, create a new project, and
click the '...' next to interpreter, and skip step 2) Under Project Settings, click Project Interpreter -> Python Interpreters Click the little green + and select local (You can also set up an interpreter to your installed python from this list) Point it to ..\Kivy\Python\python.exe and click ok (Mine's path was c:\Program files (x86)\Kivy\Python\python.exe since that is where I unzipped the kivy zip file to)
I have also attached a settings.jar file here https://groups.google.com/forum/#!topic/kivy-users/xTpib2C8r_A . This is the kv language definition. Its not complete, but it helps a lot. Click File->Import-> Select the settings.jar file. Only FileTypes will be ticked. import this and you will have "kv language file" definition under File->Settings-IDE Settings->File Types
Open a kv file to see the differentiation in colours, as well as autocomplete Widgets are type 1 Properties are type 2 all events (on_something) are type 3 type 4 is just self and root.
-- That is all for PyCharm, the rest is Windows 7 specific things. -- 1. open a command prompt and browse to your ..\Kivy\Python\lib folder 2. type mklink /D kivy "..\Kivy\kivy\kivy" (Mines line was mklink /D kivy "c:\Program files (x86)\Kivy\kivy\kivy") This will set up a symlink so that your all your kivy python files are read and their definitions are included, in order to get autocomplete
Now we need to set up the environment variables. You could do this per project inside PyCharm, but might as well do it in windows, so you only need to select the python interpreter each time Click start and type envir Select the second one. (System variables) (You could also get here with Win+PauseBreak-> Click Advanced system settings) Click Environment variables
Now add these (Once again, just point to wherever you have your kivy folder. You can also find all these in the kivy.bat file, just find and replace the variables with your path)
GST_PLUGIN_PATH c:\Program Files (x86)\Kivy\gstreamer\lib\gstreamer-0.10
GST_REGISTRY c:\Program Files (x86)\Kivy\gstreamer\registry.bin
PATH c:\Program Files (x86)\Kivy;c:\Program Files (x86)\Kivy\Python;c:\Program Files (x86)\Kivy\gstreamer\bin;c:\Program Files (x86)\Kivy\MinGW\bin;c:\Program Files (x86)\Kivy;c:\Program Files (x86)\Kivy\Python;c:\Program Files (x86)\Kivy\gstreamer\bin;c:\Program Files (x86)\Kivy\kivy;%PATH%
Restart your machine. (For the environment variables to load)
Now when you open your kivy project, just select the Kivy interpreter you set up earlier, and bobs your uncle.