To become fullscreen at native resolution, do
DISPLAYSURF = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
To make the window resizeable, add the pygame.RESIZABLE
parameter when seting the mode. You can set the mode of the screen surface multiple times but you might have to do pygame.display.quit()
followed by pygame.display.init()
You should also check the pygame documentation here http://www.pygame.org/docs/ref/display.html#pygame.display.set_mode
Related Posts:
- Process finished with exit code -1073741515 (0xC0000135)
- ImportError: No module named ‘pygame’
- ImportError: No module named ‘pygame’
- pygame.error: video system not initialized
- pygame.error: video system not initialized
- How to draw a circle in PyGame?
- pygame.error: video system not initialized
- TypeError: object of type ‘int’ has no len() – Python/Pygame
- Pygame Drawing a Rectangle
- How do I detect collision in pygame?
- How to display text in pygame?
- How to get keyboard input in pygame?
- Countdown timer in Pygame
- pygame clock.tick() vs framerate in game main loop
- Start with pyglet or pygame?
- Pygame mouse clicking detection
- How can I create a text input box with Pygame?
- How to install PyGame on Python 3.4?
- How to use pygame.KEYDOWN to execute something every time through a loop while the key is held down?
- How to clear up screen in pygame?
- Installation of pygame with Anaconda
- How do I rotate an image around its center using Pygame?
- How to add a background image into pygame?
- What does the list() function do in Python?
- raw_input function in Python
- How to execute a program or call a system command?
- Adding new column to existing DataFrame in Python pandas
- Confusion between Python and Anaconda
- How to find which version of TensorFlow is installed in my system?
- Understanding the Python ‘with’ statement
- Python ‘If not’ syntax [duplicate]
- AttributeError: module ‘urllib3’ has no attribute ‘urlopen’ in python
- How to download a file over HTTP?
- filedialog, tkinter and opening files
- How do I get the row count of a Pandas DataFrame?
- Singular matrix issue with Numpy
- TypeError: ‘dict’ object is not callable
- Error in Python script “Expected 2D array, got 1D array instead:”?
- Get list from pandas dataframe column or row?
- main loop ‘builtin_function_or_method’ object is not iterable
- Understand the Find() function in Beautiful Soup
- ‘DataFrame’ object has no attribute ‘sort’
- No Module named PIL
- Name ‘xrange’ is not defined in Python 3 [duplicate]
- how does \r (carriage return) work in Python
- How to prompt for user input and read command-line arguments
- What is Python buffer type for?
- Empty set literal?
- How can I check file size in Python?
- Any way to clear python’s IDLE window?
- Shuffle DataFrame rows
- What is the point of float(‘inf’) in Python?
- gaierror: [Errno 8] nodename nor servname provided, or not known (with macOS Sierra)
- Converting int to bytes in Python 3
- Plot a horizontal line using matplotlib
- How to reinstall a pip package even if it exists
- Catch multiple exceptions in one line (except block)
- How to get the current working directory using python 3?
- Two dimensional array in python
- printing a two dimensional array in python
- min() arg is an empty sequence
- How can I open an Excel file in Python?
- No module named “Torch”
- Mapping over values in a python dictionary
- ImportError: no module named win32api
- Remove quotes from String in Python
- How to change plot background color?
- ImportError: No module named ‘bottle’ – PyCharm
- What does socket binding mean?
- How to strip all whitespace from string
- Python Binomial Coefficient
- Pandas – How to flatten a hierarchical index in columns
- What is the difference between json.load() and json.loads() functions
- Python, how to handle the “ValueError: unsupported pickle protocol: 4” error?
- python error: TypeError: an integer is required
- Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
- Get an attribute value based on the name attribute with BeautifulSoup
- getting ValueError : “Can only tuple-index with a MultiIndex “
- ModuleNotFoundError: No module named ‘seaborn’ in Python IDE
- UnicodeEncodeError: ‘charmap’ codec can’t encode characters
- Is there a ceiling equivalent of // operator in Python?
- Groupby value counts on the dataframe pandas
- How to plot an array in python?
- If statement for strings in python?
- An equivalent function to matplotlib.mlab.bivariate_normal
- Float must be a string or a number?
- Play audio with Python
- Inheritance and init method in Python
- TypeError: expected str, bytes or os.PathLike object, not _io.TextIOWrapper
- Replacing Pandas or Numpy Nan with a None to use with MysqlDB
- Text progress bar in terminal with block characters
- Generator expression must be parenthesized if not sole argument
- Get a Try statement to loop around until correct value obtained
- Does python have header files like C/C++?
- Making a POST call instead of GET using urllib2
- Extract first and last row of a dataframe in pandas
- Python decoding Unicode is not supported
- Python: OSError: [Errno 2] No such file or directory: ”
- bound method Response.json of Response [200]
- TypeError: coercing to Unicode: need string or buffer