Q:

python setting console fullscreen(or maximum window size) using win32api

so I'm trying to resize the console window to the maximum size on startup.
I tried using the win32api as follows:
import win32api

console_handle = win32api.GetStdHandle(win32api.STD_OUTPUT_HANDLE)
win32api.SetConsoleDisplayMode(console_handle, CONSOLE_FULLSCREEN_MODE)

But it says that win32api doesn't have a SetConsoleDisplayMode function.

A:

There's a windows command to change the size of the console:
import os
os.system("mode con cols=50 lines=20")

cols is the width, lines is the height

