Questions tagged [python-idle]

IDLE is Python's Integrated Development and Learning Environment. It is part of the standard Python distribution.

IDLE is Python's Integrated Development and Learning Environment. It is part of the standard Python distribution. Though lightweight, it has a fairly rich feature set, including a code editor and a shell (in separate windows). It is written in Python using the tkinter toolkit.

1438 questions
-2
votes
1 answer

Program will not let me store only the last three scores of the user

if class_number == 0: #This will create and open a new text file under the name #of the class_tag variable. file = open("Class 0" + ".txt", "a") #This will write down the user's name and their score file.write(str(name) + "…
A MUSE
  • 35
  • 6
-2
votes
2 answers

How do I run my Python script using Tkinter?

I'm trying to get my script to run when I press a button on my UI, not sure how to get it to work. Any ideas? Example: from tkinter import * root = Tk() def OpenPro1(): print("Hej") button_1 = Button(root, text = "Hejdå", command =…
Aroronon
  • 21
  • 1
  • 1
-2
votes
1 answer

Can't Open Python IDLE

Getting the following code opening in the console in 9 separate screens when I try to open Python IDLE. As far as I'm aware, there isn't anything that I have done to the original install. Any ideas? Tried uninstalling and reinstalling but no luck.…
user1480135
  • 157
  • 1
  • 4
  • 16
-2
votes
3 answers

Halving each continuous number looping

A cup is poured 1/2 full, then 1/4 full, then 1/8 full and so forth. Construct a loop that calculates how full the cup is after a given number of pours. My question here is how to halve each number after the last so far i have cup=0 while cup<1: …
-2
votes
1 answer

Reading answers from separate file

I am stuck with this code. So, I am making an IRC bot which answers peoples questions. When a question is asked, I write it to a .txt file; Main.py Import os Import hi Question_file = 'question.txt' Answer_file = 'answer.txt' while True: …
-2
votes
1 answer

Storing certain input

Here's my code; locat_file = 'info/locat.txt' Import os If not os.path.exists(locat_file): #Ask location locat = raw_input("Where are you from?\n").title with open(locat_file, "w") as f: f.write(locat) f.close This code…
-2
votes
1 answer

Python idle syntax highlighting

I'm using idle on windows 7 as I've just come from a mac and the text editor I was using highlighted different keywords then what idle does. I know that I can change the colour of the current syntax like print and def but can I add other keywords to…
user1650923
  • 1
  • 1
  • 1
-3
votes
1 answer

Can I clear the screen in Python's IDLE Shell?

I'm trying to clear the screen in Python's IDLE shell, and so far haven't found any working mechanism to do so. How can this be done?
heckr
  • 3
  • 1
-3
votes
1 answer

How we can differentiate between interpreter and ide and idle?in python?

Although all 3 are used for programming in python but what is difference between them?especially in their application?when we use ide and when we use idle and when we use interpreter?
LECS
  • 121
  • 12
-3
votes
1 answer

Are saved IDLE files saved forever?

If you create, save and run a Python IDLE file, is the file saved forever?
user8518239
-3
votes
1 answer

Exit command without confirmation in python

In Python if the exit() command is raised, it will confirm before exiting. I do not like the idea of clicking the exit button every time. Is there a way to bypass this confirmation? (This is using the IDLE shell)
Bill Wang
  • 140
  • 13
-3
votes
3 answers

IDLE 3.5 won't open

I'm really confused. For some reason, I suddenly can't open IDLE 3.5. I have tried uninstalling it and reinstlling, but no luck. I was told to delete the folder .idlerc but it hasn't come back after constant tries. Was that a huge mistake? I have no…
linky00
  • 65
  • 1
  • 10
-3
votes
1 answer

Not sure why IDLE automatically added *-* coding: utf-8 -*- to my script

Initially I installed version 3.4 of Python and then I added version 2.7 as a video course instructor was using it as well. After I opened IDLE and wrote some code, pressed F5 a meessage popped up. I accepted the message and from then on this line…
-3
votes
1 answer

Store input based on computer and change stored input on command

Fixed code; if os.path.isfile(external_file): with open(external_file) as in_f: name = in_f.read() else: name = raw_input("What's your name?") with open(external_file, "w") as out_f: out_f.write(name) The problem is. It…
-3
votes
1 answer

IDLE settings change, comment key change

this is not a programming question but a question about the IDLE. Is it possible to change the comment block key from '#' to something else? here is the part that is not going to work: array = [] y = array.append(str(words2)) <-- another…
Chopster0123
  • 19
  • 2
  • 7
1 2 3
95
96