Newbie - needs help

2007-04-03 Thread Anbeyon
Hi I have not yet programmed in Python but am experienced in a number o other languages. I'd like to start to use Python to develop cross platform applications but havin kust started to investigate tols, libraries etc I feel a little overwhelmed. I'm hoping someone might be able to point me in

Crypto Suggestion/Help

2007-04-08 Thread Jimmy E Touma
Hi all, I need some advise on doing the following. I have a Linux application that allows users to access it via a code (password). At the end of the day, I gather a log of activities of the users and zip the file and would like to encrypt it so that the users can not access it or tamper with it.

Re: Please help!!!

2007-04-10 Thread Paul McGuire
print the area of this button with the > components on it? > > Thanks... Suggestion 1: "Please help!!!" is just about the worst newsgroup subject line there is (other than those related to government conspiracies or earthquake prediction). You are unlikely to attract the atte

Re: Please help!!!

2007-04-10 Thread gslm
> > > Or if it's possible, how can I print the area of this button with the > > components on it? > > > Thanks... > > Suggestion 1: "Please help!!!" is just about the worst newsgroup > subject line there is (other than those related to government >

Re: Please help!!!

2007-04-10 Thread Paul McGuire
comand ImageGrab for this purpose? > > > > But only I wan to get the button's ares.Because my applicationis on > > > this. > > > > Or if it's possible, how can I print the area of this button with the > > > components on it? > > > > Than

Re: Please help!!!

2007-04-10 Thread James Stroud
only I wan to get the button's ares.Because my applicationis on >>>this. >> >>>Or if it's possible, how can I print the area of this button with the >>>components on it? >> >>>Thanks... >> >>Suggestion 1: "Please help!!!" is just

list comparison help?

2007-04-14 Thread Dropkick Punt
Hi. I have a list of common prefixes: >>> prefixes = [ "the", "this", "that", "da", "d", "is", "are", "r", "you", "u"] And I have a string, that I split() into a list. >>> sentence = "what the blazes is this" >>> sentence = sentence.split() Now I want to strip the sentence of all words in the p

Help on Shelve....

2007-04-17 Thread Clement
Can i use Shelve for storing large amount of data around 6GB.. Is it stable...? if any problems come, can i retrive the document.. Plz tell the suggestions. By clement -- http://mail.python.org/mailman/listinfo/python-list

setup.py bdist_rpm help

2007-04-17 Thread Greg Copeland
Okay, I have an application which is frozen via pyinstaller. That is all working great. I now want to create an RPM using distutils' bdist_rpm facilities. I seem to be running into trouble. No matter what, I only seem to get three files within my RPM (setup.py, README.txt, and PKG_INFO). My ap

Re: NFS Help

2007-04-19 Thread Larry Bates
Clement wrote: > how to get the file from NFS share in python.. > NFS share is mounted on your local directory, you get to it the same way you would any other file (e.g. go to the mount point and get the file). -Larry -- http://mail.python.org/mailman/listinfo/python-list

Re: NFS Help

2007-04-19 Thread Clement
On Apr 19, 11:44 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Clement wrote: > > how to get the file from NFS share in python.. > > NFS share is mounted on your local directory, you get to it > the same way you would any other file (e.g. go to the mount > point and get the file). > > -Larry I

Re: NFS Help

2007-04-19 Thread Larry Bates
Clement wrote: > On Apr 19, 11:44 pm, Larry Bates <[EMAIL PROTECTED]> wrote: >> Clement wrote: >>> how to get the file from NFS share in python.. >> NFS share is mounted on your local directory, you get to it >> the same way you would any other file (e.g. go to the mount >> point and get the fi

Re: NFS Help

2007-04-19 Thread half . italian
On Apr 19, 11:32 am, Clement <[EMAIL PROTECTED]> wrote: > how to get the file from NFS share in python.. You need to be more specific. If you just want to copy a file try shutil http://docs.python.org/lib/module-shutil.html ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Scheduler Module Help

2007-04-26 Thread Robert Rawlins - Think Blue
Hello Guys, I'm using the sched module to create a set of functions that run every 10 or 20 minutes whilst the application is running, however it would seem that the moment I run scheduler.run() it prevents any other operations in my application from running, its sits dormant until it runs the

Vim/Python Help

2006-11-09 Thread Scott Smith
To all you vi/vim users out there. I am just getting into python and am trying to learn how to use the python.vim script. I really like the fact that it autoindents for me while inserting defs etc, but how do I move my cursor to back to outer block (say at the end of a def) to continue wit

Help with gateway

2006-11-12 Thread Cameron Laird
Who knows and/or manages bag.python.org? My e-mail server and the clp gateway are having a configuration disagreement that I'd like to solve. Please e-mail me privately. I'll report back to the group as appropriate. -- http://mail.python.org/mailman/listinfo/python-list

Re: Thread help

2006-12-01 Thread Grant Edwards
On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> wrote: > I would make 3 threads for a client application. You should use 4. -- Grant Edwards grante Yow! My TOYOTA is built at like a... BAGEL with CREAM

Re: Thread help

2006-12-01 Thread Salvatore Di Fazio
Grant Edwards ha scritto: > You should use 4. Yes, but I don't know how can I make a thread :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Thread help

2006-12-01 Thread Grant Edwards
On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> wrote: > Grant Edwards ha scritto: > >> You should use 4. > > Yes, but I don't know how can I make a thread :) Perhaps you should have said that earlier? Googling for "pythong threads" finds some useful info: http://docs.python.org/lib/module

Re: Thread help

2006-12-01 Thread Salvatore Di Fazio
Grant Edwards ha scritto: > http://docs.python.org/lib/module-threading.html > http://linuxgazette.net/107/pai.html > http://www.wellho.net/solutions/python-python-threads-a-first-example.html > http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf Thank Edward, I didn't find the linuxgazet

Re: Thread help

2006-12-01 Thread Salvatore Di Fazio
Grant Edwards ha scritto: > http://docs.python.org/lib/module-threading.html > http://linuxgazette.net/107/pai.html > http://www.wellho.net/solutions/python-python-threads-a-first-example.html > http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf Thank Edward, I didn't find the linuxgazet

Re: Thread help

2006-12-01 Thread Bjoern Schliessmann
Grant Edwards wrote: > On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> >> I would make 3 threads for a client application. > You should use 4. I vote for just 1. Regards, Björn -- BOFH excuse #236: Fanout dropping voltage too much, try cutting some of those little traces -- http

Re: Thread help

2006-12-01 Thread John Henry
Why stop there? Bjoern Schliessmann wrote: > Grant Edwards wrote: > > On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> > > >> I would make 3 threads for a client application. > > > You should use 4. > > I vote for just 1. > > Regards, > > > Björn > > -- > BOFH excuse #236: > > Fanout droppin

Re: Thread help

2006-12-01 Thread Gabriel Genellina
At Friday 1/12/2006 17:26, Bjoern Schliessmann wrote: >> I would make 3 threads for a client application. > You should use 4. I vote for just 1. We all know that the correct answer is, and always has been, 42 -- Gabriel Genellina Softlab SRL _

Re: Thread help

2006-12-02 Thread Bjoern Schliessmann
John Henry wrote: > Why stop there? Stop where, after one thread? Different question: Why use many threads? It adds complexity and overhead and forces you to think about thread safety and reentrance. Regards, Björn -- BOFH excuse #134: because of network lag due to too many people playing d

Help with weave.blitz()

2006-12-11 Thread monkeyboy
ink it should be straight forward, but I keep getting the following error when calling weave.blitz(expr). It's complaining about the variable being assigned, I've tried listing it in the blitz call with no luck. Any help is appreciated. PS I've also posted to scipy.org Thank you, Fra

wxPython help please

2006-12-16 Thread Jive Dadson
I hope someone can help me with a couple of wxPython questions, or point me to the right newsgroup for the questions. I am trying to modify the floatcanvas demo program. I want to load an image from a file (jpg or whatever), then do a kind of color-picker action on it. I haven't tried y

Can Python help?

2006-12-25 Thread Lad
On my website I allow users to upload files. I would like a user to see how much time is left before a file is uploaded. So, I would like to have a progress bar during a file uploading. Can Python help me with that?Or how can be a progress bar made? Thank you for ideas. La. -- http

help: code formatter?

2007-01-08 Thread siggi
s and then refomats correctly? Please help! Thank you, siggi -- http://mail.python.org/mailman/listinfo/python-list

Re: Pygame Help

2006-07-29 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Blaze Bresko wrote: > [Tetris] I was curious how you would program the seperate images to > fall together and not break apart, because pygame and livewires uses > images as collision detection, so therefore you can't make most of the > shapes a single image because they wi

Re: Pygame Help

2006-07-29 Thread Lee Harr
> I was curious how you would program the seperate > images to fall together and not break apart, because pygame and > livewires uses images as collision detection, so therefore you can't > make most of the shapes a single image because they will have > transparent spaces as part of the image, whic

help - iter & dict

2006-08-03 Thread aking
Dear Python people, im a newbie to python and here...so hello! Im trying to iterate through values in a dictionary so i can find the closest value and then extract the key for that valuewhat ive done so far: def pcloop(dictionary, exvalue): z = dictionary.itervalues() y = z

Re: import help

2006-08-07 Thread Gary Herron
placid wrote: > Hi all, > > How do i import a module that has an hypen/dash (-) in its name ? I get > a SytaxError exception > > Cheers > > You can't do that directly. However, the internals of the import mechanism are available to the programmer through a module named imp. It allows you to im

Re: import help

2006-08-07 Thread Rob Wolfe
placid wrote: > Hi all, > > How do i import a module that has an hypen/dash (-) in its name ? I get > a SytaxError exception You can use function __import__. >>> print open("-test.py").read() def fun2(): return "Hello from -test !" >>> import -test File "", line 1 import -test

Re: String.digits help!!!

2006-08-08 Thread Simon Forman
Anoop wrote: > Hi All > > Hope u all might have come across the string deprecation thought of in > Python 3.0. > > For example : string.lower(str) needs to be some thing like > str.lower(). > > Can some one help me out whether such a change in the common python > woul

Re: String.digits help!!!

2006-08-08 Thread bearophileHUGS
Simon Forman: > It's unlikely to > be deprecated since it doesn't make much sense to make it an attribute > of the str type. Why? Thank you, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: String.digits help!!!

2006-08-08 Thread Simon Forman
[EMAIL PROTECTED] wrote: > Simon Forman: > > It's unlikely to > > be deprecated since it doesn't make much sense to make it an attribute > > of the str type. > > Why? > > Thank you, > bearophile Let me toss the question back at you: Does it make sense to you that str should have this attribute?

Re: String.digits help!!!

2006-08-08 Thread bearophileHUGS
Simon Forman: > accessing it from a > module (perhaps math.. math.infinity, math.epsilon, etc., just like > math.pi and math.e.) It too looks acceptable. > I look forward to hearing your thoughts an the subject. Thank you, but I am not expert enough on such topics to give you good comments, s

Re: String.digits help!!!

2006-08-09 Thread Ron Adam
cluded in a type or class and when shouldn't it. I think that's an important question and having some clear guidelines for that will help me to write better programs in general. A few general rules I've found to be mostly true is.. (1) If a class method does not have a reference

help parsing this

2006-08-14 Thread a
mx.DateTime.RangeError at /podcasts Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31 Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in DateTimeFromString, line 608 how to parse this date thanks -- http://mail.python.org/mailman/listinfo/python-list

Newbie needs Help

2006-08-16 Thread len
Hi all I am writing a python program that inserts records into a database on XP using mxODBC. I need to write a section of code which will create the following SQL command as an example; INSERT INTO statecode (state, name) VALUES ('IL', 'Illinois') This statement will be built up using the foll

Re: NEED HELP

2006-08-29 Thread Rob Wolfe
[EMAIL PROTECTED] wrote: > Below is my code, which is kind of virtual and with its help ill use it > in my main project. > Now what i am looking for is can anybody write all the code inside a > class...so that I can reuse it. I am kind of novice...n kind of stuc > with that. &

Help with autotools

2006-09-01 Thread Jonh Wendell
Hi all! I need help with autotools stuff.. My directory structure: project_name src main.py others.py data ui.glade images.png po translations.po I'd like to do something like that: The files in "src" should be installed at: $prefix/lib/project_name The

ArchGenXML please help

2007-01-12 Thread tonydevlin
torial>ArchGenXML.py ProcessImprovement.zargo" I have saved the file in the location C:\Documents and Settings\Tony\Desktop\Test\ProcessImprovement.zargo However I dont know what to type in the python command prompt!!! Can anyone help my, I would be very greatful, or if I am in the wrong place do yo

scipy.optimize.lbfgsb help please!!!

2007-01-20 Thread mclaugb
Does anyone out there have a piece of code that demonstrates the use of the lbfgsb multivariate, bounded solver in the scipy.optimize toolkit? An example would get me started because my code below does not seem to work. Thanks alot, Bryan I have tried to use the LBFGSB optimisation algorithm w

Help with 'popen'

2007-01-21 Thread stephen_b
Can someone let me know why this won't work? Thanks. >>> from os import popen >>> popen('export asdfasdf=hello').read() '' >>> popen('echo $asdfasdf').read() '\n' Thanks. Stephen -- http://mail.python.org/mailman/listinfo/python-list

wxPython StatusBar Help

2007-01-29 Thread herve
Hi, everybody I'm working with wxPython 2.8.1.1. Does anybody know how to change the foreground colors in a wx.StatusBar -- http://mail.python.org/mailman/listinfo/python-list

Re: help please!!

2007-02-11 Thread hg
darren112 wrote: > Hi Im new to python and I desperately need help with this task > This is everything of what I need to do... > > The program to be written in Python obviously.. > > The program should support brute-forcing of the authentication process > for

Re: help please!!

2007-02-11 Thread azrael
ren112" <[EMAIL PROTECTED]> wrote: > Hi Im new to python and I desperately need help with this task > This is everything of what I need to do... > > The program to be written in Python obviously.. > > The program should support brute-forcing of the authentication

Re: help please!!

2007-02-11 Thread Jonathan Curran
On Sunday 11 February 2007 13:40, darren112 wrote: > Hi Im new to python and I desperately need help with this task > This is everything of what I need to do... > > The program to be written in Python obviously.. > > The program should support brute-forcing of

Re: help please!!

2007-02-11 Thread Gabriel Genellina
En Sun, 11 Feb 2007 16:40:45 -0300, darren112 <[EMAIL PROTECTED]> escribió: > The program should support brute-forcing of the authentication process > for a Telnet server via a dictionary attack. You should first read the Python Tutorial. After you get proficient with the basic programming st

Re: help please!!

2007-02-11 Thread azrael
Hey yo kiddie, I hope that you are using the web for some time. So you can get the meaning from my post.: LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL,

Re: help please!!

2007-02-11 Thread James Stroud
darren112 wrote: > Hi Im new to python and I desperately need help with this task > This is everything of what I need to do... > > The program to be written in Python obviously.. > > The program should support brute-forcing of the authentication process > for

pexpect regex help

2007-02-21 Thread jonathan . sabo
I have a pexpect script to walk through a cisco terminal server and I was hoping to get some help with this regex because I really suck at it. This is the code: index = s.expect(['login: ', pexpect.EOF, pexpect.TIMEOUT]) if index == 0: m = re.search('(

Help on Dict

2007-02-25 Thread Clement
Can any body tell how Dict is implemented in python... plz tell what datastructure that uses -- http://mail.python.org/mailman/listinfo/python-list

text wrapping help

2007-02-28 Thread Ryan K
I'm trying to text wrap a string but not using the textwrap module. I have 24x9 "matrix" and the string needs to be text wrapped according to those dimensions. Is there a known algorithm for this? Maybe some kind of regular expression? I'm having difficulty programming the algorithm. Thanks, Ryan

Help Deciphering Code

2007-03-05 Thread Bryan Leber
Good Morning, I am learning python and I am having to make some changes on an existing python script. What happens is that one scripts creates an xml document that looks like this: http://www.fischerinternational.com> [EMAIL PROTECTED] Cell:(239)963-5267 Secu

Re: Asyncore Help?

2007-05-13 Thread Erik Max Francis
Paul Kozik wrote: > While basic socket work was rather easy to deal with, this has proved > significantly more difficult. Are there any good free sources for > information on Asyncore, and dealing with TCP? You haven't said specifically what you're having a problem with. The more general name f

Re: Asyncore Help?

2007-05-14 Thread Daniel Nogradi
> I am working on the networking code for a small Multiplayer RPG I'm > working on. I currently have some basic code using threads, but it > seems like asyncore would be far better suited for my needs. However, > I have trouble finding a solid example for what I need. Python.org and > other sites p

Re: Asyncore Help?

2007-05-14 Thread Nick Craig-Wood
Erik Max Francis <[EMAIL PROTECTED]> wrote: > Paul Kozik wrote: > > > While basic socket work was rather easy to deal with, this has proved > > significantly more difficult. Are there any good free sources for > > information on Asyncore, and dealing with TCP? > > You haven't said specifically

Re: Asyncore Help?

2007-05-14 Thread Michael Bentley
On May 14, 2007, at 4:30 AM, Nick Craig-Wood wrote: > The learning curve of twisted is rather brutal :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Asyncore Help?

2007-05-14 Thread Jarek Zgoda
Daniel Nogradi napisał(a): > The twisted project might also be a good place for anything related to > python and networking: http://twistedmatrix.com/trac/ Twisted eats babies for breakfast, although it also kills all known germs(TM). ;) -- Jarek Zgoda "We read Knuth so you don't have to." --

Re: Asyncore Help?

2007-05-14 Thread Bjoern Schliessmann
Nick Craig-Wood wrote: > http://twistedmatrix.com/trac/ > > The learning curve of twisted is rather brutal, NACK, the tutorial is -- IMHO -- rather easy if you are used to writing Python code and doing asynchronous programming.

Re: Asyncore Help?

2007-05-16 Thread Josiah Carlson
/46915/focus=47326 You can pull out the async subclasses and use them as a general Python object transfer mechanism. If you have specific asyncore/asynchat questions, email me directly and I will try to help you. - Josiah -- http://mail.python.org/mailman/listinfo/python-list

Re: Asyncore Help?

2007-05-17 Thread billiejoex
On 14 Mag, 06:51, "Paul Kozik" <[EMAIL PROTECTED]> wrote: > I have trouble finding a solid example for what I need. Python.org and > other sites provide simple examples, but they appear more intended for > servers that simply send one peice of data to the client. Not a big deal. asynchat / asyncor

Re: Asyncore Help?

2007-05-17 Thread billiejoex
On 14 Mag, 06:51, "Paul Kozik" <[EMAIL PROTECTED]> wrote: > I have trouble finding a solid example for what I need. Python.org and > other sites provide simple examples, but they appear more intended for > servers that simply send one peice of data to the client. Not a big deal. asynchat / asyncor

Tkinter help, please...

2007-05-24 Thread Medi Ochre
I've been away from Python for some time, and I'm just starting to look at Tkinter. Just so you know, I'm coming from Visual Basic, where this would, I *think*, not have been a problem, so it must be a case of getting my head around the Tkinter way of doing things. In a nutshell, I've written a

Newbie help understanding...

2007-05-26 Thread mark
Hi I am trying to get a piece of code to work based on an exercise in a book. Any help appreciated. Can someone please explain what is going on here. I am trying to read from a text file a list of cards with the following format and sort firstly by suit and then by rank h 1 d 2 c 5 s 9 h2 d3

Help with PySMS

2007-05-27 Thread DJ Fadereu
Hello - Background: I'm not a coder, but I got a degree in Chem Engg about 7 years ago. I have done some coding in my life, and I'm only beginning to pick up Python. So assume that I'm very stupid when and if you are kind enough to help me out. Problem: I need an SMS server runn

matplotlib Basemap help

2007-05-30 Thread simon . murphy . nz
Hi everyone - I'm trying to move all of my MATLAB mapping scripts over to the Basemap toolbox of matplotlib. There are 2 things however that I still can't figure out: 1) When using the Mollweide projection I can't place meridian labels at all (presumably because they converge at the poles). In MAT

Re: Python Help

2006-06-14 Thread Tim Chase
> I have recently downloaded Python 2.4.3 on Windows XP. The > program does not recongnize when I type in python:" name > 'python' is not defined". Please tell me how to correct this. Sounds like you don't have it in your path. In XP, use Win+Break to pull up your system properties (the same as

Re: Python Help

2006-06-15 Thread Ten
eem to be successfully running python. Maybe if you let us know what you're trying to achieve other than that, it would be possible to help. Regards, Ten. PS: If you could manage it, sending plain text messages instead of html ones would be great. You'll notice html messages are

help() on stdout.closed

2006-06-21 Thread Pekka Karjalainen
Python 2.4.1 (#1, May 16 2005, 15:19:29) [GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from sys import stdout >>> help (stdout.closed) If I do this, it gives me

Help Installing smartypants.py

2006-06-27 Thread Scott McCracken
I just got Python 2.4 setup locally (Mac OS X) and am trying to extend it by installing both the markdown and smartypants plugins. Ultimately I'd like to be able use both in a custom CMS I'm building with Django. Installing markdown was a snap by following the instructions at http://www.freewisdom

Re: Numeric help!

2006-06-28 Thread Carl Banks
ze): > if msgva[i,j] == z: > mbias += sat_id[i,j] # take the sum of the > values > count += 1 # count the occurrences > tmp_array[0,index] = round(mbias/count,1) # store the mean > tmp_array[1,in

Re: Numeric help!

2006-06-29 Thread Sheldon
e where I going wrong. I am not using the original arrays, only the copies and when a new z is chosen then these are recreated. Care to help out with this? /Sheldon Carl Banks wrote: > Sheldon wrote: > > Hi, > > > > I have the following loop that I think can be written to run f

Re: Numeric help!

2006-06-29 Thread Carl Banks
x27;t necessary here since rdata is one-dimesional. > tmparray[0,index] = av > tmparray[1,index] = z > index += 1 > print tmparray > *** > But the tmparray is returning zeros as averages. When I try ju

Re: Numeric help!

2006-06-29 Thread Alan Isaac
On Thu, 29 Jun 2006 05:25:25 -0400, Sheldon <[EMAIL PROTECTED]> wrote: > I am learning python on > my own and Numeric is not properly documented 1. Use NumPy (Numeric's successor): http://www.numpy.org/ 2. Documentation is excellent: http://www.tramy.us/ (Also see http://www.scipy.org/Cookbook

Re: Numeric help!

2006-06-30 Thread Sheldon
av = average(rdata,axis=None) > > axis argument isn't necessary here since rdata is one-dimesional. > > > tmparray[0,index] = av > > tmparray[1,index] = z > > index += 1 > > print tmparray > > **

Re: Numeric help!

2006-06-30 Thread Carl Banks
Sheldon wrote: > average(compress(ravel(equal(wk,z)),ravel(sattmp)),axis=None) > This is much more compact and elegant. Thanks for pointing this out. > I don't know why average() returned a divide by zero error and to avoid > this I inserted this if statement. Now it works much better ! Probably

Re: Numeric help!

2006-07-03 Thread Sheldon
rted this if statement. Now it works much better ! > > Probably you had a case where the array length was zero, but it > wouldn't happen in the present case unless your input arrays are zero > by zero. > > > Carl Banks Thanks for you help kind Sir! /Sheldon -- http://mail.python.org/mailman/listinfo/python-list

Re: WMI Help

2006-07-13 Thread Michel Claveau
Hi! Win32_PhysicalMedia WMI class is available only on Windows 2003 or XP Then, swap Admin <=> Normal_user -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: WMI Help

2006-07-13 Thread Michel Claveau
Re! This script run on my XP : import win32com.client WMIS = win32com.client.GetObject(r"winmgmts:root\cimv2") objs = WMIS.ExecQuery("select * from Win32_PhysicalMedia") for obj in objs: print obj.SerialNumber print obj.Tag print -- @-salutations Michel Claveau -- http://mail.p

Re: WMI Help

2006-07-13 Thread 3c273
"Michel Claveau" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Re! > > This script run on my XP : > > > import win32com.client > WMIS = win32com.client.GetObject(r"winmgmts:root\cimv2") > objs = WMIS.ExecQuery("select * from Win32_PhysicalMedia") > for obj in objs: > print obj.S

Re: WMI Help

2006-07-13 Thread Tim Golden
3c273 wrote: > Hello, > When I run the following at an interactive interpreter on Windows XP, I get > the expected results. But if I save it to a file and run it, it generates > the following error. (And it generates the same error either way on Windows > 2000) > > import wmi > c=wmi.WMI() > for i

Re: WMI Help

2006-07-13 Thread 3c273
"Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 3c273 wrote: > > Hello, > > When I run the following at an interactive interpreter on Windows XP, I get > > the expected results. But if I save it to a file and run it, it generates > > the following error. (And it generates

Re: tkinter help

2006-07-18 Thread faulkner
if I select an option it should give me another > menu associated with that option. Its like digging up that option to do > advance search. > > Please I need help as I am making my project > Thanks to eveyrbody who will take time to read this and solve it . -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter help

2006-07-18 Thread John McMonagle
> had 6 options which one can select, but Now what I want is that from > the available menu, if I select an option it should give me another > menu associated with that option. Its like digging up that option to do > advance search. > > Please I need help as I am making my proje

Re: tkinter help

2006-07-18 Thread Harold Fellermann
hi, groves wrote: > Now let me tell you that i was able to create a simple listbox which > had 6 options which one can select, but Now what I want is that from > the available menu, if I select an option it should give me another > menu associated with that option. Its like digging up that option

Newbie..Needs Help

2006-07-28 Thread Graham Feeley
Hi this is a plea for some help. I am enjoying a script that was written for me and its purpose is to collect data from a web site and puts it into a access database table. It works fine, however it is a sports info table but now I need to collect the results of those races. I simply can't

Need help on program!!!

2004-12-03 Thread Darth Haggis
I need help writing a program You are to write a python program to accomplish the following: a.. Play a dice game of Craps using a random number generator to simulate the roll of the dice, the code for the rolling of the dice should take place in a user written module named rolldice. b

Help with modules/packages.

2004-12-03 Thread Christopher J. Bottaro
but then I'd instantiate like "c = ClassA()". What I really want is to say "c = CJB.ClassA()"...is that possible? Is my understand of modules/packages correct or am I way off? Thanks for the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me asap!!

2004-12-04 Thread Nick Coghlan
the_proud_family wrote: HELP ME PLEASE!! I can't get the ball to go up right side and then I need it to turn around and keep turning until velocity=0 I have been at it for the past 2 weeks now i give up and call for help. Please if anyone can gide me through i will be so grateful!! I

Re: [Python-Help] (fwd)

2004-12-04 Thread Alfred Canoy
Hello, I'm just new to programming and would like to ask for help.. Build a module that contains three functions that do the following: a.. Compute the average of a list of numbers b.. Finds the statistical median value of a list of numbers c.. Finds the mode of a list of nu

RE: [Python-Help] (fwd)

2004-12-04 Thread Robert Brewer
Alfred Canoy wrote: > I'm just new to programming and would like to ask for help.. > > Build a module that contains three functions that do the following: > > a.. Compute the average of a list of numbers > b.. Finds the statistical median value of a list of nu

Re: [Python-Help] (fwd)

2004-12-04 Thread Paul Rubin
"Alfred Canoy" <[EMAIL PROTECTED]> writes: > I'm just new to programming and would like to ask for help.. > > Build a module that contains three functions that do the following: > > a.. Compute the average of a list of numbers > b.. Finds th

Re: [Python-Help] (fwd)

2004-12-04 Thread Joe Raul
"Alfred Canoy" <[EMAIL PROTECTED]> news:[EMAIL PROTECTED] > Hello, > > I'm just new to programming and would like to ask for help.. > > Build a module that contains three functions that do the following: > > a.. Compute the average

Re: [Python-Help] (fwd)

2004-12-05 Thread Craig Ringer
t 'Enter 0 to exit the loop' > while number != 0: > number = input ('Enter a number: ') > count = count + 1 > sum = sum + number > count = count -1 > print ' The average is:', sum/count It looks to me like you'd be better off reading eac

Re: [Python-Help] (fwd)

2004-12-05 Thread Bob Gailer
At 10:07 PM 12/4/2004, Alfred Canoy wrote: Hello, I'm just new to programming and would like to ask for help.. Build a module that contains three functions that do the following: a.. Compute the average of a list of numbers b.. Finds the statistical median value of a list of number

Re: [Python-Help] (fwd)

2004-12-05 Thread Steven Bethard
Craig Ringer wrote: As you can see, it's much easier to work with data in lists. Some of the other methods, like list.sort() and list "slices" will also be useful to you, but I'll let you figure out the details ;-) . Something else that might be useful to you if you're using Python 2.4: >>> lst =

<    1   2   3   4   5   6   7   8   9   10   >