Im trying to create an application that runs in CMD where one of the files in the other directory sets the size of the window to fullscreen. However the method I tried won't open or load it. I debugged my profile and all the modules are already installed. It's just the function that won't load.
How the file directory is setup:
Application_map
|-Application.py
|-U7sI5C
|-Module.py
Code in application.py:
try:
import time
from U7sI5C import (module, example, example)
except Ecxception as e:
print("Some modules are missing! Install them and try again! {}".format(e))
Resize() #<---This is the module in module.py in the U7sI5C directory.
time.sleep(50)
Code in Modules.py:
try:
import ctypes
from os import system
import sys
import time
except Exception as e:
print("Some modules are mssing! Install them and try again! {}".format(e))
def Resize():
system("title " + "Lost Lifes")
kernel32 = ctypes.WinDLL('kernel32')
user32 = ctypes.WinDLL('user32')
SW_MAXIMIZE = 3
hWnd = kernel32.GetConsoleWindow()
user32.ShowWindow(hWnd, SW_MAXIMIZE)
time.sleep(50)