I'm wondering if there is any python code I can use to lock the size of my CMD window? I'm making a small text adventure game and want t at a specific size.
If it helps, I'm using windows 7, but wouldn't mind mac and linux compatible instructions. Thanks.
I don't think this is possible. If you want to control a gui directly, you should use a gui package like tkinter for example
from Tkinter import *
window = Tk()
window.minsize(minw, minh)
window.maxsize(maxw, maxh)
add a text block to this and treat it just like a cmd window. You can read more about it on the Tkinter docs
you can use pyWinGUI for emulate text terminal with comctl.Edit control
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With