Re: [Tutor] [tutor] threading problem in GUI

2005-09-07 Thread nephish
Pierre Barbier de Reuille wrote: >nephish a écrit : > > >>one more thing. >>if i uncomment the lines >>gtk.threads_enter() >>and >>gtk.threads_leave() >>the whole thing locks up when the function is called. >>the gui, and the thread both lock up. >> >> > >Well, that's just normal. However, w

Re: [Tutor] how to create a generic instance of an object?

2005-09-07 Thread John Burk
-Original Message- From: Danny Yoo [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 06, 2005 6:55 PM To: John Burk Cc: tutor@python.org Subject: Re: [Tutor] how to create a generic instance of an object? Hi John, It sounds like you're trying to do some kind of dynamic linking. Pytho

Re: [Tutor] Making Applets

2005-09-07 Thread Alan G
> I am using Python on an Apple running 10.3, and write scripts as > text > documents which I then call from the Terminal. I am told that the > scripts can > be made into applets and that documents can be dragged and dropped > onto > them. > > Is this the case? How do I do this? Yes you can do

Re: [Tutor] Combining dictionaries

2005-09-07 Thread Eric Walker
On Wednesday 07 September 2005 11:10 am, bob wrote: > I enjoy "philosophical" discussions like this. To help us have common > terminology I present some quotes from dictionary.com: > > --- > bug: > > An unwanted and unintended property of

Re: [Tutor] Combining dictionaries

2005-09-07 Thread bob
I enjoy "philosophical" discussions like this. To help us have common terminology I present some quotes from dictionary.com: --- bug: An unwanted and unintended property of a program or piece of hardware, especially one that causes it t

Re: [Tutor] [tutor] threading problem in GUI

2005-09-07 Thread nephish
Pierre Barbier de Reuille wrote: >nephish a écrit : > > >>one more thing. >>if i uncomment the lines >>gtk.threads_enter() >>and >>gtk.threads_leave() >>the whole thing locks up when the function is called. >>the gui, and the thread both lock up. >> >> > >Well, that's just normal. However, w

Re: [Tutor] [tutor] threading problem in GUI

2005-09-07 Thread Pierre Barbier de Reuille
nephish a écrit : > > one more thing. > if i uncomment the lines > gtk.threads_enter() > and > gtk.threads_leave() > the whole thing locks up when the function is called. > the gui, and the thread both lock up. Well, that's just normal. However, what you should do is to send a signal from your th

Re: [Tutor] [tutor] threading problem in GUI

2005-09-07 Thread nephish
nephish wrote: > Serial1() just call the function ... it will be evaluated and then the > result will be sent to Thread.start ... > > So try: > > Thread.start(Serial) > > >ok, >so far the thread runs fine in the background, but just does not send the >output to the >textb

Re: [Tutor] [tutor] threading problem in GUI

2005-09-07 Thread nephish
Serial1() just call the function ... it will be evaluated and then the result will be sent to Thread.start ... So try: Thread.start(Serial) ok, so far the thread runs fine in the background, but just does not send the output to the textbuffer, and hangs up th

[Tutor] [Fwd: py2exe 0.6.1 released]

2005-09-07 Thread Kent Johnson
I thought this announcement might be of interest here since a frequent question on the list is "How can I build a single-file exe from my Python program?" and until now the answer has been, "You can't." Kent Original Message Subject: py2exe 0.6.1 released Date: Mon, 05 Sep 200

[Tutor] OT - email & imaplib modules

2005-09-07 Thread mailing list
Hi all, Just musing. Even though I'm familiar with imaplib & IMAP, and most of the email modules, I still find them somewhat... obtuse to work with. The IMAP protocol is rather exposed in imaplib, and you have to read RFCs and fiddle to sort the format required for IMAP commands. For an examp

[Tutor] Making Applets

2005-09-07 Thread kim.d
I am a complete beginner with Python, so apologies if this is a silly question with an obvious answer. I am using Python on an Apple running 10.3, and write scripts as text documents which I then call from the Terminal. I am told that the scripts can be made into applets and that documents can

Re: [Tutor] smtp error

2005-09-07 Thread Kent Johnson
Shitiz Bansal wrote: > does this error make sense to anyone? > > Traceback (most recent call last): > File "C:/Documents and > Settings/Administrator/Desktop/lkp.py", line 46, in > -toplevel- > s.sendmail(msg['From'], i, msg.as_string()) > File "C:\Python24\lib\smtplib.py", line 692, in >

Re: [Tutor] smtp error

2005-09-07 Thread Kent Johnson
Danny Yoo wrote: > According to: > > http://www.python.org/doc/lib/SMTP-objects.html > > the second argument to 's.sendmail()' needs to be a list, even if it is a > list of a single element. I'm not positive that this is the bug, but it's > a possible error. The docs are incorrect and the l

Re: [Tutor] threading problem in GUI

2005-09-07 Thread Pierre Barbier de Reuille
Ok, comments inside your code ... nephish a écrit : > Pierre Barbier de Reuille wrote: > >> nephish a écrit : >> >> >>> Pierre Barbier de Reuille wrote: >>> >>> [...] >>> ok, i am still having a little problem understanding. >>> tried it but i don't know if i have things set in the right order.