Home > other >  Eclipse pygame window flashes back problems
Eclipse pygame window flashes back problems

Time:11-19

Python version is 3.6,
With the Python shell open, import related modules, perform screen.=pygame display. Set_mode (32) (600500), 0, , can create a new normal pygame window , and by the pygame. Quit close (),
With the Eclipse execute screen.=pygame display. Set_mode (32) (600500), 0, , pygame window is created, stay one second will be automatically closed... Which men can help to analyse the possible reasons

CodePudding user response:

Look at the eclipse of the python interpreter

CodePudding user response:

CodePudding user response:

reference 1st floor tianfang response:
what eclipse the python interpreter is

CodePudding user response:

1 second closes the program is over?

CodePudding user response:

The
reference 4 floor tianfang reply:
1 seconds off the end of the program?

Well program creates a window ends, but use the python shell to perform, end of the program window won't shut down, to perform the pygame. Quit () closed manually,
Using the eclipse , about one second is automatically generated by the window is closed,

CodePudding user response:

Or on your code

CodePudding user response:

Brother I also encountered this problem, pycharm run thoroughly the plane war, in the packaging on the images file directory a open it no response or flash back, head all big, want to ask you to find a solution

CodePudding user response:

refer to 7th floor NemoJ response:
yes I also encountered this problem, pycharm run thoroughly the plane war, in the packaging on the images file directory a open it no response or flash back, head all big, want to ask: have you found a solution yet

No problem, oh

CodePudding user response:

You can use the OS module, specific format is as follows:
The import OS
. (program source code)
OS. The system (" pause ")

CodePudding user response:

Or there is an error in your code, and good rich miscellaneous, upstairs said, seems not necessary,
  • Related