Re: [Tutor] List Box for Web

2008-02-26 Thread Luciano Ramalho
On Wed, Feb 27, 2008 at 2:21 AM, Dinesh B Vadhia <[EMAIL PROTECTED]> wrote: > For my web application, I need a list box with a search capability. An > example is the Python documentation (hit the F1 key under Windows from IDLE) > and specifically the Index list ie. context-sensitive search through

[Tutor] List Box for Web

2008-02-26 Thread Dinesh B Vadhia
I know this isn't the right forum to ask but I'll try as someone might know. For my web application, I need a list box with a search capability. An example is the Python documentation (hit the F1 key under Windows from IDLE) and specifically the Index list ie. context-sensitive search through a

Re: [Tutor] [tutor] Question on multithreading

2008-02-26 Thread Kent Johnson
Varsha Purohit wrote: > Hello, > i have a gui program in wxpython where i am spawning two threads. > one for the mainloop of gui and other for some background tasks. It is unusual to start a new thread for the GUI. Usually the GUI is run in the main application thread. > I have > to stop th

Re: [Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-26 Thread Alan Gauld
"bob gailer" <[EMAIL PROTECTED]> wrote >> i don't really understand that. you are trying to say that the >> tests >> from the online judge are not "exactly good" ? > Yes that's exactly what I'm saying. At least one test case has a > non-decimal character. Which actually makes it a very good tes

Re: [Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-26 Thread bob gailer
Note I cc: [EMAIL PROTECTED] Please do so also so the other tutors can follow the discussion. Andrei Petre wrote: > the theory seems just like mine :) > > your way to implement it looks fine ( although it supports some > optimization :)) > > But: > > - i don't understand : > i = int(s) >

Re: [Tutor] rss feed reader, but having trouble with unicode

2008-02-26 Thread rui
Hello Tom, Try doing this: xml = unicode(xml, encoding, "ignore") elem = ElementTree.fromstring(xml.encode("utf8")) > #do stuff with elem... > > feed.xml = xml > feed.save() > > > Thanks for your time :-) > ___ > Tutor maillist - Tutor@python.o

Re: [Tutor] How do I get GASP

2008-02-26 Thread Kent Johnson
Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Michael Connors" <[EMAIL PROTECTED]> wrote > >> > >> What are you talking about? > > > > This maybe: In which case - download from http://dev.laptop.org/pub/gasp/releases/SOURCES/python-gasp-0.1.1.tar.bz2 - unpack - copy the 'gasp' folder (NOT p

Re: [Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-26 Thread bob gailer
I will share my algorithm just for the heck of it and to see if you see any problem. Underlying theory: Divisible by 15 == divisible by 3 and divisible by 5 If a number is divisible by 3 any rearrangement of its digits is also divisible by 3. Therefore to get the largest number, put the di

Re: [Tutor] How do I get GASP

2008-02-26 Thread Alan Gauld
"Michael Connors" <[EMAIL PROTECTED]> wrote >> >> What are you talking about? > > This maybe: > > https://launchpad.net/gasp-code Yep, that looks more likely. I still can't help though. The downloadds page says no up to date Win installer exists just unzip the source. Alan G ___

[Tutor] rss feed reader, but having trouble with unicode

2008-02-26 Thread Tom
I'm trying to write a little rss feed reader, but having trouble with unicode. I would appreciate some help as I feel I'm going round in circles. Even when the save command works, ElementTree won't or vice-versa. You can see what I've been trying from my commented out lines. I think there is a pro

Re: [Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-26 Thread bob gailer
Andrei Petre wrote: > https://www.spoj.pl/problems/DIV15/ I wrote my own version and submitted it. I got NZEC also. The evidence pointed to a character in the test data other than 0123456789. So I contrived a way to test for this and found that to be true. I don't know what the character is or w

Re: [Tutor] file transfer through serial modem -- pythin code

2008-02-26 Thread Chris Fuller
You probably want to start with PySerial: http://pyserial.sourceforge.net/ But, the details really depend on the application.. what are you talking to at the other end? Do you need a general terminal program? You can probably find xmodem and zmodem libraries, but if you control both ends, roll

[Tutor] file transfer through serial modem -- pythin code

2008-02-26 Thread Govind
Hi All, I am new to python. I want to transfer files over serial modem.so can I have some sample python code or any helpful links so that I can implement it. All help will be highly appreciated. Thanks & Regards, Govind Goyal Adya Systems & Software Pvt. Ltd. 212, IInd Floor, Okhla Industrial E

Re: [Tutor] How do I get GASP

2008-02-26 Thread Michael Connors
> > OK, I'll bite. > What is GASP and why are you asking on a Python mailing list? > > I googled but came up with a mix of anti-smoking devices, > Golf swing improvemt programmes and a small wb site > design outfit among others. > > What are you talking about? This maybe: https://launchpad.net/

Re: [Tutor] How do I get GASP

2008-02-26 Thread Alan Gauld
"Jim Morcobe" <[EMAIL PROTECTED]> wrote > > I'd like to download a copy of GASP to run on Windows XP. Is there > a > simple Windows installer available anywhere so I can do it with > minimal > effort? OK, I'll bite. What is GASP and why are you asking on a Python mailing list? I googled but c

[Tutor] How do I get GASP

2008-02-26 Thread Jim Morcobe
Hi, I'd like to download a copy of GASP to run on Windows XP. Is there a simple Windows installer available anywhere so I can do it with minimal effort? Jim ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [tutor] creating list of tuples

2008-02-26 Thread Alan Gauld
"Varsha Purohit" <[EMAIL PROTECTED]> wrote One small point. > for x in file: >value=0 >tup = () There ia no point in creating an emnpty tuuple. Tuples are immutable so this tuple will simply be thrown away. It doesnm't do much harm, but it does no good either. >