Hello,I've been trying to get myself to learn using pygame. I have created some things but I still need help of examples before I can do it myself but I always run into trouble.On this website I saw a lot of great info regarding pygame:
http://www.ida.liu.se/~ETE257/timetable/LecturePythonPygame.h
Hello,With the time module and sleep(60)?http://www.python.org/doc/2.3.5/lib/module-datetime.html
sleep(
secs)
Suspend execution for the given number of seconds. The argument may
be a floating point number to indicate a more precise sleep time.
The actual suspension time may be less than that re
I've been using python wih PIL to create some buttons (automatically inside my program). The following code works and creates a PNG 70x70 with the letter 'p' inside.#!/usr/bin/pythonimport os, sysimport Image, ImageFont, ImageDraw
image = Image.new('RGBA',(70,70),(0,0,0))ifo = ImageFont.truetype("a
danny: my apologies for sending this to your email instead of the list!!
(There I was looking at the list going: WTF DOES IT TAKE SO LONG when
it hit me...).
*cuts in* No I don't :-)
With this:
class MyListOfNumbers:
def __init__(self, data):
self.data = data
def __iter__(self):
On 1/17/06, Jon Moore <[EMAIL PROTECTED]> wrote:
> Hi
>
> I hope someone can help me!
>
> I am currently learning Python using a book by Michael Dawson. In one of the
> exercises I have to right a program that will guess a number chosen by the
> user.
>
> It is partly working, however it does not s
Hmm, a very newby question but I never had to deal with escaping spaces etc.I want to read a directory with spaces in it and it errors out (because of the space).I need to escape it with a \ I guess. I saw alot about that on some websites but they all talk about why and how you escape and not what
Why does this: >>> import webbrowser >>> webbrowser.open('http://www.google.com")give me this: run-mozilla.sh: Cannot execute /opt/firefox/mozilla-firefox-bin.
Is this bacause 'webbrowser' does not know about the identification of 1.5?(I do not want to do it like this: >>> import os
That (mosttimes) is a setting in your webcamsoftware and doesn't require coding.WimOn 1/22/06, johnny` walker <
[EMAIL PROTECTED]> wrote:i was wondering if there was a way to automatically take a picture from my webcam every oh say 5 minutes?
is there anyway of doing this (im very new to progr
Excellent guide. I bookmarked it :-) because I plan to use it alot.Oh, how much work (in hours) did it take it to translate your website? WimOn 1/22/06,
Alan Gauld <[EMAIL PROTECTED]> wrote:
I've just uploaded the completed tutoroial topic on OS access.It covers most of the common questions asked
Saves me ordering the book :-)
I saw it on bol.com together with another of your books.
Those hours is too much for me otherwise you'd have a Dutch version too :-)
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
LOL!
Did you know I actually thought "wtf and a book about coding and a
book about hypnotism? WOW".
:D :D :D
Well I like books cuz it's easier to carry around inside trains and busses ;)
Wim
On 1/23/06, Alan Gauld <[EMAIL PROTECTED]> wrote:
> > Saves me ordering the book :-)
> > I saw it on b
Thank you!*opens manual again*WimOn 1/26/06, Orri Ganel <[EMAIL PROTECTED]> wrote:
Rinzwind wrote:
In basic I can use SGN to get back -1, 0, +1 if a number
is <0, 0, >0.
I searched on the web for a bit but sgn and sign give me way too many
discussions about Decimals. pyt
In basic I can use SGN to get back -1, 0, +1 if a number is <0, 0, >0.I searched on the web for a bit but sgn and sign give me way too many discussions about Decimals. python.org
with numbers/digits doesn't tell about a function.Maybe Python uses a different name for it so I am not looking for t
at one :-)
>
> Alan G.
Glad I could help :=)
On 1/26/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Orri Ganel wrote:
> > Rinzwind wrote:
> >
> >> In basic I can use SGN to get back -1, 0, +1 if a number is <0, 0, >0.
> > Well, the cmp() function does th
On 1/27/06, Alan Gauld <[EMAIL PROTECTED]> wrote:
> Orri,
>
> > Eh you mean to say that in next Python versions someone could decide
> > to change cmp(x,0) to another meaning? I bet my countryman (I'm from
> > Holland too ;-) ) will veto that! Or else I'll pay him a visit :D
>
> Its not another mea
On 1/27/06, Wolfram Kraus <[EMAIL PROTECTED]> wrote:
> Rinzwind wrote:
> > In basic I can use SGN to get back -1, 0, +1 if a number is <0, 0, >0.
> > I searched on the web for a bit but sgn and sign give me way too many
> > discussions about Decimals. py
Why would that be any different under Linux?
sys.argv[0]
Wim
On 1/31/06, Hans Dushanthakumar <[EMAIL PROTECTED]> wrote:
> Under WinXP, the variable
> sys.argv[0] holds the script file name (including the path). Not sure,
> but it may work the same under Linux as well.
>
>
> -Original Message
I'd use a database if I was you.
Install for instance MYSQL or MudBase or something like that and (if
need be use Python) to insert the lines into the database. Only
storing unique lines would be failry easy.
Other sollution (with the usage of Python):
If you must use Python I'd suggest making new
Chris or Leslie Smith: sorry wrong addess :*(
This bit l[:]=l[-1:]+l[0:-1] I think is VERY elegant. When I saw this
in your post I tought: DUH.
I did the same with 1 line more but I am still new to python ;)
Regarding the rest of the 'aside'.
What is the reasoning behind this:
###
>>> l=range(
On 2/3/06, Chris or Leslie Smith <[EMAIL PROTECTED]> wrote:
> Rinzwind wrote:
> | Well Chris or Leslie Smith.
> |
> | This bit l[:]=l[-1:]+l[0:-1] I think is VERY elegant. When I saw this
> | in your post I tought: DUH.
> | I did the same with 1 line more but
On 2/3/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
> On 2/3/06, Chris or Leslie Smith <[EMAIL PROTECTED]> wrote:>>Others could give you a really good answer. I am a BASIC/FORTRAN writer
>>myself, and getting used to the *object* orientation of python took a little
>>while, but after you get the ha
On 2/5/06, Bian Alex <[EMAIL PROTECTED]> wrote:
How can I get a string from a random file.
For Example:
Del ete On : CopyOwner : BnPersonalized: 5PersonalizedName : My Documents
I want to get the string after 'Owner' ( In example is 'Bn')
'import re' ?
Pls help.h
When you code with Python there's only 1 editor Boa Constructor Even the name owns any other editor :-)http://boa-constructor.sourceforge.net/
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Ubuntu Linux does:
[EMAIL PROTECTED]:~$ ls -v
Desktop GDM-DarkGno.tar.gz foktopicstart test.py~
Examples Muziek foktopicstart~
[EMAIL PROTECTED]:~$Here's a copy of a complete ls http://www.mediacollege.com/cgi-bin/man/page.cgi?topic=lsOn my system it's also included in both the
24 matches
Mail list logo