Re: [Tutor] Hi,every one

2007-06-22 Thread David Heiser
I seldom hear anyone mention "The Quick Python Book" by Daryl Harms and Kenneth McDonald (Manning). It was the book I found most useful when I started programming Python. I still keep it nearby and refer to it occasionally as a familiar memory refresher, even though I have been writing Python cod

[Tutor] Catch event's on my computer

2007-06-22 Thread Flaper87
Hi everybody!! First i have to say that my english may have some mistakes, so i'm sorry if i commit any my question is, How can i catch every event that have been done with the pointer or the keyboard in my computer? I mean, i need to catch every movement of the pointer, what its position is ev

Re: [Tutor] Hi,every one

2007-06-22 Thread Alan Gauld
"Yang Yang" <[EMAIL PROTECTED]> wrote i am a newman for python world Are you new to programming? Or are you just new to python? The answer to that question will affect the answers to the next. 1.what is the best book for python study. Depends on above. If you are brand new to programm

Re: [Tutor] executionable file

2007-06-22 Thread Alan Gauld
"Lucio Arteaga" <[EMAIL PROTECTED]> wrote > Can any body tell me how I can make an executive file from a > file.py? Assuming you are on Windows you can use py2exe but its non trivial to use. (Not hard, just not trivial) But first ask why you need to. I've been using Python for over 10 years now

Re: [Tutor] executionable file

2007-06-22 Thread John Morris
On 6/22/07, Lucio Arteaga <[EMAIL PROTECTED]> wrote: Can any body tell me how I can make an executive file from a file.py? My knowledge of binaries is minimum. So please if you are sending me some method please do not be too sophisticated. Lucio Arteaga On Windows: http://www.py2exe.org/ I

Re: [Tutor] Hi,every one

2007-06-22 Thread Rolando Pereira
Yang Yang escreveu: > i am a newman for python world > > i have some word want to ask > > > 1.what is the best book for python study. > I like Dive into Python. ( http://www.diveintopython.org/ ) > 2.what's is the better IDE for python > That depends on what OS you are. > > Thanks for all

Re: [Tutor] (no subject)

2007-06-22 Thread Jacob S.
Here the same thing >def rock(self): >value = "rock" >computer_guess == random.choice(["scissors", "paper", "rock"]) >def scissors(self): >value = "scissors" >computer_guess == random.choice(["scissors", "paper", "rock"]) > def paper(self): >value

[Tutor] executionable file

2007-06-22 Thread Lucio Arteaga
Can any body tell me how I can make an executive file from a file.py? My knowledge of binaries is minimum. So please if you are sending me some method please do not be too sophisticated. Lucio Arteaga___ Tutor maillist - Tutor@python.org http://mail.p

[Tutor] Hi,every one

2007-06-22 Thread Yang Yang
i am a newman for python world i have some word want to ask 1.what is the best book for python study. 2.what's is the better IDE for python Thanks for all___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] subprocess and launching an editor

2007-06-22 Thread Alan Gauld
"Jason Massey" <[EMAIL PROTECTED]> wrote > gedit launches with a blank file called window1. The python shell > is now > waiting for gedit to exit before it does anything else. > > 2nd console > --- import subprocess subprocess.call('gedit --new-window window2',shell=True) >

Re: [Tutor] Online Rock Paper Sizzors

2007-06-22 Thread Amadeo Bellotti
thank you very much ill start on it right away its just going to be a text based game client cause i want it to work on my old computer Pentium 1 On 6/22/07, Alan Gauld <[EMAIL PROTECTED]> wrote: > From: Amadeo Bellotti <[EMAIL PROTECTED]> > no this isn't a home work assignment. Ok, Just check

Re: [Tutor] subprocess and launching an editor

2007-06-22 Thread Alan Gauld
"Brian van den Broek" <[EMAIL PROTECTED]> wrote > gedit is the default text editor on my ubuntu feisty system, so in > the > first instance, I've tried to do this with gedit. The > subprocess.call: > > >>> subprocess.call("gedit somefilename", shell=True) > You should probably check the VISUAL

Re: [Tutor] subprocess and launching an editor

2007-06-22 Thread Jason Massey
I'm running Feisty as well. I launched python in two separate consoles and tried this: 1st console import subprocess subprocess.call('gedit --new-window window1',shell=True) gedit launches with a blank file called window1. The python shell is now waiting for gedit to exit be

[Tutor] subprocess and launching an editor

2007-06-22 Thread Brian van den Broek
Hi all, I want to have a script launch an editor open to a particular file and wait until that editor has closed before continuing. The aim is to allow the user to make edits to the file, have to script know that the edits are completed, and then make use of the newly saved file contents. gedi

Re: [Tutor] "#!/usr/bin/env python" vs "#!/usr/local/bin/python"

2007-06-22 Thread Scott Oertel
[EMAIL PROTECTED] wrote: > hi list, > > how to choose between "#!/usr/bin/env python" and > "#!/usr/local/bin/python" in the beginning of the script ? > e. > > > > - > > SCENA - Ĺäčíńňâĺíîňî ÁĹÇĎËŔŇÍÎ ńďčńŕíčĺ çŕ ěîáčëíč ęîěóíčęŕöčč č ňĺőíîëîăčč. > http://www.bgscena.com

Re: [Tutor] using shelve

2007-06-22 Thread Reed O'Brien
On Jun 22, 2007, at 7:26 AM, Kent Johnson wrote: > Reed O'Brien wrote: >> have a gander at: >> http://codeidol.com/python/python3/Databases-and-Persistence/ > > That URL points to a (presumably) stolen copy of the book > Programming Python by Mark Lutz. If you like it I hope you will buy > a c

Re: [Tutor] Apple Pie Parser in Python

2007-06-22 Thread Kent Johnson
datulaida ali wrote: > hi, > 1) how to integrate apple pie parser with python?.. any suggestion? Apparently this is a C program. If it includes a library version you might be able to interface with it using the ctypes module. > > 2) how to import or integrate .exe file in python? os.system() or

Re: [Tutor] Online Rock Paper Sizzors

2007-06-22 Thread Alan Gauld
> From: Amadeo Bellotti <[EMAIL PROTECTED]> > no this isn't a home work assignment. Ok, Just checking :-) > Ive never done web programming before i am pretty skilled > in python i dont want an application like on a web browser. OK, That would have been the simplest form of online game but... >

Re: [Tutor] SSH client for python ?

2007-06-22 Thread Kent Johnson
Vladimir Strycek wrote: > Hi all, > > is there any nice ssh module for python ? for example if i wanna to > write script which will connect to e.g 5 linux servers and execute some > commands and at last save this output in file http://article.gmane.org/gmane.comp.python.tutor/40895/ Kent _

[Tutor] Apple Pie Parser in Python

2007-06-22 Thread datulaida ali
hi, 1) how to integrate apple pie parser with python?.. any suggestion? 2) how to import or integrate .exe file in python? tq.. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] using shelve

2007-06-22 Thread Kent Johnson
Reed O'Brien wrote: > have a gander at: > http://codeidol.com/python/python3/Databases-and-Persistence/ That URL points to a (presumably) stolen copy of the book Programming Python by Mark Lutz. If you like it I hope you will buy a copy. http://www.oreilly.com/catalog/python3/index.html They eve

Re: [Tutor] (no subject)

2007-06-22 Thread Luke Paireepinart
Kent Johnson wrote: > Nick Treloar wrote: > >> im not sure why this progrm isnt running properly one of the button wont >> open and it teel me a computer_guess is not defined >> > > Please include the exact error message and traceback when you report > errors, they include much useful in

Re: [Tutor] Online Rock Paper Sizzors

2007-06-22 Thread Kent Johnson
> From: Amadeo Bellotti <[EMAIL PROTECTED]> > > no this isn't a home work assignment. Ive never done web programming > before i am pretty skilled in python i dont want an application like on > a web browser. i want a client that each person can download. honestly i > have no clue where to start

Re: [Tutor] (no subject)

2007-06-22 Thread Kent Johnson
Nick Treloar wrote: > im not sure why this progrm isnt running properly one of the button wont > open and it teel me a computer_guess is not defined Please include the exact error message and traceback when you report errors, they include much useful information. Which button won't open? Your

[Tutor] SSH client for python ?

2007-06-22 Thread Vladimir Strycek
Hi all, is there any nice ssh module for python ? for example if i wanna to write script which will connect to e.g 5 linux servers and execute some commands and at last save this output in file Any idea ? Many thanks Vladimir ___ Tutor maillist

Re: [Tutor] Online Rock Paper Sizzors

2007-06-22 Thread ALAN GAULD
- Original Message From: Amadeo Bellotti <[EMAIL PROTECTED]> To: Alan Gauld <[EMAIL PROTECTED]> Sent: Friday, 22 June, 2007 3:22:18 AM Subject: Re: [Tutor] Online Rock Paper Sizzors no this isn't a home work assignment. Ive never done web programming before i am pretty skilled in pytho

Re: [Tutor] using shelve

2007-06-22 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote >I created a shelf called 'myshelf' and put two objects in it, > a string and a list. When I open the shelf I get: d > {'dir2': '/Users/development/Desktop/RSSReaderApp/RSS.db', > 'dir1': ['.DS_Store', '.localized', 'access the latest version', > 'Python Quick R

[Tutor] (no subject)

2007-06-22 Thread Nick Treloar
im not sure why this progrm isnt running properly one of the button wont open and it teel me a computer_guess is not defined here is my code #NiCk TrEloaR PrOgRaMiNg Co. #scissors paper rock #10/6/07 from Tkinter import* from random import choice class Application(Frame): def __init__(self