Home > other >  The from pygame. Locals import * this can't use, must use pygame. QUIT and cannot use the QUIT
The from pygame. Locals import * this can't use, must use pygame. QUIT and cannot use the QUIT

Time:09-18

Python3.5 pygame1.9,

CodePudding user response:

Said no problem

CodePudding user response:

IDLE I run results in exactly the same with you, but in pycharm is problematic, pycharm problem do? But I pycharm is not the old version, is a new version

CodePudding user response:

Errors is put up, think of is the module or code

CodePudding user response:

Obviously has a warning, there is something wrong with the code itself

CodePudding user response:

Code can't have a problem, whether my own writing, or according to the video copy one side, or directly copied from the Internet, the from pygame. Locals import * is not directly use the QUIT, and even if there are any errors, run or don't have any problem, Unresolved reference 'QUIT' this is an error message

CodePudding user response:

I'm sorry so long to reply

CodePudding user response:

The same question I get a week
And my pygame. The init () will remind error __init__ inside no init ()
The topic main solve

CodePudding user response:

I'm new to write today forget to import the modules from pygame. Locals import * appear this problem, the import modules do not have what problem

CodePudding user response:

refer to 7th floor a dead in a big fish in a speed bump response:
the same question I get a week
And my pygame. The init () will remind error __init__ inside no init ()
Topic main solved
me too, can also be at the beginning, suddenly not line, today,

CodePudding user response:

The from pygame. Locals import * this statement pycharm error,

CodePudding user response:

You this is under the python PIP list with pygame, pycharm package path and python, or copy the past, either in pycharm pack again
  • Related