Re: [Tutor] confusing smtp problem

2005-07-21 Thread nephish
sorry i am late on this one didnt get a chance to look at it today, perhaps in the morning i will crack this open thanks guys! On Thu, 2005-07-21 at 15:17 +, nephish wrote: > ok this is what i get when i use host = '10.10.10.04 25' > resourse unavailable > line = self.sock.recv(size,socke

[Tutor] Linux sound control

2005-07-21 Thread Ron Weidner
It's simple, without any bells and whistles. Move the slider up and down to change the volume on your Linux system. Written in Python and Tkinter, this little program should work with any window manager. http://www.techport80.com/soundctrl/sound_ctrl.tgz -- Ronald Weidner http://www.techport80.

Re: [Tutor] hello

2005-07-21 Thread byron
Yes, it is. :-) Byron --- Quoting dina lenning <[EMAIL PROTECTED]>: > is this where i send my questions?? This message was sent using IMP, the Internet Messaging Program. ___ Tutor mail

Re: [Tutor] Microsoft python scripts

2005-07-21 Thread Liam Clarke
That is just awesome, awesome, awesome. Big ups. On 7/22/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: via Dr Dobbs, check out: http://www.microsoft.com/technet/scriptcenter/scripts/python/pyindex.mspxIt's a bunch of short python scripts provided by Microsoft, showing how to usewin32com to do a

Re: [Tutor] New Problems with script

2005-07-21 Thread Hugo González Monteverde
Hi, First of all, try to include the relevan code *inline* instead of attaching. This creates all sort of problems, specially that it prevents the list archive from gracefully displaying your message. You have this: print "#blend { width: 10em; padding: 0; border: 1px solid blac

[Tutor] New Problems with script

2005-07-21 Thread gordnjen
Hello all: I am VERY new at any programming of any sort, so any help would be appreciated. This is the new and improved error message I get when I am trying to run the attached script: Script Error   There was an error with your script and it didn't exit properly.   This was its outp

Re: [Tutor] String slicing from tuple list

2005-07-21 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hi Kent, > > Thanks for you solution, unfortunately, as Luis correctly inferred, I'm > doing computational biology, so my real data is HUGE and I got this error: > > Traceback (most recent call last): > File "stolen.py", line 62, in ? >first, second = zip(nonGenic

[Tutor] Microsoft python scripts

2005-07-21 Thread jfouhy
via Dr Dobbs, check out: http://www.microsoft.com/technet/scriptcenter/scripts/python/pyindex.mspx It's a bunch of short python scripts provided by Microsoft, showing how to use win32com to do all sorts of stuff. Could be a very useful source of examples if you do development on Windows! -- Joh

Re: [Tutor] Send attachment

2005-07-21 Thread Liam Clarke
If it's Outlook, you can use the win32python library to control it via ActiveX/COM+ http://starship.python.net/crew/mhammond/ Here's an example using VB to control Outlook - http://support.microsoft.com/?kbid=220595 The language differs, but the basic principle remains the same. Create an App

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread jfouhy
Quoting Bernard Lebel <[EMAIL PROTECTED]>: > I'm trying to bind an event to the changes made to an OptionMenu. Ie > the user chooses a different item, the rest of the Tk window gets > updated. To repopulate the window, a function would be called by the > binding. > > Any suggestion? The easiest

Re: [Tutor] Efficient word count

2005-07-21 Thread jfouhy
Quoting Jorge Louis De Castro <[EMAIL PROTECTED]>: > I was wondering, and maybe this is because I come from a different > programming language background, but is a word count using len(list) > after a string.split, efficient if there are many words? Or should I > write my own word count for large(

[Tutor] Efficient word count

2005-07-21 Thread Jorge Louis De Castro
Hi there,   I was wondering, and maybe this is because I come from a different programming language background, but is a word count using len(list) after a string.split, efficient if there are many words? Or should I write my own word count for large(ish) blocks of text (500-1000)?   Cheers j

Re: [Tutor] Will a dictionary based method work for this problem

2005-07-21 Thread Srinivas Iyyer
Thanks Danny, I did not think of that at all. I have some experience with postgres. i will do that. thanks --- Danny Yoo <[EMAIL PROTECTED]> wrote: > > > > This is just a simple example, in my list I have > ~40 > > sections and ~10K people (this is repeated number > and > > I do not know

Re: [Tutor] How do I add an argument too...

2005-07-21 Thread Danny Yoo
On Thu, 21 Jul 2005, Joseph Quigley wrote: > optparse.. Can I download that as a module or do I have to download > epython? Hi Joseph, optparse derives from a hird-party library called Optik, so in a pinch, you can probably just use Optik: http://optik.sourceforge.net/ It's also possible

Re: [Tutor] Will a dictionary based method work for this problem

2005-07-21 Thread Danny Yoo
> This is just a simple example, in my list I have ~40 > sections and ~10K people (this is repeated number and > I do not know how many unique persons are there). > > Question to tutor: > > Could any one help me proceed further. > Will a dictionary (key and values ) based method work > for this k

[Tutor] Will a dictionary based method work for this problem

2005-07-21 Thread Srinivas Iyyer
Hello group, I have a problem of classification of data. My data has two columns: Col. A refers section of a office and column B refers to name of the person: Col A Col B Accounts(A/c)Steve A/c Bill A/c Rafael Billing Mike Billing joshua

Re: [Tutor] How do I add an argument too...

2005-07-21 Thread Joseph Quigley
optparse.. Can I download that as a module or do I have to download epython? Thanks, JQ Hugo González Monteverde wrote: > I use optparse wich can take some getting used to in the beginnning, > but it help you easily create very powerful command line options. I is > shipped with th epython

Re: [Tutor] String slicing from tuple list

2005-07-21 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hi, > > I have a list of tuples like this: > > [(1423, 2637),(6457, 8345),(9086, 10100),(12304, 15666)] > > Each tuple references coordinates of a big long string and they are in the > 'right' order, i.e. earliest coordinate first within each tuple, and > eearliest t

Re: [Tutor] String slicing from tuple list

2005-07-21 Thread Luis N
On 21 Jul 2005 20:39:36 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi,I have a list of tuples like this:[(1423, 2637),(6457, 8345),(9086, 10100),(12304, 15666)] Each tuple references coordinates of a big long string and they are in the'right' order, i.e. earliest coordinate first within ea

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread geon
Bernard Lebel wrote: >Hello, > >I'm trying to bind an event to the changes made to an OptionMenu. Ie >the user chooses a different item, the rest of the Tk window gets >updated. To repopulate the window, a function would be called by the >binding. > >Any suggestion? > > >var1 = StringVar() >var1.s

Re: [Tutor] String slicing from tuple list

2005-07-21 Thread Danny Yoo
On 21 Jul 2005 [EMAIL PROTECTED] wrote: > [(1423, 2637),(6457, 8345),(9086, 10100),(12304, 15666)] > > What I want to do is use this list of coordinates to retrieve the parts > of the string *between* each tuple. So in my example I would want the > slices [2367:6457], [8345:9086] and [10100:123

[Tutor] String slicing from tuple list

2005-07-21 Thread cgw501
Hi, I have a list of tuples like this: [(1423, 2637),(6457, 8345),(9086, 10100),(12304, 15666)] Each tuple references coordinates of a big long string and they are in the 'right' order, i.e. earliest coordinate first within each tuple, and eearliest tuple first in the list. What I want to do i

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread Bernard Lebel
Hi Michael, Let say I have a MenuOption, that consists of 3 items. This MenuOption sits on top of the Tkinter window. In the lower part, I have a bunch of widgets (text fields). When the choose a different item from the MenuOption, it would call a function that clears the lower part and repopulat

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread Michael Lange
On Thu, 21 Jul 2005 12:19:00 -0400 Bernard Lebel <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to bind an event to the changes made to an OptionMenu. Ie > the user chooses a different item, the rest of the Tk window gets > updated. To repopulate the window, a function would be called by the

[Tutor] Tkinter event for changing OptionMenu items

2005-07-21 Thread Bernard Lebel
Hello, I'm trying to bind an event to the changes made to an OptionMenu. Ie the user chooses a different item, the rest of the Tk window gets updated. To repopulate the window, a function would be called by the binding. Any suggestion? var1 = StringVar() var1.set( aTables[0] ) oOptionMenu = Opt

Re: [Tutor] Dynamically populate Tkinter OptionMenu with list

2005-07-21 Thread Bernard Lebel
Thanks John. Bernard On 7/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Quoting Bernard Lebel <[EMAIL PROTECTED]>: > > > I have this problem. I build a list of elements, and I never know in > > advance how many or what will be the elements. > > > > I then wish to populate an OptionMenu

Re: [Tutor] confusing smtp problem

2005-07-21 Thread nephish
ok this is what i get when i use host = '10.10.10.04 25' resourse unavailable line = self.sock.recv(size,socket.MSG_PEEK) now if i use host = '10.10.10.04:25' it has all the appearences of having worked, but the email never gets to its destination. h. i tried it the first way because t

Re: [Tutor] confusing smtp problem

2005-07-21 Thread Reed L. O'Brien
nephish wrote: > Sorry about the delay getting back on this one guys, > yeah, i am running a linux machine. > no firewall between here and there (both behind a firewall router) > yeah, sylpheed does send on port 25 > the windows machine has the Merek email server on board. > i would like my scripts

Re: [Tutor] Send attachment

2005-07-21 Thread Ron Weidner
--- Jorge Louis De Castro <[EMAIL PROTECTED]> wrote: > Hello, > > Any ideas how I can use Python and the Windows API > to open a PC's mail client and send an attachment? > The idea is saving some data onto a file and then > invoke the email client (OE or Outlook or whatever > is the default on

[Tutor] Send attachment

2005-07-21 Thread Jorge Louis De Castro
Hello,   Any ideas how I can use Python and the Windows API to open a PC's mail client and send an attachment? The idea is saving some data onto a file and then invoke the email client (OE or Outlook or whatever is the default on the machine) with the recipient's address filled in and the fi

Re: [Tutor] single file .exe

2005-07-21 Thread Kent Johnson
Shantanoo Mahajan wrote: > +++ Jorge Louis De Castro [20-07-05 23:20 +0100]: > | Hello, > | > | Is there a way of creating a Windows .exe from a .py file that does not > involve unzipping several files onto a folder? > | Does someone know of a program that wraps all the files needed into one > s

Re: [Tutor] hello

2005-07-21 Thread Luis N
On 7/21/05, dina lenning <[EMAIL PROTECTED]> wrote: YES...heres my problem  I am a university student..will be a teacher in 2 years hopefully..andhave taken a first year computing course that said it required NO PRIORknowledge, but i am having great difficulty. The students (71 of them) are all co

Re: [Tutor] single file .exe

2005-07-21 Thread Shantanoo Mahajan
+++ Jorge Louis De Castro [20-07-05 23:20 +0100]: | Hello, | | Is there a way of creating a Windows .exe from a .py file that does not involve unzipping several files onto a folder? | Does someone know of a program that wraps all the files needed into one single (non-installable) executable? |

[Tutor] Parsing problem

2005-07-21 Thread Paul McGuire
Liam, Kent, and Danny - It sure looks like pyparsing is taking on a life of its own! I can see I no longer am the only one pitching pyparsing at some of these applications! Yes, Liam, it is possible to create dictionary-like objects, that is, ParseResults objects that have named values in them.