Re: python GUIs comparison (want)

2006-10-25 Thread Douglas Soares de Andrade
Stephen Eilert escreveu:
> BartlebyScrivener wrote:
>   
>> Well, I am woefully unqualified to speak to the general state of Python
>> gui frameworks, but I am in a similar situation as the OP, i.e., a
>> beginner looking to TRY some easy gui programming in Python. Not being
>> a computer science person, just an amateur scripter, I tend to learn
>> best from lots of examples.
>>
>> With all of that as background, I downloaded the latest wxPython demos
>> and docs yesterday. I suggest that the OP do the same. The demo.py
>> program is an amazing piece of work. It's loaded with specific examples
>> which allow you to view the frame or dialog etc, and then look behind
>> it to see the code used to create it.
>>
>> rd
>> 
>
>
> You can also download wxGlade and ask it to generate the code for you.
> You just have to layout the components the way you want it, wxGlade
> does the rest. Even though there are tons of wxWidgets components it
> does not support, you can put something as a placeholder and just
> replace the code later.
>
> For looks, speed, ease of use (even though it is not Pythonic),
> platform compatibility and use of native widgets, my vote goes to
> wxPython. If you don't mind adding another layer (as I doubt the
> runtime performance suffers much - if at all), there is dabo.ui (thanks
> to whoever pointed it out to me).
>
> PyQT looks good... under KDE, alien under Win32.

PyQt4 is already out and trust me... Is it great :o)

Phil is doing a great job with it and Detlev (Eric3/4 developer) already 
released some snapshots of eric4, so the windows python users can expect 
a great python enviroment in the future.
>  PyGTK looks good under
> Gnome, and acceptable on Win32, even if their widgets do not always act
> as Win32 users would expect.
>
>   

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python Jogos

2006-11-09 Thread Douglas Soares de Andrade
Em Quarta 08 Novembro 2006 13:29, [EMAIL PROTECTED] escreveu:
> Jogo da velha
> Jogo do galo
> Codigos em python kem me arranja

> Please excuse me for talking in portuguese here, just want to show the 
better place for Manelito to ask this.

Olá Manelito,

O idioma usado nessa lista é o inglês, caso não se sinta a vontade em fazer 
pergutas em inglês, favor perguntar na lista do grupo pythonbrasil.

Acesse o site aí: www.pythonbrasil.com.br

Até

-- 
Douglas Soares de Andrade
msn: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
Quote: Real programmers don't die, they just GoSub and Return.
-- 
http://mail.python.org/mailman/listinfo/python-list


Binary numbers

2005-06-07 Thread Douglas Soares de Andrade
Hi !

How to work with binary numbers in python ? Is there a way to print a number 
in its binary form like we do with oct() or hex() ?

Im doing a project that i have to work with binaries and i tired of convert 
numbers to string all the time to perform some operations.

I searched about it in many places like python.org and google, but not found 
anything useful.

Thats why im asking this.

And another question... if python has not a way to do this, why i let me use 
oct(), hex() and not bin() ?

Thanks for the help !

-- 
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
UnilesteMG - www.unilestemg.br
ICQ, MSN = 76277921, douglas at tuxfamily.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Binary numbers

2005-06-07 Thread Douglas Soares de Andrade
Hi !

Pardon me, but what itoa has to do it the history ?

See ya !

Em Quarta 08 Junho 2005 00:34, Dan Bishop escreveu:
> Douglas Soares de Andrade wrote:
> > Hi !
> >
> > How to work with binary numbers in python ? Is there a way to print a
> > number in its binary form like we do with oct() or hex() ?
> >
> > Im doing a project that i have to work with binaries and i tired of
> > convert numbers to string all the time to perform some operations.
> >
> > I searched about it in many places like python.org and google, but not
> > found anything useful.
>
> Search for "itoa".

-- 
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
UnilesteMG - www.unilestemg.br
ICQ, MSN = 76277921, douglas at tuxfamily.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Binary numbers

2005-06-08 Thread Douglas Soares de Andrade
Hi!

Em Quarta 08 Junho 2005 09:38, Guyon Morée escreveu:
> Don't know if this is what you mean, but:
>
> Binary to decimal:
> >>> bin_num = '11011'
> >>> int(bin_num, 2)
>
> 267

Dont know this way of using it. Thanks for the teachings :)

See ya !

-- 
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
UnilesteMG - www.unilestemg.br
ICQ, MSN = 76277921, douglas at tuxfamily.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: need some cgi help please

2005-06-08 Thread Douglas Soares de Andrade
Hi !

Im a python begginer, but...

> form = cgi.FieldStorage()
> DataRecord = form['DataTime'].value
> Customer = form['CustName'].value # should be automatically filled in
>

Can you try this ?

print "Content-Type: text/html\n\n"
print

WorkingFile = 
open("/var/www/stretch/web_root/SidCrops/"+Customer+"/"+DataRecord,"r")

for line in WorkingFile:
print line

WorkingFile.close()

> here is the error:
> WorkingFile undefined, builtin open = , Customer =
> 'tenderloin', DataRecord = 'Tue Jun 7 20:13:35 2005.txt'
>
> IOError: [Errno 2] No such file or directory:
> '/var/www/stretch/web_root/SidCrops/tenderloin/Tue Jun 7 20:13:35
> 2005.txt'
>   args = (2, 'No such file or directory')
>   errno = 2
>   filename = '/var/www/stretch/web_root/SidCrops/tenderloin/Tue Jun
> 7 20:13:35 2005.txt'
>   strerror = 'No such file or directory'

This files 

'/var/www/stretch/web_root/SidCrops/tenderloin/Tue Jun 7 20:13:35 2005.txt'

exists ?

See the spaces in the file...

-- 
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
UnilesteMG - www.unilestemg.br
ICQ, MSN = 76277921, douglas at tuxfamily.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: circular import Module

2005-06-08 Thread Douglas Soares de Andrade
Hi !

> Circular import does not work on module level, but you can
> import the module in a method:
>
> file1.py:
> import file2
> 
>
>
> file2.py:
> # import file1 # Does not work!
> def foo():
> import file1 # Does work

Cool idea !

It works on local namespaces, wich dont cause trouble to the whole program.

+1


-- 
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
UnilesteMG - www.unilestemg.br
ICQ, MSN = 76277921, douglas at tuxfamily.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tabnanny?

2005-06-08 Thread Douglas Soares de Andrade
Hi Anna !

Please post your code, so we can take a look to see what is happening.

See ya !

Em Quarta 08 Junho 2005 23:36, Anna M. escreveu:
> Hello, i am very new to this.  Only heard of python a week ago and have
> never posted before anywhere.  But I am trying to rewrite a program that I
> made in C++ in Python, a radixSort I did as a school project.  I get a
> Tabnanny Tokenizing Error that says Token Error: EOF in multi-line
> statement.  I gather from the internet that it means I have a tab-error.  I
> just can't seem to find it.  Is this something you can help me with?  Could
> I post my code here and you could look at it or is that a bit to much ;)
>
> Many thanks,
>
> Anna

-- 
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
UnilesteMG - www.unilestemg.br
ICQ, MSN = 76277921, douglas at tuxfamily.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tabnanny?

2005-06-08 Thread Douglas Soares de Andrade
Hi Anna !

>     idx = idxLargest(data, len(data)

In this line we have a missing ")", for me, this was the problem.

Anyway, 

Check this line too:

passes = len(max) + 1

It is giving me an error.

See ya !

-- 
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
UnilesteMG - www.unilestemg.br
ICQ, MSN = 76277921, douglas at tuxfamily.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: smtpd module

2005-06-09 Thread Douglas Soares de Andrade
Hi Chad !

I dont know how to use smtpd, but... why not use Twisted ?

See ya !

Em Quinta 09 Junho 2005 21:13, Hughes, Chad O escreveu:
> No, I know how to use the smtplib module and I can send email through
> that.  However what I want is a the ability to set up a very simple mail
> server with python, for some tests that I need to run that just prints
> out the message to the standard out and disregards the message.  The
> smtpd module seems to provide this ability via the DebuggingServer.
> According to the documentation that is provided with python the:
>
> class DebuggingServer( localaddr, remoteaddr)
>   Create a new debugging server.
>   Arguments are as per SMTPServer.
>   Messages will be discarded, and printed on stdout.
>
> Unfortunately, this does not tell me how to use it.  I cannot find any
> examples on the web.  For that matter, I cannot find any other
> documentation anywhere.  Has anyone ever used ether the SMTPServer
> object or the DebuggingServer object?  If so, I would appreciate very
> much an example use case.
>
> Thanks,
> Chad
>
> -Original Message-
> From: Ivan Shevanski [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 09, 2005 2:03 PM
> To: python-list@python.org
> Cc: Hughes, Chad O
> Subject: RE: smtpd module
>
>
> So youre wondering how to send mail in python? I have a lot of examples
> if
> you want the smtp module. I don't have anything for anything other than
> the
> smtp module.
>
> -Ivan
>
> _
> Express yourself instantly with MSN Messenger! Download today - it's
> FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-- 
Douglas Soares de Andrade
http://douglasandrade.cjb.net - dsa at unilestemg.br
UnilesteMG - www.unilestemg.br
ICQ, MSN = 76277921, douglas at tuxfamily.org

-- 
http://mail.python.org/mailman/listinfo/python-list