Re: [Tutor] Tkinter mainloop()

2010-07-08 Thread Francesco Loffredo
Il 07/07/2010 9.11, Alan Gauld wrote: "Francesco Loffredo" wrote ... What's the difference between the two methods? Its a little bit subtle but I believbe update() updates all widgets whereas update_idle_tasks will only update those widgets that have changed since the last update. In a co

Re: [Tutor] differences between mmap and StringIO

2010-07-08 Thread Christopher King
Well, I would just use the builting function open. I think Nick said in the beggining. Or, I would use the module I created. It's a file object, with the property file_txt. Unlike the other modules which you have to use read and write methods, I made a method which allows you to manulipulate like a

Re: [Tutor] Django Read

2010-07-08 Thread Huy Ton That
I've went through the djangobook myself, and found it quite readable. This would be my recommendation as well. Be sure to read the sidebar comments; if you ever feel stuck, someone else may have addressed the question/answer for you! -Lee On Thu, Jul 8, 2010 at 9:31 AM, Jeff Johnson wrote: > O

Re: [Tutor] Having a return when subprocess.Popen finishes

2010-07-08 Thread Payal
On Thu, Jul 08, 2010 at 09:04:54AM -0400, Paul VanGundy wrote: > Hi All, > > I'm trying to get data from subprocess.Popen. To be specific, I am > trying to read a ping echo and take the output and assign it to a > variable like below: > > ping = subprocess.Popen("ping -c 5 %s" % (server), > stdou

Re: [Tutor] Having a return when subprocess.Popen finishes

2010-07-08 Thread Nick Raptis
subprocess.Popen is a class, and as such it returns an object which can do a lot of stuff besides just reading the output. What you want to do here is using it's communicate() method as such: output, errors = ping.communicate() Also, there is a quicker way, I think from version 2.7 forward: u

Re: [Tutor] Django Read

2010-07-08 Thread Jeff Johnson
On 07/08/2010 06:06 AM, Nick Raptis wrote: There actually aren't that many books on django around yet which is a pity. You should definitely read "The django book": http://www.djangobook.com/en/2.0/ either on the online version on that link, or it's printed counterpart (yes, it's really the sam

[Tutor] Having a return when subprocess.Popen finishes

2010-07-08 Thread Paul VanGundy
Hi All, I'm trying to get data from subprocess.Popen. To be specific, I am trying to read a ping echo and take the output and assign it to a variable like below: ping = subprocess.Popen("ping -c 5 %s" % (server), stdout=subprocess.PIPE, shell=True) However, when I run the command the output that

Re: [Tutor] Django Read

2010-07-08 Thread Nick Raptis
There actually aren't that many books on django around yet which is a pity. You should definitely read "The django book": http://www.djangobook.com/en/2.0/ either on the online version on that link, or it's printed counterpart (yes, it's really the same book): http://www.amazon.com/Definitive-G

Re: [Tutor] Django Read

2010-07-08 Thread Serdar Tumgoren
Python Web Development With Django has a good primer on Python (in general and as it relates Django), along with a nice sampling of projects (creating a basic CMS, using Ajax in an application, creating a Pastebin site). You can learn about Django best practices and get a taste for some related to

[Tutor] Django Read

2010-07-08 Thread Dipo Elegbede
Hi all, I have done a little basic on python and have to start working on a major django platform. I'm starting new and would like recommendations on books I can read. Kindly help me out. I want to get my hands dirty as fast as I can so that I can be part of the project. Thanks and Best regards,

Re: [Tutor] newbie to gui programming

2010-07-08 Thread Nick Raptis
Thanks a lot for the mails all of you. Someone commented that wxpython occassionally shows it C/C++ roots. Will that haunt me cos' I have zero knowledge of C/C++. That would be me, sorry about that, didn't mean to confuse you further. Well, think it this way, if you have zero knowledge of C,

Re: [Tutor] newbie to gui programming

2010-07-08 Thread Noufal Ibrahim
Payal writes: [...] > Thanks a lot for the mails all of you. > Someone commented that wxpython occassionally shows it C/C++ roots. Will > that haunt me cos' I have zero knowledge of C/C++. > > What about py-gtk? Is it more pythonic to learn and hence easy? I've used wx and pygtk and don't reall

Re: [Tutor] newbie to gui programming

2010-07-08 Thread Payal
On Tue, Jul 06, 2010 at 07:48:53PM +0100, Alan Gauld wrote: > Nowadays they are all acceptable looking but wxPython would > be my recommendation, mainly for its support for printing, which > sounds easy but in Guis is surprisingly difficult. wxPython makes > it about as easy as it can be. > Thanks