[Tutor] python packaging systems

2011-02-09 Thread Bill Allen
I have found there are a few systems available to package Python programs as standalone programs for distribution. Do the folks here have any recommendation or comment on any of these? Thanks, --Bill ___ Tutor maillist - Tutor@python.org To unsubscri

Re: [Tutor] PMW combobox won't display properly using X

2011-02-09 Thread Alan Gauld
"Daniel Barnette" wrote However, when I run the app on a Linux box and try to display it back to my Windows box using an X server (like freeXer or XMing), the combobox widget's drop-down menu is squashed all to the left, Thats a pretty specific query about Tkinter and PMW and X servers. I

Re: [Tutor] PMW combobox won't display properly using X

2011-02-09 Thread Emile van Sebille
On 2/9/2011 4:17 PM Daniel Barnette said... Python Mega Widgets Generally speaking, issues with third party packages are best resolved on the package's specific support forum. In this case, try at http://lists.sourceforge.net/lists/listinfo/pmw-general HTH, Emile ___

[Tutor] PMW combobox won't display properly using X

2011-02-09 Thread Daniel Barnette
I've written a Python gui using Python Mega Widgets (PMW) that works beautifully when run natively on Windows or Linux. However, when I run the app on a Linux box and try to display it back to my Windows box using an X server (like freeXer or XMing), the combobox widget's drop-down menu is squashe

Re: [Tutor] list of strings

2011-02-09 Thread Hugo Arts
On Wed, Feb 9, 2011 at 11:56 PM, Shawn Matlock wrote: > Hello All, > > I’m doing something wrong. > This prints a list of data source names: > >     # List all data sources >     dataSourceList = AdminConfig.list('DataSource') # .split(ls) >     if verbose == 'True': >     print 'DEBUG Data So

[Tutor] list of strings

2011-02-09 Thread Shawn Matlock
Hello All, I'm doing something wrong. This prints a list of data source names: # List all data sources dataSourceList = AdminConfig.list('DataSource') # .split(ls) if verbose == 'True': print 'DEBUG Data Source List: ' print dataSourceList DEBUG Data Source List: "Fa

Re: [Tutor] System Monitoring

2011-02-09 Thread Steven D'Aprano
Sean Carolan wrote: Hi, Im fairly new to programming in python, and have a question. Im looking to build a program that monitor's certain things on my Linux system. for instance disk space. What is the best way to monitor a Linux server without using to much resources? Should I execute shell comm

Re: [Tutor] System Monitoring

2011-02-09 Thread de Haan
On Wed, Feb 9, 2011 at 4:18 PM, Sean Carolan wrote: > > Hi, > > Im fairly new to programming in python, and have a question. > > Im looking to build a program that monitor's certain things on my Linux > > system. for instance disk space. What is the best way to monitor a Linux > > server without

Re: [Tutor] System Monitoring

2011-02-09 Thread Sean Carolan
> Hi, > Im fairly new to programming in python, and have a question. > Im looking to build a program that monitor's certain things on my Linux > system. for instance disk space. What is the best way to monitor a Linux > server without using to much resources? > Should I execute shell commands and g

Re: [Tutor] Splitting a string

2011-02-09 Thread Alan Gauld
"tee chwee liong" wrote t> hanks for catching the bug. the code should be: s='11100101' found = False for i,c in enumerate(reversed(s)): if c == '0': print 'Lane fail',i found = True if not found: print 'All lanes PASS' the if not found needs to be indented. No, e

Re: [Tutor] System Monitoring

2011-02-09 Thread de Haan
On Wed, Feb 9, 2011 at 12:35 PM, Steven D'Aprano wrote: > de Haan wrote: > >> On Wed, Feb 9, 2011 at 12:18 PM, Steven D'Aprano > >wrote: >> >> de Haan wrote: >>> >>> Hi, Im fairly new to programming in python, and have a question. Im looking to build a program that monitor's

Re: [Tutor] Splitting a string

2011-02-09 Thread tee chwee liong
> No, it doesn't work. You haven't sufficiently tested it. It tells lies: > > > >>> s='11100101' > >>> found = False > >>> for i,c in enumerate(s): > ... if c == '0': > ... print 'Lane fail',i > ... found = True > ... if not found: print 'All lanes PASS' > ... > All lanes PASS > All lanes PASS >

Re: [Tutor] System Monitoring

2011-02-09 Thread Steven D'Aprano
de Haan wrote: On Wed, Feb 9, 2011 at 12:18 PM, Steven D'Aprano wrote: de Haan wrote: Hi, Im fairly new to programming in python, and have a question. Im looking to build a program that monitor's certain things on my Linux system. for instance disk space. What is the best way to monitor a L

Re: [Tutor] System Monitoring

2011-02-09 Thread de Haan
On Wed, Feb 9, 2011 at 12:18 PM, Steven D'Aprano wrote: > de Haan wrote: > >> Hi, >> >> Im fairly new to programming in python, and have a question. >> >> Im looking to build a program that monitor's certain things on my Linux >> system. for instance disk space. What is the best way to monitor a L

Re: [Tutor] System Monitoring

2011-02-09 Thread Steven D'Aprano
de Haan wrote: Hi, Im fairly new to programming in python, and have a question. Im looking to build a program that monitor's certain things on my Linux system. for instance disk space. What is the best way to monitor a Linux server without using to much resources? Why reinvent the wheel? What

Re: [Tutor] System Monitoring

2011-02-09 Thread Nitin Pawar
We use nagios for all of our monitoring which provides central information for all machines its ok to use shell scripts to do system level monitoring (minimal level) but if you have complex monitoring on java programs and all then use jmax etc Thanks, Nitin On Wed, Feb 9, 2011 at 4:39 PM, de Haa

[Tutor] System Monitoring

2011-02-09 Thread de Haan
Hi, Im fairly new to programming in python, and have a question. Im looking to build a program that monitor's certain things on my Linux system. for instance disk space. What is the best way to monitor a Linux server without using to much resources? Should I execute shell commands and grab the o

Re: [Tutor] Splitting a string

2011-02-09 Thread Steven D'Aprano
tee chwee liong wrote: hi all, the code works: s='00101' found = False for i,c in enumerate(s): if c == '0': print 'Lane fail',i found = True if not found: print 'All lanes PASS No, it doesn't work. You haven't sufficiently tested it. It tells lies: >>> s='111

[Tutor] SMS to URL

2011-02-09 Thread Dipo Elegbede
Hi peeps, I am trying to write a code such that i can send an sms to a specific url from my phone and get a reply back from the url. I want the reply to be the content of the url I send to; what modules would you advice. I am testing with the url: http://www.dipoelegbede.com/msg.txt. I have succee

Re: [Tutor] Splitting a string

2011-02-09 Thread ALAN GAULD
>s='00101' >found = False >for i,c in enumerate(s): >if c == '0': >print 'Lane fail',i >found = True >if not found: print 'All lanes PASS ># > >the enumerate is checking from left to right. is it possible check from right >to >left? > >for eg:s='00101' >The ea