Appeal for python developers
Please include "goto" command in future python realeses I know that proffesional programers doesn't like to use it, but for me as newbie it's too hard to get used replacing it with "while", "def" or other commands -- http://mail.python.org/mailman/listinfo/python-list
Re: py2exe
On 3 Mar 2005 11:06:58 -0800, [EMAIL PROTECTED] wrote: > How did we ever live without Google? We used Yahoo (and still using it) -- http://mail.python.org/mailman/listinfo/python-list
how to interrupt time.sleep ?
I have line "time.sleep(60)" in my code How do I cancel waiting 60 seconds if I want to continue with program imediately ? Like "Press some button if you don't want to wait" If it can't be canceled what's the other solution to "wait certain time/or press any button to continue" problem ? -- http://mail.python.org/mailman/listinfo/python-list
How do I make my program start fullscreen ?
os = windows xp How do I make "myprogram.py" start fullscreen at windows command prompt ? Also I made it as "myprogram.exe" with py2exe,but how to start fullscreen ? -- http://mail.python.org/mailman/listinfo/python-list
Re: Font size
On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: > Please help me. > How do you clear the screen and then display a number with an enlarged font > size (about 300). > Adam. To clear screen in windows : #at the beggining of the program import os #when you want to clear the screen os.system("cls") -- http://mail.python.org/mailman/listinfo/python-list
Re: Alternative to raw_input ?
On Sun, 13 Feb 2005 12:08:26 +1000, Nick Coghlan wrote: > Try this: > > print "Hit a key!" > cekaj() > print "Nap time!" > time.sleep(15) > print "Hit another key!" > cekaj() > > with the two different implementations, and see what happens if you hit a key > when the 'Nap Time!' prompt appears. I see the difference now, thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Alternative to raw_input ?
On Fri, 11 Feb 2005 21:38:47 -0500, Peter Hansen wrote: > print prompt > while msvcrt.kbhit(): > msvcrt.getch() > msvcrt.getch() Thanks, it works but without line "print prompt" and also I'm not sure if I should put this function : def cekaj(): while msvcrt.kbhit(): msvcrt.getch() msvcrt.getch() #Or this one, which sounds more logical according to help #kbhit() - Return true if a keypress is waiting to be read. def cekaj(): msvcrt.getch() while msvcrt.kbhit(): msvcrt.getch() It works both ways, not sure which one is right -- http://mail.python.org/mailman/listinfo/python-list
Re: Alternative to raw_input ?
On Fri, 11 Feb 2005 18:00:08 +0100, den wrote: > Did you try this: > > import msvcrt > msvcrt.getch() Yes, that's what I need. Thank you. BTW, sometimes program continues without me pressing any button, why ? -- http://mail.python.org/mailman/listinfo/python-list
Re: Alternative to raw_input ?
On Fri, 11 Feb 2005 16:35:19 +, Simon Brunning wrote: > Err, why? It looks to ugly this way. I want to press any key without ENTER to continue -- http://mail.python.org/mailman/listinfo/python-list
Alternative to raw_input ?
I need something like "Press any key to continue" code for my program. Currently I use : raw_input("Press Enter to continue ") but it's lame. -- http://mail.python.org/mailman/listinfo/python-list
Re: goto, cls, wait commands
OK, thanks all Here's presentation of my advanced programming skills :) import os import time os.system("cls") number = 78 guess = 0 while guess != number: guess = input("Guess number: ") if guess > number: print "Lower" time.sleep(3) os.system("cls") elif guess < number: print "Higher" time.sleep(3) os.system("cls") print "That's the number !" --- BTW, I'm thinking to replace lines "time.sleep(3)" with something like "Press any key to guess again" How do I do that ? Also I wanted to put at the end something like "Do you want to guess again ?" and then "GOTO" start of program, but since there is no such command in Python what are my possible solutions ? -- http://mail.python.org/mailman/listinfo/python-list
goto, cls, wait commands
I've just finished reading Python turtorial for non-programmers and I haven't found there anything about some usefull commands I used in QBasic. First of all, what's Python command equivalent to QBasic's "goto" ? Secondly, how do I clear screen (cls) from text and other content ? And last, how do I put program to wait certain amount of seconds ? If I remeber correctly I used to type "Wait 10" and QBasic waits 10 seconds before proceeding to next command. -- http://mail.python.org/mailman/listinfo/python-list
Python 2.1 - 2.4 differences
I found some e-book about Python 2.1, I want to print it but just to check first if sintax of Python 2.1 is same as 2.4 ? Also does anybody know where can I download any newer Python related e-book, because there isn't any published yet in my country. -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I make Windows Application with Python ?
On Mon, 03 Jan 2005 19:56:10 -0600, Rob Emmons wrote: > I believe also if you want to use MS Visual Studio -- Active State sells > python programming tools that plug into MS Visual Studio if you want to do > that. I've not tried these so I don't know how they work or if they are > any good. Thanks all for very detailed answers. BTW I tried this one but it seems that it doesn't use VS'es visual designer. Also it doesn't have "build" option so it is basicly only usefull to higlight Python syntax. Active Sate Komodo looks like much better choice -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I make Windows Application with Python ?
On Mon, 03 Jan 2005 17:19:22 -0500, Peter Hansen wrote: > What do you mean by "Windows Applications"? I'm running > Python on Windows XP, so every program I write with > Python is a "Windows application" by my definition. Obviously > you are using a different one. > > (And if you just mean "it has a GUI", then my answer is > "I use wxPython with Python". There is also Tkinter, and > other options. Please ask a more specific, detailed question > to get useful answers.) Well, I programmed a little in MS Visual Studio 2003, and there you have Console apllication and Windows application (among others). Windows one is with buttons and other gadgets. So, I want to make applications that doesn't open console to display result, I want to display it into the message box. Also, I want to use that application on the computers where Python isn't installed -- http://mail.python.org/mailman/listinfo/python-list
Re: How do I make Windows Application with Python ?
On Mon, 03 Jan 2005 22:57:22 +0100, Jarek Zgoda wrote: > Close your eyes, see this model-view-controller in your application, > rewrite it in Python using one of its MVC frameworks. > > You see? It's easy, like that! Yes, only if I'd know what you're talking about :( -- http://mail.python.org/mailman/listinfo/python-list
How do I make Windows Application with Python ?
Well that's it, how do I make Windows Application with Python ??? Is there simple way that works 100% ? How can I rework visual design done in VS 2003 to use it for my python program ? -- http://mail.python.org/mailman/listinfo/python-list
Re: How to make executable file ?
On Sun, 02 Jan 2005 21:56:45 +0100, Gian Mario Tagliaretti wrote: > don't be scared when you see the dimension of the files... 1.9 Mb for a console application ?! And is it possible to make Windows application ? I want to display results in windows message box. -- http://mail.python.org/mailman/listinfo/python-list
How to make executable file ?
Just how to make *.exe file from python code ?? I typed this : a, b = 0, 1 while b < 1000: print b, a, b = b, a+b and saved it as pyt.txt Now, how do I make pyt.exe file ??? I want to run it on windows where isn't installed python. -- http://mail.python.org/mailman/listinfo/python-list
Re: What can I do with Python ??
On Sat, 01 Jan 2005 16:03:08 -0500, Mark Nenadov wrote: > What can you do with Python? Just about anything your heart desires. Thanks everybody, I downloaded latest windows version and Python-Docs-2.4 archive. Is that enough for absolute beginner. Is there any e-book, step by step guide ... etc for download, or anything else important what I have to know before I start learning Python ? -- http://mail.python.org/mailman/listinfo/python-list
What can I do with Python ??
Beginners question, but really what can you do with it ? How hard is Python to learn compared with other languages (let's say C#). Can you make fullscreen game with it (for example) ? I've looked at http://www.python.org but nothing concrete there -- http://mail.python.org/mailman/listinfo/python-list