Re: [Tutor] __init__.py

2005-05-23 Thread Alan G
HI Joseph, > I've seen many (python) "plugins" (some located in site-packages [windows > here]) with the name __init__.py. init.py is the file that controls the behaviour of python packages - that is collections of modules used as a single entity. Read the python docs for the fine detail, but e

Re: [Tutor] Checking and showing all errors before of exit

2005-05-23 Thread Jonas Melian
Kent Johnson wrote: > >>Is there any way of checking all possible errors, show you all error >>messages, and then exit. > > I don't understand your question. Can you give an example of what you would > like to do? > The idea was check all exceptions before of exit. I made it :) flag_error = Fa

Re: [Tutor] Checking and showing all errors before of exit

2005-05-23 Thread Kent Johnson
Jonas Melian wrote: > Kent Johnson wrote: > >>>Is there any way of checking all possible errors, show you all error >>>messages, and then exit. >> >>I don't understand your question. Can you give an example of what you would >>like to do? >> > > The idea was check all exceptions before of exit.

[Tutor] Davlib and HTTP Authentication

2005-05-23 Thread Rik Wade
Would anyone on the list with some knowledge of working with davlib.py (http://www.lyra.org/greg/python/) be able to advise regarding use of the library with a Dav server (apache2 with mod_dav) that is configured to require HTTP Basic Authentication? Specifically, I have calls for davlib.

[Tutor] clock.py

2005-05-23 Thread Feziwe Mpondo
clock.py,problem is to get the last two digits to be random.her's what i tried from time import time,ctime prev_time = "" while(1): the_time = ctime() if (prev_time != the_time): print "The time is :",ctime(time()) prev_time = the_time guess = 0 number = 1-60 while guess != number

Re: [Tutor] clock.py

2005-05-23 Thread Nick Lunt
Feziwe Mpondo wrote: >clock.py,problem is to get the last two digits to be random.her's what i >tried >from time import time,ctime >prev_time = "" >while(1): >the_time = ctime() >if (prev_time != the_time): > print "The time is :",ctime(time()) >prev_time = the_time >guess = 0 >nu

[Tutor] Filtering Spreadsheet Data

2005-05-23 Thread Luke Jordan
Hi All, I have several frighteningly cumbersome reports to review at my new job. I would like to write a python program to help me with my analysis. The goal of the program is to filter out information that doesn't meet certain requirements and print relevant results back to a legible report that

[Tutor] passing variables between frames?

2005-05-23 Thread Jeff Peery
Hello, I am having trouble with passing variables between frames (Frame1 and Dialog1).  I'm using wxpython to write an application. when I run my application the parent frame appears and within the parent frame I can assign values to variables.  I then have a button that launches a child dialog.  I

[Tutor] Calendar Combo Box

2005-05-23 Thread Alberto Troiano
Hey everyone Is there a built-in calendar combo box as in Visual Basic? Can anyone point me in the right direction? Thanks in advanced Alberto ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] passing variables between frames?

2005-05-23 Thread Kent Johnson
Jeff Peery wrote: > Hello, I am having trouble with passing variables between frames (Frame1 > and Dialog1). I'm using wxpython to write an application. when I run my > application the parent frame appears and within the parent frame I can > assign values to variables. I then have a button tha

[Tutor] better resolution on time.sleep()?

2005-05-23 Thread Roger Merchberger
I'm running an application that has a polling loop to check a serial port for certain signals, and on my laptop I can get about 6700 samples per second, which (of course) consumes 100% CPU; which may impact battery life. BTW, I'm running Python 2.2.2 on my laptop... not had a need to upgrade yet

Re: [Tutor] better resolution on time.sleep()?

2005-05-23 Thread jfouhy
Quoting Roger Merchberger <[EMAIL PROTECTED]>: > I really only need between 500 and 1000 samples per second, but as the > smallest sleep available normally is time.sleep(.01) -- which brings my > samples/sec to a nice 100; but I need it a little faster. Where did you find that out? > 2) will u

[Tutor] Simple password generation

2005-05-23 Thread Trey Beck
Hi. First post. I'm trying to (more or less) copy the functionality of quepasa (http://quepasa.sourceforge.net), a simple password generation script that builds passwords from a combination of a passphrase and another string (like a domain name). If you enter the same passphrase and string,

Re: [Tutor] better resolution on time.sleep()?

2005-05-23 Thread Roger Merchberger
Rumor has it that [EMAIL PROTECTED] may have mentioned these words: >Quoting Roger Merchberger <[EMAIL PROTECTED]>: > > > I really only need between 500 and 1000 samples per second, but as the > > smallest sleep available normally is time.sleep(.01) -- which brings my > > samples/sec to a nice 100;

Re: [Tutor] Filtering Spreadsheet Data

2005-05-23 Thread John Fouhy
Luke Jordan wrote: > I have several frighteningly cumbersome reports to review at my new > job. I would like to write a python program to help me with my > analysis. The goal of the program is to filter out information that > doesn't meet certain requirements and print relevant results back to > a

Re: [Tutor] better resolution on time.sleep()?

2005-05-23 Thread Roger Merchberger
Rumor has it that Roger Merchberger may have mentioned these words: Yea, yea, I'm replying my own message you'll see why later! ;-) >Rumor has it that [EMAIL PROTECTED] may have mentioned these words: > >I just did some experimenting ... I am running ActiveState Python 2.4.1 > under > >Wind

Re: [Tutor] passing variables between frames?

2005-05-23 Thread Alan G
> want to access the values from the parent frame in the dialog. > for example say I had a listbox in the parent frame and I choose > the first entry 'a' from the list. I then launch the child > dialog and I want to put the value of the selection from the > list box into a text field - when I