14 Topics

Member Avatar for
Member Avatar for Gribouillis

A feature of the doctest module can be useful when people copy and paste their idle window in the python forum: the ability to transform an example from the python interpreter into python code without the prompts [icode]>>>, ...[/icode] and the output messages. The script below permits to use this …

Member Avatar for Gribouillis
3
889
Member Avatar for mavtcr

Friends, I made a small calculator in a form.It works well. On the form there is an Exit Button to close the form. Now I want this task.If I keep the calculator on the form (Computer) idle for 60 seconds the form must be closed automatically / If I goes …

Member Avatar for mavtcr
0
254
Member Avatar for KatseasSAvvas

I'd like to ask the user if he/she wants to rerun a script. I've thought of doing that with a while. My problem is that both [CODE] import sys rerun = "y" while rerun == "n": sys.exit() else: print("do some stuff") rerun = str(input("Would you like to start again? [y/n]: …

Member Avatar for KatseasSAvvas
0
2K
Member Avatar for jstfsklh211

I hate websites that timeout and don't let you know about it this script pops up a message when you timeout and allows you to re-login in place

0
298
Member Avatar for MBPFAN

I'm using python IDLE v. 2.7.2 and I get the same error report with my program. [CODE]>>> def menu(list, question): for entry in list: print 1 + list.index(entry), print ") " + entry return input(question) - 1 [B]items[/B] = ["Cup","Vase","Table","Lamp","Bowl","Door"] keylocation = 3 keyfound = 0 loop = 1 print …

Member Avatar for MBPFAN
0
1K
Member Avatar for pwolf

well this is the first time i am trying to make a module, i saved the .py file into a new directory called MyModules and tried to import it in IDLE, but it returned the following error; Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import polymod …

Member Avatar for pwolf
0
567
Member Avatar for TrustyTony

While looking stuff about idlelib, I came to [URL="http://stackoverflow.com/questions/3431498/what-code-can-i-use-to-check-if-python-is-running-in-idle"]this thread in stackoverflow[/URL], so I posted own solution. I post it also here, as maybe somebody needs it (as for example \b looks ugly in IDLE)

0
238
Member Avatar for MoZo1

It's a common problem, there are a lot of google hits, but I could found no working solution. When I leave my computer on and don't use it, and I come back, first only the cursor works, and if I right click, that freezes too. After 1-5 min it recovers …

Member Avatar for MoZo1
0
363
Member Avatar for Gh0st93

So her is my problem I have a Macbook running OS 10.6.5 and i have python 2.x and 3.x installed on it and I can run python in the terminal but if I try to run the idle it just bounces for a few seconds then disappears. can anyone help.

Member Avatar for Gribouillis
0
864
Member Avatar for lenni

Hi I need to force a logoff for idle users through a gpo, after 2 or 3 hours of inactivity. The suggested solution in every previous thread is using a screensaver that does the trick. That's not good for me, because I need the screen saver to run after 15 …

Member Avatar for Windo
0
532
Member Avatar for thekevinguy

Hello, I'm pretty new to programming in general, and I'm trying to get started with python. Whenever I open up IDLE, everything seems to work fine. However, when I go to File>New Window, I just get a blank window and everything freezes up. If I restart my computer, I can …

Member Avatar for Gribouillis
0
149
Member Avatar for TrustyTony

I tried this super simple class example from net. (Yes I am a beginner in implementation of object oriented features in Python) UPDATE: Now from fresh start of IDLE it did not crash, but did not quit properly still. Hmm. TaskManager any (or dozen) python zombies hanging around?? No only …

Member Avatar for vegaseat
0
579
Member Avatar for kedakai

I want to create a program that will close itself when the user was idle(not touching/moving the mouse and keyboard) for about 5 minutes...but I have a problem in how to track a user's idle time so that I could set the closing action. Could anyone give me a simple …

Member Avatar for kedakai
0
169
Member Avatar for Tech B

I have had python2.6 for a while and have un0installed and re-installed it several times. Now when I right click on some source code the option to open with the IDLE is gone. I have tried "open with" but that doesn't work either. I'm on Windows 7 Home.

Member Avatar for Tech B
0
186

The End.