python-idle Questions
1
Solved
I need to embed an interative python interpreter into my tkinter program. Could anyone help me out as to how to integrate it?
I have already looked at the main() function, but it's way to complex ...
List asked 16/8, 2016 at 14:25
1
I have Python 3.4.3 installed on an older laptop (Pentium 4) with Windows XP.
It seems that half the time when the Python shell is open, the CPU usage goes up to 12-13%.
It is the Python shell it...
Webb asked 13/9, 2015 at 15:40
1
Solved
Importing a whole package works in IDLE, but not in shell. The following works fine in IDLE:
import tkinter as tk
tk.filedialog.askopenfilename()
In shell, I get this error:
AttributeError: 'mo...
Sure asked 6/8, 2016 at 16:57
2
Solved
I am using Python 2.7.10 and am having trouble trying to unindent a block of code. Surely there is some sort of shortcut, instead of having to backspace every individual line?
From the Pytho...
Susie asked 22/9, 2015 at 7:27
3
Solved
I was just reading about the 'unexpected result of is operator' which happens because Python cache numbers between -5 and 256.
This was discussed here:
"is" operator behaves unexpectedly...
Jural asked 3/5, 2016 at 9:6
2
I'm trying to create a code for a countdown timer that stays in place: so that each line overwrites the previous one. This is what I have so far:
import time
def countdown(t):
while t:
mins, se...
Claudy asked 3/3, 2016 at 9:32
1
Solved
recently I want to add a simple progress bar to my script, I use tqdm to that, but what puzzle me is that the output is different when I am in the IDLE or in the cmd
for example this
from tqdm im...
Pius asked 9/3, 2016 at 15:30
1
I'm new to programming and to be more specific, Python. I was going through the installation process from Robert Sedgewick's Introduction to Programming in Python website until right before the sec...
Electronegative asked 16/2, 2016 at 22:33
1
Solved
A basic example of multiprocessing Process class runs when executed from file, but not from IDLE. Why is that and can it be done?
from multiprocessing import Process
def f(name):
print('hello', ...
Ennoble asked 9/2, 2016 at 13:20
0
I have just installed Macports for a short course I am planning to do.
IDLE does not open whether I launch it from Terminal or Finder.
Just for clarification, I am issuing idle2.7 to launch it from...
Innocency asked 7/2, 2016 at 2:53
4
Solved
I solved this already, I'm just posting it here because I couldn't figure it out with google, or by reading the docs. I only found it by accident.
To add a breakpoint, right-click on the line that...
Franfranc asked 6/6, 2011 at 0:31
1
Solved
I don't know how to explain this, actually I'm looking for the explanation, so I'll just mention some steps to reproduce the issue. Hopefully someone will be able to understand and elaborate:
Pyth...
Rausch asked 6/12, 2015 at 10:7
2
Solved
I see a lot of connections are open and remain idle for a long time, say 5 minutes.
Is there any solution to terminate / close it from server without restarting the mysql service?
I am maintaini...
Infrangible asked 26/11, 2010 at 9:52
1
Solved
In the Python IDLE:
>>> a=1.1
>>> b=1.1
>>> a is b
False
But when I put the code in a script and run it, I will get a different result:
$cat t.py
a=1.1
b=1.1
print a is ...
Molten asked 7/7, 2015 at 6:7
4
Solved
I have a python script that uses plt.show() as it's last instruction. When it runs, IDLE just hangs after the last instruction. I get the image but I don't get the prompt back.
On other scripts I ...
Marita asked 17/3, 2010 at 7:4
1
Solved
I have code using tkinter which I can run from IDLE just fine, but which throws the exception AttributeError: 'module' object has no attribute 'font' when it is run from the command line. Other tki...
Grimona asked 16/6, 2015 at 20:4
3
Solved
Here is my code. I'm not exactly sure if I need a counter for this to work. The answer should be 'iiii'.
def eliminate_consonants(x):
vowels= ['a','e','i','o','u']
vowels_found = 0
for char in ...
Freezer asked 2/5, 2015 at 3:25
4
Solved
I'm trying to understand how my workflow can work with Python and IDLE.
Suppose I write a function:
def hello():
print 'hello!'
I save the file as greetings.py. Then in IDLE, I test the functi...
Intermingle asked 4/6, 2011 at 2:56
3
Solved
It seems that IDLE (part of the standard Python Windows install) will not execute multithreaded programs correctly without nasty hangs or bugout crashes. Does anyone know of a way to fix this?
The...
Oidium asked 30/6, 2010 at 22:10
6
Solved
When I'm using IDLE to run a script, if the script encounters an exception and execution stops, then I'm left with a interactive shell, which I can use to investigate the application state at the t...
Pseudohermaphrodite asked 20/3, 2012 at 16:10
1
Solved
Is there an equivalent in the IDLE ide for python to Ctrl+R in bash, where you type a part of the line, and it matches it against the history of already entered lines?
Xerosere asked 27/6, 2013 at 6:20
1
Solved
I am new to Python. I am using the Python IDLE Debugger on Windows. Is there a way to inspect object attributes in the debugger? The debugger only shows object address/type.
A solution I tried wa...
Lefthanded asked 16/10, 2014 at 21:22
2
Solved
EDIT: I'm redoing the question entirely. The issue has nothing to do with time.time()
Here's a program:
import time
start=time.time()
a=9<<(1<<26) # The line that makes it take a whil...
Lye asked 14/6, 2014 at 4:47
1
Variations of this question have been asked, but the answers always start from scratch (i.e. from installing numpy).
I already have numpy installed on my computer from an earlier time when I downl...
Bernardo asked 5/8, 2014 at 21:28
2
I am on Windows 7. I have Python 2.7.8 (64 bit) installed. Today, I changed the default program that opens .py files from IDLE to Windows Command Processor and stupidly selected the checkbox ...
Nutrition asked 28/7, 2014 at 5:27
© 2022 - 2024 — McMap. All rights reserved.