From sanyotelefon at gmail.com Fri May 6 10:32:33 2011 From: sanyotelefon at gmail.com (Steve) Date: Fri, 6 May 2011 11:32:33 +0300 Subject: [Idle-dev] Clear Screen feature for IDLE Message-ID: Hi, I think it would be awesome to have a "clear screen" feature in IDLE. In the forums, they suggest this: def clear(): for i in range(60): print But it places the cursor in the end of the screen, I would like the cursor in the beginning of the window, just like when i start the IDLE. Best regards, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From roger.serwy at gmail.com Sat May 7 15:16:36 2011 From: roger.serwy at gmail.com (Roger Serwy) Date: Sat, 07 May 2011 08:16:36 -0500 Subject: [Idle-dev] Clear Screen feature for IDLE In-Reply-To: References: Message-ID: <4DC54634.4020701@gmail.com> Hi Steve, An extension exists to do exactly what you want. Check out: http://bugs.python.org/issue6143 Cheers, Roger On 05/06/2011 03:32 AM, Steve wrote: > Hi, > > I think it would be awesome to have a "clear screen" feature in IDLE. In the > forums, they suggest this: > > def clear(): > for i in range(60): > print > > But it places the cursor in the end of the screen, I would like the cursor > in the beginning of the window, just like when i start the IDLE. > > Best regards, > > Steve > > > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmdarlack at gmail.com Wed May 18 16:30:21 2011 From: jmdarlack at gmail.com (James Darlack) Date: Wed, 18 May 2011 10:30:21 -0400 Subject: [Idle-dev] Print does not work. Message-ID: Hello, I installed version 3.2 TK Version 8.5 on an XP system. Simple commands such as a 1+1 and others work OK. However, when I enter print "hello/n", I get the error message. I think there is a path or environmental name that is not set. Can you advise me how to fix this problem? >>> print "hello World!" SyntaxError: invalid syntax >>> python -v Traceback (most recent call last): File "", line 1, in python -v NameError: name 'python' is not defined >>> python -V Traceback (most recent call last): File "", line 1, in python -V NameError: name 'python' is not defined -- James (Jim) Darlack -------------- next part -------------- An HTML attachment was scrubbed... URL: From kb1pkl at aim.com Mon May 23 04:40:30 2011 From: kb1pkl at aim.com (Corey Richardson) Date: Sun, 22 May 2011 22:40:30 -0400 Subject: [Idle-dev] Print does not work. In-Reply-To: References: Message-ID: <4DD9C91E.5000800@aim.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/18/2011 10:30 AM, James Darlack wrote: > Hello, > > I installed version 3.2 TK Version 8.5 on an XP system. Simple commands > such as a 1+1 and others work OK. However, when I enter print "hello/n", I > get the error message. I think there is a path or environmental name that > is not set. Can you advise me how to fix this problem? > >>>> print "hello World!" > SyntaxError: invalid syntax >>>> python -v > Traceback (most recent call last): > File "", line 1, in > python -v > NameError: name 'python' is not defined >>>> python -V > Traceback (most recent call last): > File "", line 1, in > python -V > NameError: name 'python' is not defined Alright, you have two problems, none of them related to IDLE. First off, the syntax for print in python 3 is print(string). Second, you were trying to run shell commands from IDLE's python interpreter, which doesn't work. You may be interested in the tutor list (tutor at python.org) for basic questions. - -- Corey Richardson -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQEcBAEBAgAGBQJN2ckeAAoJEAFAbo/KNFvphwMIAI4H4fy0W3hZW1YQtvnoC8/O wmJeOvc+GnXVgfdn3+QPfPJhEQJOKcKFnquF/BSdT9prnXPaoNreJCl/EF/H3xba JMKXQL2xkdRAwDUDrgw0a1g6BDMDBqGxmbG1rr49JW1JoXIKfcsL+tngYB1tBGT2 B6eOQL2z9Bj/aBEBsgXFYhO3RnkdqQHMTtRCNzJEtaibDFfIdiSyzQI7QmUYpcFq K6RHPQpsSSW8yCVlkVdjJSSCj3NkvBtNd6968aeJj3D49QL4KBkpxn5wKMPuEwVn qj0s7jgpez3hxaPw9TdwO5BRg0mZsPUPxa8w/uNsenZUQ0/HGtns9QwJSi6io/k= =Vma2 -----END PGP SIGNATURE----- From akekhofananaye at yahoo.co.uk Tue May 24 17:12:30 2011 From: akekhofananaye at yahoo.co.uk (SKHUMBUZO ZIKHALI) Date: Tue, 24 May 2011 16:12:30 +0100 (BST) Subject: [Idle-dev] Dealing with image related code which cannot run Message-ID: <479219.35470.qm@web24003.mail.ird.yahoo.com> Hi: I am learning Python on my own using a " Guide to Programming with Python" book.?Author of the book is Micheal?Dawson and I am using version 2.3.5 of python. ?When I try to run the code?I do?not get required results. The picture could not be loaded. I get trackback message regarding undefined module.The example from the book is as follows: from liveswires import games games.init(screen_width = 640, screen_height = 480, fps = 50) wall_image = games.load_image("wall.jpg", transparent = False) games.screen.background = wall_image games.screen.mainloop() Can anyone please assist me. Thank you Sikhumbuzo -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Tue May 24 19:21:41 2011 From: tjreedy at udel.edu (Terry Reedy) Date: Tue, 24 May 2011 13:21:41 -0400 Subject: [Idle-dev] Dealing with image related code which cannot run In-Reply-To: <479219.35470.qm@web24003.mail.ird.yahoo.com> References: <479219.35470.qm@web24003.mail.ird.yahoo.com> Message-ID: On 5/24/2011 11:12 AM, SKHUMBUZO ZIKHALI wrote: > Hi: > I am learning Python on my own using a " Guide to Programming with > Python" book. Author of the book is Micheal Dawson and I am using > version 2.3.5 of python. When I try to run the code I do not get > required results. The picture could not be loaded. I get trackback > message regarding undefined module.The example from the book is as follows: > from liveswires import games > games.init(screen_width = 640, screen_height = 480, fps = 50) > wall_image = games.load_image("wall.jpg", transparent = False) > games.screen.background = wall_image > games.screen.mainloop() This list is about development of IDLE. You post to python-list was the proper place for this question, and I believe you got a solution there. -- Terry Jan Reedy