Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python Idle

How To Find And Replace All Tabs With Spaces In Idle

I have an invisible expected an indented block error, which is likely caused by me using tabs inste… Read more How To Find And Replace All Tabs With Spaces In Idle

Idle-python3.2 Not Starting: Complains Of Nameerror: Name 'tk' Is Not Defined

running linux mint 13 idle-python3.2 did work from the terminal before, now it does not. Calling i… Read more Idle-python3.2 Not Starting: Complains Of Nameerror: Name 'tk' Is Not Defined

Private Unicode Character Displays Differently In Python 3 Interpreter

So I created a unicode character privately using Private Character Editor on Windows 10. The charac… Read more Private Unicode Character Displays Differently In Python 3 Interpreter

Port Binding Error, On Python Opening

When I open Python's IDLE, sometimes and error name 'port binding error' is accrues, an… Read more Port Binding Error, On Python Opening

Exit Gracefully If File Doesn't Exist

I have following script in Python 3.2.3: try: file = open('file.txt', 'r') exce… Read more Exit Gracefully If File Doesn't Exist

How To Solve Modulenotfound Error In Idle?

I am using ubuntu 18.04. I first installed Python along with anacondafrom terminal whose version is… Read more How To Solve Modulenotfound Error In Idle?

Mysql Connection Timeout, Inactivity

I have MySQL server installed and I would like it to stop dropping inactive connections. Which opti… Read more Mysql Connection Timeout, Inactivity

Script Fails With Attributeerror When Run In Cmd, But Executes Fine In Idle

I am quite new and confused. I tried a simple script with tkinter and it worked fine in IDLE but wh… Read more Script Fails With Attributeerror When Run In Cmd, But Executes Fine In Idle

How To Set Python Executable Path In Idle?

I've been using Python only a couple years, primarily through Jupyter notebooks and Spyder, whi… Read more How To Set Python Executable Path In Idle?

How Do I Pass Variables Around In Python?

I want to make a text-based fighting game, but in order to do so I need to use several functions an… Read more How Do I Pass Variables Around In Python?

Python Idle Freezes

This is absolutely frustrating, but I am not sure if the following is an issue only on my machine o… Read more Python Idle Freezes

Python - Ctrl L Does Not Work

Attempting to use Ctrl+L for clearing Power Sheel in Python 2.7.8 I get no response. Is there any … Read more Python - Ctrl L Does Not Work

Change Printed Text Color In Idle?

Is there a way to specify the color a text is printed within Idle for Python 3.2? I'm looking f… Read more Change Printed Text Color In Idle?

Python - Uppercase And Lowercase

In my code it is; If 'Laia' in name: But how do I make it so even if they input; LaIa or l… Read more Python - Uppercase And Lowercase

Modulenotfounderror: No Module Named 'pgzrun' When I Have It Installed?

Why does IDLE say ModuleNotFoundError: No module named 'pygame' when I have it installed? I… Read more Modulenotfounderror: No Module Named 'pgzrun' When I Have It Installed?

"SyntaxError: Invalid Syntax" When Trying To Run A .py Script From IDLE In Command Prompt

I just started learning python. I created a simple .py file using the IDLE editor and I am trying t… Read more "SyntaxError: Invalid Syntax" When Trying To Run A .py Script From IDLE In Command Prompt

Importing From A Package In IDLE Vs Shell

Importing a whole package works in IDLE, but not in shell. The following works fine in IDLE: import… Read more Importing From A Package In IDLE Vs Shell