Please help on Binary file manipulation

2007-06-05 Thread Pieter Potgieter
Hi all I have a binary file of about 600kbytes - I want to break it up in file chunks of 1085 bytes - every file must have a new file name. The data is binary video frames (370 frames) - I want to play the data back into an embedded system frame/file by file. I am a complete Python newby - but

Re: Please help on Binary file manipulation

2007-06-05 Thread km
Hi, I assume ur on a linux/unix box... pls check the manual for 'split' command in linux/unix this does ur job regards, KM --- On 6/5/07, Pieter Potgieter [EMAIL PROTECTED]

RE: Please help on Binary file manipulation

2007-06-05 Thread Looney, James B
Potgieter Sent: Tuesday, June 05, 2007 2:43 AM To: python-list@python.org Subject: Please help on Binary file manipulation Hi all I have a binary file of about 600kbytes - I want to break it up in file chunks of 1085 bytes - every file must

Please help! win32 com_error 'Exception occurred'

2007-06-02 Thread Richard Gordon
I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32 using MS SAPI 5.1 and Hammond's win32 module. The test program is import pyTTS tts = pyTTS.Create() tts.Speak('Hello world.') The resulting debug trace is: PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200

Re: TK-grid problem, please help

2007-04-24 Thread Ray
Hi Anton, Thanks again. This is what I need! my problem already solved. Ray Anton Vredegoor wrote: Ray wrote: hi, I have a question about how to use .grid_forget (in python/TK) I need to work on grid repeatly. everytime when a button is pressed, the rows of grid is different. such like,

Re: TK-grid problem, please help

2007-04-24 Thread James Stroud
Hertha Steck wrote: Hello, Ray schrieb: Hi, Thanks for the help. I was trying to find a book Python TK something on last Friday. but didn't find it :-) There is only one printed book, all the details here: http://wiki.python.org/moin/GuiBooks HTH Hertha This is inaccurate.

Re: TK-grid problem, please help

2007-04-23 Thread Ray
Hi, Thanks for the help! Anton Vredegoor wrote: Ray wrote: hi, I have a question about how to use .grid_forget (in python/TK) I need to work on grid repeatly. everytime when a button is pressed, the rows of grid is different. such like, first time, it generate 10 rows of data. 2nd

Re: TK-grid problem, please help

2007-04-23 Thread Ray
Hi, Thanks for the help. I was trying to find a book Python TK something on last Friday. but didn't find it :-) I know those codes are in poor design, because I wrote those sample code to show the idea about what I need. the real code is working with mysql. however, I'm really new in python.

Re: TK-grid problem, please help

2007-04-23 Thread Hertha Steck
Hello, Ray schrieb: Hi, Thanks for the help. I was trying to find a book Python TK something on last Friday. but didn't find it :-) There is only one printed book, all the details here: http://wiki.python.org/moin/GuiBooks HTH Hertha --

Re: TK-grid problem, please help

2007-04-21 Thread Anton Vredegoor
Ray wrote: hi, I have a question about how to use .grid_forget (in python/TK) I need to work on grid repeatly. everytime when a button is pressed, the rows of grid is different. such like, first time, it generate 10 rows of data. 2nd time, it maybe only 5 rows. so I need a way to RESET

Re: TK-grid problem, please help

2007-04-21 Thread James Stroud
Ray wrote: hi, I have a question about how to use .grid_forget (in python/TK) I need to work on grid repeatly. everytime when a button is pressed, the rows of grid is different. such like, first time, it generate 10 rows of data. 2nd time, it maybe only 5 rows. so I need a way to RESET the

TK-grid problem, please help

2007-04-20 Thread Ray
hi, I have a question about how to use .grid_forget (in python/TK) I need to work on grid repeatly. everytime when a button is pressed, the rows of grid is different. such like, first time, it generate 10 rows of data. 2nd time, it maybe only 5 rows. so I need a way to RESET the grid data every

Please help!!!

2007-04-10 Thread gslm
Hi to all! I want to do a calendar with pictures near months. I have designed the form's view.But unfortunately, I am not be able to save this view as an image file.And so I am not be able to print this image file too. Question: How can I determine the coordinates of a button?Namely How can I use

Re: Please help!!!

2007-04-10 Thread Paul McGuire
determine the coordinates of a button?Namely How can I use the 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? Thanks... Suggestion 1: Please

Re: Please help!!!

2007-04-10 Thread gslm
I use the 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? Thanks... Suggestion 1: Please help!!! is just about the worst newsgroup

Re: Please help!!!

2007-04-10 Thread Paul McGuire
... 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 attention of those who really know anything - they are quite busy and must husband

Re: Please help!!!

2007-04-10 Thread James Stroud
use the 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? Thanks... Suggestion 1: Please help!!! is just about the worst newsgroup subject line

Please help!! SAXParseException: not well-formed (invalid token)

2007-03-27 Thread jvictor118
I've been using the xml.sax.handler module to do event-driven parsing of XML files in this python application I'm working on. However, I keep having really pesky invalid token exceptions. Initially, I was only getting them on control characters, and a little sed -e 's/ [^[:print:]]/ /g' $1; took

Re: Please help!! SAXParseException: not well-formed (invalid token)

2007-03-27 Thread kyosohma
On Mar 27, 9:59 am, [EMAIL PROTECTED] wrote: I've been using the xml.sax.handler module to do event-driven parsing of XML files in this python application I'm working on. However, I keep having really pesky invalid token exceptions. Initially, I was only getting them on control characters, and

Re: Please help!! SAXParseException: not well-formed (invalid token)

2007-03-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: I've been using the xml.sax.handler module to do event-driven parsing of XML files in this python application I'm working on. However, I keep having really pesky invalid token exceptions. Initially, I was only getting them on control characters, and a little sed -e

Re: Please help!! SAXParseException: not well-formed (invalid token)

2007-03-27 Thread jvictor118
I checked the file format (of the file containing the n-tilde - ñ) and it is indeed UTF-8! I'm baffled! Any ideas? Thanks, Jason On Mar 27, 11:16 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I've been using the xml.sax.handler module to do event-driven parsing of

Re: Please help!! SAXParseException: not well-formed (invalid token)

2007-03-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: I checked the file format (of the file containing the n-tilde - ñ) and it is indeed UTF-8! I'm baffled! Any ideas? Without you showing us your actual code and data - no. Because it works for me and a lot of other people. Diez --

Re: Pycron for windows - please help

2007-03-26 Thread Al
Mapped drives are per-user. Usually, services run under the LOCAL_SYSTEM account, not using the currently logged user (because they may start even before any user is logged). If you want the service to have access to your mapped drives, use the service control panel to make it run under

Re: Pycron for windows - please help

2007-03-25 Thread Al
Shane, I figured it out... Pycron does not work with mapped drives. My script was supposed to copy files from a mapped drive to a local folder... I had set up my batch command as copy M:\foldername\*.*, where M: is a mapped drive pointing to the network share; M: is defined on the PC running

Re: Pycron for windows - please help

2007-03-25 Thread Gabriel Genellina
En Sun, 25 Mar 2007 10:17:47 -0300, Al [EMAIL PROTECTED] escribió: I figured it out... Pycron does not work with mapped drives. My script was supposed to copy files from a mapped drive to a local folder... I had set up my batch command as copy M:\foldername\*.*, where M: is a mapped drive

Re: Pycron for windows - please help

2007-03-20 Thread Al
heh... didn't think about that... thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycron for windows - please help

2007-03-20 Thread Shane Geiger
Here's something else you should consider: Look at the source code of pycron. I just downloaded it. Much to my surprise, this is implemented in about 115 lines of code. In particular, look at the run() function. You should try adding a try-except block around the system call to get a hint

Pycron for windows - please help

2007-03-19 Thread Al
Hey all, I'm using Pycron for windows to run 5 scripts at various times of the day, all of which work well. I recently added a 6th job, a simply file copy operation, and it won't run. Once the job is configured, I click the test execution button, and it works fine. However, it won't run

Re: Pycron for windows - please help

2007-03-19 Thread Gabriel Genellina
En Mon, 19 Mar 2007 16:00:04 -0300, Al [EMAIL PROTECTED] escribió: I looked in the pycron.log file, and I noticed that for the entires of my new job, I see rc=4 and the end of each line. All other jobs have rc=0 at the end of the line. I assume then, that rc=4 is a reference to an error code

Please help about an instance var

2007-02-13 Thread JStoneGT
from UserDict import UserDict d = {1:2,3:4,5:6} d1 = UserDict(d) d1 {1: 2, 3: 4, 5: 6} d1.data {1: 2, 3: 4, 5: 6} Here why both d1 and d1.data have the same values?As shown below,they're different types. type(d1) type 'instance' type(d1.data) type 'dict' Please help.Thanks! --

Re: Please help about an instance var

2007-02-13 Thread Gabriel Genellina
En Tue, 13 Feb 2007 23:54:29 -0300, [EMAIL PROTECTED] escribió: from UserDict import UserDict d = {1:2,3:4,5:6} d1 = UserDict(d) d1 {1: 2, 3: 4, 5: 6} d1.data {1: 2, 3: 4, 5: 6} Here why both d1 and d1.data have the same values?As shown below,they're different types. type(d1) type

While loop with or? Please help!

2007-01-25 Thread wd . jonsson
Hmm, my while loop with or doesn't seem to work as I want it to... How do I tell the while loop to only accept Y or y or N or n input from the str(raw_input)? Thank's in advance! Snippet of code: import os def buildfinder(): os.system(CLS) GameRoot = os.getenv(GAME_ROOT) + \\

Re: While loop with or? Please help!

2007-01-25 Thread Ravi Teja
while usrinp != y or Y or N or n: PROBLEM Correct way: while usrinp != y or usrinp != Y or usrinp != N or usrinp != n: There has to be a boolean evaluation on both sides of or. Or in this case: while usrinp not in ['Y', 'y', 'N', 'n']: Ravi Teja. --

Re: While loop with or? Please help!

2007-01-25 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Hmm, my while loop with or doesn't seem to work as I want it to... How do I tell the while loop to only accept Y or y or N or n input from the str(raw_input)? Thank's in advance! Snippet of code: import os def buildfinder(): os.system(CLS)

Re: While loop with or? Please help!

2007-01-25 Thread Paul Rubin
[EMAIL PROTECTED] writes: while usrinp != y or Y or N or n: PROBLEM while userinp not in 'yYnN': ... Or maybe more generally: while userinp.lower() not in 'yn':# case independent test ... -- http://mail.python.org/mailman/listinfo/python-list

Re: While loop with or? Please help!

2007-01-25 Thread Peter Otten
Bruno Desthuilliers wrote: and simplified again thanks to Python 'in' operator: while not usrinp.lower() in yn: But note that 'in' performs a substring search and therefore yn and would be accepted as valid answers, too. Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: While loop with or? Please help!

2007-01-25 Thread Bruno Desthuilliers
Peter Otten a écrit : Bruno Desthuilliers wrote: and simplified again thanks to Python 'in' operator: while not usrinp.lower() in yn: But note that 'in' performs a substring search and therefore yn and would be accepted as valid answers, too. Mmm, right. Thanks for the correction. =

Re: While loop with or? Please help!

2007-01-25 Thread Tim Williams
On 25/01/07, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Peter Otten a écrit : Bruno Desthuilliers wrote: and simplified again thanks to Python 'in' operator: while not usrinp.lower() in yn: But note that 'in' performs a substring search and therefore yn and would be accepted as

Re: While loop with or? Please help!

2007-01-25 Thread Paul Rubin
Peter Otten [EMAIL PROTECTED] writes: while not usrinp.lower() in yn: But note that 'in' performs a substring search and therefore yn and would be accepted as valid answers, too. Oh right, that's a recent change to the language, I think. OK: while not usrinp.lower() in list(yn): ... --

Re: While loop with or? Please help!

2007-01-25 Thread [EMAIL PROTECTED]
On Jan 25, 11:26 am, [EMAIL PROTECTED] wrote: Hmm, my while loop with or doesn't seem to work as I want it to... How do I tell the while loop to only accept Y or y or N or n input from the str(raw_input)? Thank's in advance! Snippet of code: import os def buildfinder():

Re: While loop with or? Please help!

2007-01-25 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : On Jan 25, 11:26 am, [EMAIL PROTECTED] wrote: (snip) #Runs the buildfinder function usrinp = buildfinder() def buildwhiler(): while usrinp != y or Y or N or n: PROBLEM print Enter Y or N! usr = str(raw_input('Y/N: ')) else:

Re: While loop with or? Please help!

2007-01-25 Thread Daniel
2007-01-25 11:26:09 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED] Hmm, my while loop with or doesn't seem to work as I want it to... How do I tell the while loop to only accept Y or y or N or n input from the str(raw_input)? Thank's in advance! Snippet of code: import os

Re: I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-17 Thread Kevin Wan
I've added a document for fgen. Please check it. Thanks, Kevin [EMAIL PROTECTED] wrote: Kevin Wan wrote: fgen is a free command line tool that facilitates cross platform c++ development, including header generation, cpp file generation, makefile generation, unit test framework generation,

Re: I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-16 Thread Vineeth Kashyap
Hi, I am interested in your proposal. I am basically a C/C++ programmer, but recently fell in love with python. Please send more details on fgen. We could probably start working. :) Kevin Wan wrote: fgen is a free command line tool that facilitates cross platform c++ development, including

Re: I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-16 Thread [EMAIL PROTECTED]
Kevin Wan wrote: fgen is a free command line tool that facilitates cross platform c++ development, including header generation, cpp file generation, makefile generation, unit test framework generation, etc. http://sf.net/projects/fgen I'm not very familiar with Python. Any feedback are

Re: I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-16 Thread Kevin Wan
I'm writing the document for fgen. You can use SVN to access the most updated files. Basically you can use fgen --help to get the usage. It's my c++ development tool, and I didn't spend that much time on writing document. Sorry. But I'm writing now. Thanks and waiting to work with you guys,

Re: I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-16 Thread Kevin Wan
Sorry, I didn't write that much document. But you can use fgen --help to get the usage. I'm writing document now. :) Thanks, Kevin [EMAIL PROTECTED] wrote: Kevin Wan wrote: fgen is a free command line tool that facilitates cross platform c++ development, including header generation, cpp

I wrote a C++ code generator in Python, would anyone please help me to review the code? :)

2007-01-15 Thread Kevin Wan
fgen is a free command line tool that facilitates cross platform c++ development, including header generation, cpp file generation, makefile generation, unit test framework generation, etc. http://sf.net/projects/fgen I'm not very familiar with Python. Any feedback are appreciated! Or anyone

Re: Tkinter code (with pmw) executing to soon please help

2007-01-14 Thread Peter Otten
[EMAIL PROTECTED] wrote: Scott David Daniels wrote: Gabriel Genellina wrote: ... So `callback` should return a function, like this: def callback(text): def handler(event): print text Even better than that: def callback(text): def handler(event):

Re: Tkinter code (with pmw) executing to soon please help

2007-01-14 Thread Gabriel Genellina
[EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] button[num] = Tkinter.Button(frame,text = returnstring, command=callback(returnstring))# I understand this part of it def callback(text): def handler(event): print text It stopped calling it automaticaly but will

Tkinter code (with pmw) executing to soon please help

2007-01-13 Thread [EMAIL PROTECTED]
Instead of creating my buttons and waiting for me to press them to execute they are executing when I create them and won't do my callback when I press them.. thanks for any help in advance button[num] = Tkinter.Button(frame,text = returnstring, command=callback(returnstring))# this line

Re: Tkinter code (with pmw) executing to soon please help

2007-01-13 Thread Gabriel Genellina
[EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Instead of creating my buttons and waiting for me to press them to execute they are executing when I create them and won't do my callback when I press them.. thanks for any help in advance This is a very frequent beginner's

Re: Tkinter code (with pmw) executing to soon please help

2007-01-13 Thread [EMAIL PROTECTED]
C:\dex_tracker\csdlist.py bay-at-night.csd Traceback (most recent call last): File C:\dex_tracker\csdlist.py, line 58, in root.mainloop() File C:\Python25\lib\lib-tk\Tkinter.py, line 1023, in mainloop self.tk.mainloop(n) File ../../..\Pmw\Pmw_1_2\lib\PmwBase.py, line 1751, in __call__ File

Re: Tkinter code (with pmw) executing to soon please help

2007-01-13 Thread [EMAIL PROTECTED]
button[num] = Tkinter.Button(frame,text = returnstring, command=callback(returnstring))# I understand this part of it def callback(text): def handler(event): print text It stopped calling it automaticaly but will not do anything when I click on the button. Does something have to

ArchGenXML please help

2007-01-12 Thread tonydevlin
could go as I have tried the plone online on and it is no good. Thank you. -- View this message in context: http://www.nabble.com/ArchGenXML-please-help-tf2966867.html#a8301441 Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python

Re: ArchGenXML please help

2007-01-12 Thread Bruno Desthuilliers
tonydevlin a écrit : I am creating a workflow in plone using argouml and archgenxml. I have been following the steps on the site:- http://plone.org/documentation/tutorial/anonymously-adding-custom-content-types-with-argouml-and-archgenxml/creating-a-class-and-workflow-with-argouml However I

Re: ArchGenXML please help

2007-01-12 Thread tonydevlin
/ArchGenXML-please-help-tf2966867.html#a8302734 Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: ArchGenXML please help

2007-01-12 Thread Bruno Desthuilliers
tonydevlin a écrit : Bruno Desthuilliers wrote: tonydevlin a écrit : I am creating a workflow in plone using argouml and archgenxml. I have been following the steps on the site:-

tkinter module not found please help

2007-01-09 Thread notsonice51
I'm trying to install python2.5 on my computer(os Fedora 5). My problem is that I'm unable to get the tkinter module loaded into python. I've tried the solution here:wiki.python.org/moin/TkInter but am unsure as how to modify my setup.py script. I have installed the latest versions of tcl/tk

Re: tkinter module not found please help

2007-01-09 Thread Asper Faner
[EMAIL PROTECTED] wrote: I'm trying to install python2.5 on my computer(os Fedora 5). My problem is that I'm unable to get the tkinter module loaded into python. I've tried the solution here:wiki.python.org/moin/TkInter but am unsure as how to modify my setup.py script. I have installed the

please help me choose a proper gui library.

2006-11-18 Thread krishnakant Mane
hello all. after finishing a project in record time using python we have taken up one more project. this time however, we need to do a gui based project which will run on windows xp and 2000. now My question is which gui toolkit should I choose? I had initially raised some doubt about

Re: please help me choose a proper gui library.

2006-11-18 Thread Phil Thompson
On Saturday 18 November 2006 5:44 pm, krishnakant Mane wrote: hello all. after finishing a project in record time using python we have taken up one more project. this time however, we need to do a gui based project which will run on windows xp and 2000. now My question is which gui toolkit

Re: please help me choose a proper gui library.

2006-11-18 Thread krishnakant Mane
On 18/11/06, Phil Thompson [EMAIL PROTECTED] wrote: You have to install Qt first. You only need to install the run-time elements (ie. the DLLs) on the client's machine. Unless your application is licensed under the GPL (and you are using the GPL version of Qt and PyQt) then there are

Re: please help me choose a proper gui library.

2006-11-18 Thread sturlamolden
krishnakant Mane wrote: now My question is which gui toolkit should I choose? It's a matter of taste. I would recommend PyGTK (yes it runs on Windows). You can design the GUI in a fly with GLADE, and import it as an XML resource in Python with one single line of code. It will save you an awful

Re: please help me choose a proper gui library.

2006-11-18 Thread Phil Thompson
On Saturday 18 November 2006 6:22 pm, krishnakant Mane wrote: On 18/11/06, Phil Thompson [EMAIL PROTECTED] wrote: You have to install Qt first. You only need to install the run-time elements (ie. the DLLs) on the client's machine. Unless your application is licensed under the GPL (and you

Re: please help me choose a proper gui library.

2006-11-18 Thread krishnakant Mane
On 18 Nov 2006 12:40:57 -0800, sturlamolden [EMAIL PROTECTED] wrote: It's a matter of taste. I would recommend PyGTK (yes it runs on Windows). You can design the GUI in a fly with GLADE, and import it as an XML resource in Python with one single line of code. I also have to consider the issue

please help with optimisation of this code - update of given table according to another table

2006-11-08 Thread Farraige
Hi I need your help... I am implementing the method that updates given table (table is represented as list of lists of strings) according to other table (some kind of merging)... This method takes following arguments: t1 - table we would like to update t2

Re: please help with optimisation of this code - update of given table according to another table

2006-11-08 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Farraige wrote: Let's say we have a table T1: A B C D E --- 1 4 5 7 7 3 4 0 0 0 and we call a method mergeTable(T1, T2, [0,1], [2,4]) It means that we would like to update columns C and E of table T1 with data from table T2 but only in case the

Re: please help with optimisation of this code - update of given table according to another table

2006-11-08 Thread Antoon Pardon
On 2006-11-08, Farraige [EMAIL PROTECTED] wrote: ... The main part of my algorithm now looks something like ... merge(t1, t2, keyColumns, columnsToBeUpdated) ... for row_t1 in t1: for row_t2 in t2: if [row_t1[i] for i in keyColumns] ==

Re: please help with optimisation of this code - update of given table according to another table

2006-11-08 Thread Gabriel Genellina
At Wednesday 8/11/2006 07:18, Farraige wrote: for row_t1 in t1: for row_t2 in t2: if [row_t1[i] for i in keyColumns] == [row_t2[j] for j in keyColumns]: # the keys are the same for colName in columnsToBeUpdated:

python readline error - please help - need it for scanner!

2006-09-08 Thread benjamin . grant
can configure, make and install everything fine. I'm using python 2.4 I have ubuntu dapper drake. I am trying to install hplip which requires python. When I do this, this also works but while running the following error occurs: Traceback (most recent call last): File /usr/local/bin/hp-setup,

Re: python readline error - please help - need it for scanner!

2006-09-08 Thread Frederic Wenzel
On 9/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: can configure, make and install everything fine. I'm using python 2.4 I have ubuntu dapper drake. I am trying to install hplip which requires python. When I do this, this also works but while running the following error occurs:

Re: simple dbus python problem ... please help

2006-07-29 Thread alisonken1
bob wrote: snip bus = dbus.Bus (dbus.Bus.TYPE_SYSTEM) hal_service = bus.get_service ('org.freedesktop.Hal') hal_manager = hal_service.get_object ('/org/freedesktop/Hal/Manager', 'org.freedesktop.Hal.Manager') snip It appears that bus.get_service() has

simple dbus python problem ... please help

2006-07-28 Thread bob
Hi, I have this sample python script from the hal sources, but it doesn't work for me. This is despite other example python scripts I have to help me are working fine. The problem is that this script is the closet to what it is I actually want to learn to do. The error is: Traceback (most

Re: Array? Please help.

2006-05-28 Thread Dr. Pastor
No it is not home work. (I have not did any home work for more than 50 years.) I am a beginner, and just do not see a really proper way to program the question. Thanks anyhow. Scott David Daniels wrote: Dr. Pastor wrote: I need a row of 127 bytes that I will use as a circular buffer. Into

Re: Array? Please help.

2006-05-28 Thread Scott David Daniels
Dr. Pastor wrote: Scott David Daniels wrote: Dr. Pastor wrote: I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0mark128) will be written, one after the other. After some time the buffer will contain the last 127 marks. Sounds a

Re: Array? Please help.

2006-05-28 Thread Scott David Daniels
Scott David Daniels wrote: Dr. Pastor wrote: Scott David Daniels wrote: Dr. Pastor wrote: I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0mark128) will be written, one after the other. After some time the buffer will contain the

Re: Array? Please help.

2006-05-28 Thread Dr. Pastor
Many thanks to you all. (Extra thanks to Mr. Daniels.) Dr. Pastor wrote: I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0mark128) will be written, one after the other. After some time the buffer will contain the last 127 marks.

Re: Array? Please help.

2006-05-28 Thread Diez B. Roggisch
George Sakkis schrieb: Diez B. Roggisch wrote: Dr. Pastor schrieb: I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0mark128) will be written, one after the other. After some time the buffer will contain the last 127 marks. (A

Re: Array? Please help.

2006-05-28 Thread George Sakkis
Diez B. Roggisch wrote: George Sakkis schrieb: Diez B. Roggisch wrote: Dr. Pastor schrieb: I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0mark128) will be written, one after the other. After some time the buffer will

Array? Please help.

2006-05-27 Thread Dr. Pastor
I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0mark128) will be written, one after the other. After some time the buffer will contain the last 127 marks. (A pointer will point to the next byte to write to.) What would be the Pythonic

Re: Array? Please help.

2006-05-27 Thread Diez B. Roggisch
Dr. Pastor schrieb: I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0mark128) will be written, one after the other. After some time the buffer will contain the last 127 marks. (A pointer will point to the next byte to write to.)

Re: Array? Please help.

2006-05-27 Thread George Sakkis
Diez B. Roggisch wrote: Dr. Pastor schrieb: I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0mark128) will be written, one after the other. After some time the buffer will contain the last 127 marks. (A pointer will point to

Re: Array? Please help.

2006-05-27 Thread Scott David Daniels
Dr. Pastor wrote: I need a row of 127 bytes that I will use as a circular buffer. Into the bytes (at unspecified times) a mark (0mark128) will be written, one after the other. After some time the buffer will contain the last 127 marks. Sounds a lot like homework. -- --Scott David Daniels

please help me is sms with python

2006-05-15 Thread huda ahmed
hi please i need your help . how can i send sms from pc(windows xp) to mobile symbian 60 6630 by python i need your help please i hope you answer me as fast as u can thanks in advance.. -- http://mail.python.org/mailman/listinfo/python-list

Re: please help me is sms with python

2006-05-15 Thread Diez B. Roggisch
huda ahmed wrote: hi please i need your help . how can i send sms from pc(windows xp) to mobile symbian 60 6630 by python i need your help please i hope you answer me as fast as u can thanks in advance.. Attach a Mobile to your computer using USB/Bluetooth, open it with a

Re: please help me is sms with python

2006-05-15 Thread [EMAIL PROTECTED]
Yet another option: Use web-service provided by your mobile operator (by means of cookielib, urllib2, etc). -- http://mail.python.org/mailman/listinfo/python-list

Re: please help me is sms with python

2006-05-15 Thread [EMAIL PROTECTED]
Yet another option: Use Python high level API for Symbian (http://opensource.nokia.com/projects/pythonfors60/) to write simple server which listen to desktop client (both in Python). Server (phone side): accept requests, send SMS using mobile phone capability Client (desktop): send requests,

Re: please help me is sms with python

2006-05-15 Thread Paul Boddie
Diez B. Roggisch wrote: Attach a Mobile to your computer using USB/Bluetooth, open it with a terminal program and use these AT-commands. http://www.cellular.co.za/hayesat.htm#SMS Command Set You can do that in python too, by opening the COM-port the handset is attached to and issuing the

Re: I meet problems while using the py2exe,Please help me!

2006-04-12 Thread Fulvio
Alle 10:17, mercoledì 12 aprile 2006, boyeestudio ha scritto: What is wrong with this problem makes sense talking about the path on where cairo reside? F -- http://mail.python.org/mailman/listinfo/python-list

I meet problems while using the py2exe,Please help me!

2006-04-11 Thread boyeestudio
cairo. The cairo module have been installed in my computer.And I can run my program from the python file. What is wrong with this problem,Please help me,a lot of thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Please help me to resolve this issue

2006-03-27 Thread Dave Mandelin
Yanping Zhang wrote: Hello everyone, I am pretty new in python. Please give me any idea about this issue: There is a function like this in my c dll: typedef void (WINAPI *myCallBack) (unsigned int myarg1, unsigned int myarg2) bool myfunc(myCallBack mycall) In my python code, I was

Please help me to resolve this issue

2006-03-24 Thread Yanping Zhang
Hello everyone, I am pretty new in python. Please give me any idea about this issue: There is a function like this in my c dll: typedef void (WINAPI *myCallBack) (unsigned int myarg1, unsigned int myarg2) bool myfunc(myCallBack mycall) In my python code, I was able to access other

Re: graph display(please help)

2006-02-25 Thread Mladen Adamovic
questions? wrote: I heard from my friend who used to program in JAVA, it is really easy to do graph display in JAVA. Thanks for any suggestions!!! Jython -- Mladen Adamovic home page: http://home.blic.net/adamm -- http://mail.python.org/mailman/listinfo/python-list

graph display(please help)

2006-02-22 Thread questions?
I heard from my friend who used to program in JAVA, it is really easy to do graph display in JAVA. I wonder whether there are similiar packages in Python I can use. Since I know a little bit Python syntax already, I can easily learn more in Python. I want to display connected graph(directed or

Re: graph display(please help)

2006-02-22 Thread Bill Scherer
questions? wrote: I heard from my friend who used to program in JAVA, it is really easy to do graph display in JAVA. I wonder whether there are similiar packages in Python I can use. Since I know a little bit Python syntax already, I can easily learn more in Python. I want to display

Importing a class, please help...

2006-02-05 Thread anon
Hi, Newbie to Python and I have a question please. I am using Windows XP, SPE 0.8.2.a and Python24. I have done this: import sys print sys.path no problem there, sys imports just fine. I have a folder that I called c\JavaProjects\PythonTesting and it shows up in the output from sys.path

Re: Importing a class, please help...

2006-02-05 Thread Jorge Godoy
anon [EMAIL PROTECTED] writes: to do an Import on it. This is where things fail. I cannot see the contents of my Jar. What am I missing here? That JARs are for Java and yo're using Python? -- Jorge Godoy [EMAIL PROTECTED] Quidquid latine dictum sit, altum sonatur. - Qualquer coisa

Re: Importing a class, please help...

2006-02-05 Thread Xavier Morel
anon wrote: Would somebody please drop me a hint, please? Yeah, the definition of JAR is Java ARchive, why the hell would a Python script be able to read a JAR in the first place (truth is it is, a JAR file is nothing but a renamed ZIP, therefore the zipfile module allows you to read it's

Re: Importing a class, please help...

2006-02-05 Thread Jorgen Grahn
On Sun, 05 Feb 2006 17:16:38 +0100, Xavier Morel [EMAIL PROTECTED] wrote: anon wrote: Would somebody please drop me a hint, please? Yeah, the definition of JAR is Java ARchive, why the hell would a Python script be able to read a JAR in the first place You are rude to an obvious newbie

<    2   3   4   5   6   7   8   >