Reputation: 21
I've been working on a chatbot in IDLE using python. On my laptop everything works fine but on my desktop IDLE automatically squeezes the text 🤷🏻♂️
This is what it looks like in IDLE. 👀
The text that's being squeezed are just empty lines. I've embedded the code I used to print out the empty lines below...
print("\n" * 150)
👈🏻
Does anyone know how to disable it? 🤔
Upvotes: 2
Views: 11647
Reputation: 23
You could repeat your blank lines in a quantity that is less than the squeeze threshold.
print("\n"*25)
print("\n"*25)
print("\n"*25)
print("\n"*25)
print("\n"*25)
print("\n"*25)
# OR
i = 0
while i < 6:
print("\n"*25)
i = i + 1
Upvotes: 1
Reputation: 19174
This is a new feature, still being refined. To disable, go to Options => Configure IDLE => General tab => Shell preferences => Auto-Squeeze min lines [50] and change 50 to a large count.
Double click the label to expand in place. Right click for other options.
Upvotes: 4