On Thu, 24 Aug 2006, mike viceano wrote:
> hello i need a little help with a common multiple module i am haveing
> problems with the best i can get it is to show the least common multiple i
> think the problem is eather the and command ot the if command
[question cut]
Mike, you asked this ques
So now I have keyPress-b.py. It works well, except that I have to ^C
to quit it.
==
#keyPress-b.py
import msvcrt, time
print \
"""
After pressing Enter to start,
press Space to get first and subsequent measurements of spin.
Use Ctrl+C to quit.
"""
answer = raw_
Alan Gauld has also been trying to help me by direct email. But his suggested
=
import msvcrt
c = 0
while True:
c += 1
if msvcrt.kbhit():
if msvcrt.getch() == 'k':
break
else: continue
print c
didn't work for me eithe
I am having a problem with packaging. I have setup the PYTHONPATH to the core
dir with __init__.py in the sub directories. It all worked as expected - then
I hit a problem :(
I have a module scanDBFs in dir main with a def of getDbfData
The module I am executing is DocViewDoc in QT
DocViewDoc c
At 11:48 AM 8/27/2006, Kent Johnson wrote:
>Blocking I/O is an I/O operation that doesn't return to the caller until
>it completes. In the case of blocking input, the input call (getch() in
>this case) won't return until some data is available. This is not what
>you want - you don't want to press a
Hi all,
I just profiled a little my banner.py.
# PIL_Banner
import Image, ImageFont, ImageDraw
ShowText = 'Python :)'
font = ImageFont.load(r'courier-bold-12.pil')
size = font.getsize(ShowText)
image = Image.new('1', size, 1)
draw = ImageDraw.Draw(image)
draw.text((0, 0), ShowText, font=font)
Dick Moores wrote:
> At 10:55 AM 8/27/2006, Kent Johnson wrote:
>
>> getch is a callable object (it implements __call__()) and is used like a
>> function.
>>
>> If you only want to run on Windows, as your code suggests, just call
>> msvcrt.getch() directly. This is a blocking call - it won't ret
At 10:55 AM 8/27/2006, Kent Johnson wrote:
>getch is a callable object (it implements __call__()) and is used like a
>function.
>
>If you only want to run on Windows, as your code suggests, just call
>msvcrt.getch() directly. This is a blocking call - it won't return until
>a key is pressed. If you
Dick Moores wrote:
> At 09:51 AM 8/27/2006, Kent Johnson wrote:
>
>> Dick Moores wrote:
>>
>>> I'm trying to figure out how to change what a script does while it is
>>> running, by pressing a key, such as "k". Can getch() be used for
>>> this?
>>>
>> Google 'python getch' or see this
I found this mailing list message to be enlightening:
http://mail.python.org/pipermail/python-list/2005-March/273123.html
On 8/27/06, Alberto Troiano <[EMAIL PROTECTED]> wrote:
> I tried that but still the same error. Any other idea?
>
> Rgds,
>
> Alberto
>
>
> 2006/8/25, Alberto Troiano <[EMAIL PR
At 09:51 AM 8/27/2006, Kent Johnson wrote:
>Dick Moores wrote:
> > I'm trying to figure out how to change what a script does while it is
> > running, by pressing a key, such as "k". Can getch() be used for
> > this?
>Google 'python getch' or see this recipe by our very own Danny Yoo:
So now I have
Dick Moores wrote:
> I'm trying to figure out how to change what a script does while it is
> running, by pressing a key, such as "k". Can getch() be used for
> this?
Google 'python getch' or see this recipe by our very own Danny Yoo:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134892
Kay White wrote:
> Hello,
>
> I'm trying to make a program that will wait for a specific file to be
> made by another program, and when that happens it opens and modifies
> that file.
>
> I want my program to run "behind the scenes" so to speak. The user
> will start it, enter the highest number
I'm trying to figure out how to change what a script does while it is
running, by pressing a key, such as "k". Can getch() be used for
this? As a first test:
==
c = 0
while True:
c += 1
if getch() == "k":
break
print c
===
This produces "NameEr
I tried that but still the same error. Any other idea?Rgds,Alberto2006/8/25, Alberto Troiano <[EMAIL PROTECTED]
>:Hi everyoneIt's been a long time since I left Python for .NET 2003, but then again I need it to make an app under Linux Suse 10 and I have a question
I'm trying to put an icon to my win
Hello, I'm trying to make a program that will wait for a specific file to be made by another program, and when that happens it opens and modifies that file. The other program is a commercial game that allows the player to take screenshots. It saves the screenshots in a particular directory,
I have continued to work on making banners:)
Here is a solution with PIL
(http://www.pythonware.com/products/pil/index.htm):
import Image, ImageFont, ImageDraw
ShowText = 'Hi all'
font = ImageFont.load(r'c:\Python24\Lib\site-
packages\enthought\kiva\pil_fonts\courier-bold-10.pil')
size = font
17 matches
Mail list logo