getting equal behavior for scripts and modules ?

2009-10-11 Thread Stef Mientki
() : print 'Functional Code' any comment ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: getting equal behavior for scripts and modules ?

2009-10-11 Thread Stef Mientki
Stephen Hansen wrote: On Sun, Oct 11, 2009 at 10:50 AM, Stef Mientki stef.mien...@gmail.com mailto:stef.mien...@gmail.com wrote: [...] In languages like Delphi, you get an error message, trying to use circular references, but solving them in large programs with a lot of history

Re: getting equal behavior for scripts and modules ?

2009-10-11 Thread Stef Mientki
Gabriel Genellina wrote: En Sun, 11 Oct 2009 14:50:31 -0300, Stef Mientki stef.mien...@gmail.com escribió: I do agree that circular references should preferable be avoided. In languages like Delphi, you get an error message, trying to use circular references, but solving them in large

code in a module is executed twice (cyclic import problems) ?

2009-10-10 Thread Stef Mientki
hello, I always thought code in a module was only executed once, but doesn't seem to be true. I'm using Python 2.5. And this is the example: == A.py == My_List = [] == B.py == from A import * My_List.append ( 3 ) print 'B', My_List import C == C.py == from A import * from B import * print

Python 2.5 execfile() works only once, why ?

2009-10-09 Thread Stef Mientki
, but can't get output / error piping working fluently. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: mktime, how to handle dates before 01-01-1970 ?

2009-10-08 Thread Stef Mientki
Stephen Hansen wrote: snip Personally, while /users/ may write a date in a lazy way like 01-01-53, I'd never store that and would avoid having them enter them directly. At the UI level I'd validate and normalize it to a standard format before storing it. yes I agree, but the data is coming

Re: AES decrypting in Python

2009-10-07 Thread Stef Mientki
Heikki Toivonen wrote: Mike Driscoll wrote: EVP.Cipher(alg=aes_256_ecb, key=SomeKey, iv=SomeIV, op=dec, padding=False) I don't really see where I pass the data that needs the decrypting though. Can someone shed some light on this? Look at test_AES method in

Re: mktime, how to handle dates before 01-01-1970 ?

2009-10-06 Thread Stef Mientki
Stephen Hansen wrote: On Mon, Oct 5, 2009 at 4:54 PM, Stef Mientki stef.mien...@gmail.com mailto:stef.mien...@gmail.com wrote: hello, I want to handle datetime vars in a general way, so I use the default time-format, so I can use the standard cinversion procedures

Re: organizing your scripts, with plenty of re-use

2009-10-04 Thread Stef Mientki
Steven D'Aprano wrote: On Sat, 03 Oct 2009 10:24:13 +0200, Stef Mientki wrote: I still don't use (because I don't fully understand them) packages, but by trial and error I found a reasonable good working solution, with the following specifications I find that fascinating. You haven't

Re: organizing your scripts, with plenty of re-use

2009-10-03 Thread Stef Mientki
bukzor wrote: I would assume that putting scripts into a folder with the aim of re- using pieces of them would be called a package, but since this is an anti-pattern according to Guido, apparently I'm wrong-headed here. (Reference:

Re: is there some error crashing reporting

2009-09-30 Thread Stef Mientki
Stef Mientki wrote: like MadExcept for Delphi http://www.madshi.net/madExceptDescription.htm which catches any error, send an email with the error report and complete system analysis to the author, and continues the program (if possible) thanks, Stef apparently there isn't any such tool

is there some error crashing reporting

2009-09-28 Thread Stef Mientki
like MadExcept for Delphi http://www.madshi.net/madExceptDescription.htm which catches any error, send an email with the error report and complete system analysis to the author, and continues the program (if possible) thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

user authorization (with one time login) in a Python desktop application ?

2009-09-27 Thread Stef Mientki
with the highest authorization. So the question remains: Is it possible to create a Python Desktop application, with user authorization, based on the login of the user ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: user authorization (with one time login) in a Python desktop application ?

2009-09-27 Thread Stef Mientki
Tim Golden wrote: Steven D'Aprano wrote: On Sun, 27 Sep 2009 16:11:52 +0200, Stef Mientki wrote: I've a Python desktop application, running under Widows, that stores the data in a central SQLite database. Depending on the user login on the system, some of the data from the database

Re: set breakpoint in another module/file

2009-09-22 Thread Stef Mientki
Daniel wrote: Is there a way with pdb to set a breakpoint in another module directly using a command similar to set_trace() ? For example, I'd like to do something like this in my source code: import pdb pdb.setbreak(42, /path/to/universe.py, name == 'hitchhiker') I think winpdb ( nothing

Re: logging sound / speech handler?

2009-09-09 Thread Stef Mientki
Gregor Horvath wrote: Hi, For an application in an industrial environment where the workers are not always sitting in front of the monitor, but are within earshot of the PC I would need an sound / speech handler for the standard logging system. It should beep or better say the logging message.

Re: Flowcharting in Python?

2009-09-07 Thread Stef Mientki
Justin wrote: Hi guys, Does anyone know of any code or projects around that are written in Python or can be used by Python to write a flowcharting application? I haven't been able to find any, but the closest thing I have come across is FlowchartPython which allows you to code in Python from

Re: IDE for python similar to visual basic

2009-08-28 Thread Stef Mientki
qwe rty wrote: On Aug 29, 1:22 am, Craig fasteliteprogram...@yahoo.com wrote: Try wingware i have it and i like it. --- On Fri, 8/28/09, qwe rty hkh00...@gmail.com wrote: From: qwe rty hkh00...@gmail.com Subject: IDE for python similar to visual basic To: python-l...@python.org Date:

Re: Python for professsional Windows GUI apps?

2009-08-26 Thread Stef Mientki
David C Ullrich wrote: On Mon, 24 Aug 2009 22:22:20 -0700, sturlamolden wrote: On 25 Aug, 05:56, Peter Decker pydec...@gmail.com wrote: I use the Dabo Class Designer to visually design my forms. So what's you're point? :) Nothing, except lobbying for wxFormBuilder for anyone

Re: Python for professsional Windows GUI apps?

2009-08-26 Thread Stef Mientki
Gilles Ganault wrote: On Tue, 25 Aug 2009 13:24:39 +0200, Wolfgang Keller felip...@gmx.net wrote: The area of _desktop_ database application development indeed looks like a vast and very hostile desert in the Python landscape. The only framework that seems to be worth trying is Dabo.

Re: debugger

2009-08-22 Thread Stef Mientki
Albert Hopkins wrote: On Sat, 2009-08-22 at 01:17 -0700, flagmino wrote: [...] I am trying to debug: I press shift-F9 and F7. I end up in the interpreter where I enter s2 (1, 2). From that point if I press F7, the program restart all over. If I press Enter, the program gets out of debug

Why is unpacking of tuples only allowed when there's 1 tupple ?

2009-08-15 Thread Stef Mientki
(Polynome is again a tuple of 2 arrays) : (which already gives an error in the IDE) Respons = signal.lfilter ( *Polynome, Signal ) and thus I've to use: Respons = signal.lfilter ( Polynome[0], Polynome[1], Signal ) I use Python 2.5.2 thanks, Stef Mientki -- http://mail.python.org

Re: Why is unpacking of tuples only allowed when there's 1 tupple ?

2009-08-15 Thread Stef Mientki
thanks Jan, for the clear explanation. cheers, Stef Jan Kaliszewski wrote: Dnia 15-08-2009 o 22:50:39 Stef Mientki stef.mien...@gmail.com napisał(a): hello, I'm not sure if unpacking is the right term but if I have a tuple of 2 arrays, I can either call a function

Re: Looking for a dream language: sounds like Python to me.

2009-07-28 Thread Stef Mientki
Matlab, from The Mathworks, has a companion product called Simulink. This allows the user to graphically build ‘algorithms’ in block form. There is a similar Python function. Where can I find a Python functionality like simulink ? thanks, Stef Mientki -- http://mail.python.org/mailman

sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
the same query, takes less than 5 seconds (including displaying the full table in a grid). Are there in Python faster ways to get the query results ? Would it be faster if I used an ODBC coupling and PyODBC to interface the database ? thanks, Stef Mientki -- http://mail.python.org/mailman

Re: sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
Tim Chase wrote: until now I used only small / simple databases in Python with sqlite3. Now I've a large and rather complex database. The most simple query (with just a result of 100 rows), takes about 70 seconds. And all that time is consumed in cursor.fetchall Using the same database in

Re: sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
Piet van Oostrum wrote: Stef Mientki stef.mien...@gmail.com (SM) wrote: SM btw, I don't know if it's of any importance, the SQL-statement I perform is SM select OPNAMEN.*, NAME, NAME_, SCORES.SCORE, PATIENT.* SM from OPNAMEN SMinner join POID_VLID on OPNAMEN.POID

Re: sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
David Stanek wrote: On Thu, Jul 23, 2009 at 9:02 AM, Stef Mientkistef.mien...@gmail.com wrote: btw, I don't know if it's of any importance, the SQL-statement I perform is select OPNAMEN.*, NAME, NAME_, SCORES.SCORE, PATIENT.* from OPNAMEN inner join POID_VLID on OPNAMEN.POID

Re: sqlite3 performance problems only in python

2009-07-23 Thread Stef Mientki
Che M wrote: On Jul 23, 3:58 pm, Stef Mientki stef.mien...@gmail.com wrote: Piet van Oostrum wrote: Stef Mientki stef.mien...@gmail.com (SM) wrote: SM btw, I don't know if it's of any importance, the SQL-statement I perform is SM select OPNAMEN.*, NAME, NAME_

Re: any suggestions to synchronize typed text and speech ?

2009-07-21 Thread Stef Mientki
hi Marcus, That sounds like a very specialized type of thing, Well from an application point of view, with the current netbooks, this looks like a perfect tool for any conversation or meeting. which only the few people with experience with wxPython, PyAudio, and Scintilla could help you

Re: any suggestions to synchronize typed text and speech ?

2009-07-20 Thread Stef Mientki
thanks Marcus, Marcus Wanner wrote: On 7/19/2009 4:15 PM, Stef Mientki wrote: hello, I'm using Scintilla as a wxPython widget with great pleasure. I now have an application where I want to make notes during a conversation, but also want to record the speech during that conversation. I'm

any suggestions to synchronize typed text and speech ?

2009-07-19 Thread Stef Mientki
, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to run the main section of another module ?

2009-07-12 Thread Stef Mientki
SM if __name__ == '__main__': SMimport db_test SMnew_globals = {} SMnew_globals [ '__name__' ] = '__main__' SMnew_globals [ '__file__' ] = 'not really valuable' SMexecfile ( 'db_test.py', new_globals ) Why not: import db_test db_test.main() I think that is what Aahz

Re: Package for fast plotting of many data points in Python?

2009-07-09 Thread Stef Mientki
tt-industries wrote: Hi, I am programming a oscilloscope module in Python. For this reason, I want to plot very many data points as fast as possible. This can be more than 100 000 at once. At once is impossible ;-) So far I have been using the ploting module of wxPython. which plotting

Re: Python/pyobjC Apps on iPhone now a possibility?

2009-07-07 Thread Stef Mientki
interpreter would only be adding pressure to the constraints; even if it was an optimized interpreter. I don't know iPhone, but I've done some experiments with 400 MHz arm, running Windows Mobile, and found PocketPyGUI running very very well on these devices. cheers, Stef Mientki -- http

Re: Python/pyobjC Apps on iPhone now a possibility?

2009-07-07 Thread Stef Mientki
J Kenneth King wrote: Stef Mientki stef.mien...@gmail.com writes: So, the question is, can the same thing be done for Python apps? I love Python and all, but it'd be apt to ask, what's the point? The iPhone is running on what? A 400Mhz ARM processor? Resources on the device

Re: Python and webcam capture delay?

2009-07-06 Thread Stef Mientki
jack catcher (nick) wrote: Hi, I'm thinking of using Python for capturing and showing live webcam stream simultaneously between two computers via local area network. Operating system is Windows. I'm going to begin with VideoCapture extension, no ideas about other implementation yet. Do you

Re: Adding an object to the global namespace through f_globals is that allowed ?

2009-07-05 Thread Stef Mientki
Terry Reedy wrote: Stef Mientki wrote: hello, I need to add an object's name to the global namespace. The reason for this is to create an environment, where you can add some kind of math environment, where no need for Python knowledge is needed. The next statement works, but I'm not sure

Re: Reversible Debugging

2009-07-04 Thread Stef Mientki
Patrick Sabin wrote: Hello, I am interested if there are any python modules, that supports reversible debugging aka stepping backwards. Any links or ideas would be helpful, because I am thinking of implementing something like that. In some cases it would be nice to have something like

Re: What does Guido want in a GUI toolkit for Python?

2009-06-28 Thread Stef Mientki
Martin v. Löwis wrote: I sorta' wish he'd just come out and say, This is what I think would be suitable for a GUI toolkit for Python: He is not in the business of designing GUI toolkits, but in the business of designing programming languages. So he abstains from specifying (or even

[ANN] first full alpha release of PyLab_Works v0.3

2009-06-17 Thread Stef Mientki
*, wxPython. Although the PyLab_Works programs are compiled with Py2Exe, all the source files are explicitly included. have fun, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf

Re: first full alpha release of PyLab_Works v0.3

2009-06-17 Thread Stef Mientki
program didn't start because .dll is missing (sorry I don't have the name)... I don't know if that is just an issue with the installer with vista or not (missing msv something 71. dll) You probably mean the microsoft visual C++ runtime (msvcr71.dll), windows vista has a brand new way

Re: simple GUI for my application?

2009-06-16 Thread Stef Mientki
Filipe Teixeira wrote: Hi, I'm really struggling to find the best GUI to make a simple application. I'm doing a program to load all the ini files in the current folder, or the folder that the user chooses and list the specifics entries in it. So, the program would be like this: Som tabs here

[ANN] first full alpha release of PyLab_Works v0.3

2009-06-16 Thread Stef Mientki
*, wxPython. Although the PyLab_Works programs are compiled with Py2Exe, all the source files are explicitly included. have fun, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

zipfile doesn't compress very good, are there other solutions ?

2009-06-11 Thread Stef Mientki
( the documentation isn't overwhelming). thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: zipfile doesn't compress very good, are there other solutions ?

2009-06-11 Thread Stef Mientki
Peter Otten wrote: Stef Mientki wrote: I packed all sources with zipfile, but the compression doesn't seem to be very good. If you don't specify the compression, the files are not compressed at all. Just in case you didn't know... .. and would you be willing to tell me how I

Re: zipfile doesn't compress very good, are there other solutions?

2009-06-11 Thread Stef Mientki
Peter Otten wrote: Stef Mientki wrote: Peter Otten wrote: Stef Mientki wrote: I packed all sources with zipfile, but the compression doesn't seem to be very good. If you don't specify the compression, the files are not compressed at all. Just in case you

Re: Wrapping LabVIEW and DAQmx Libraries for Python

2009-06-08 Thread Stef Mientki
hi Ketteth, I was waiting for someone, making these available. The hardware modules of NI are very good, and they have a huge range of DAQ cards, even relative cheap ones. We use USB 6009 and 9162 container a lot ( now in Delphi, because the lack of Python drivers :-( I took a biref look at

pyc-files contains absolute paths, is this a bug ?

2009-06-07 Thread Stef Mientki
where I like, and it runs fine. Now when I've run it once, I move the subdirectory to another location, at it doesn't run. Looking with a hex editor into some pyc-files, I see absolute paths to the old directory. Is this normal, or am I doing something completely wrong ? thanks, Stef Mientki

Re: is anyone using text to speech to read python documentation

2009-06-03 Thread Stef Mientki
eric_dex...@msn.com wrote: I wrote a small pre-processor for python documentation and I am looking for advice on how to get the most natural sounding reading. I uploaded an example of a reading of lxml documentation as a podcast1

Re: how to get the path of a module (myself) ?

2009-06-02 Thread Stef Mientki
The same rule applies for your modules. As a general rule, NEVER say: execfile('mymodule.py') instead do: import mymodule mymodule.some_function() mymodule.another_function() (There are exceptions, but if you need to ask what they are, you're not ready to learn them! *wink*) hi

Re: how to get the path of a module (myself) ?

2009-06-02 Thread Stef Mientki
Robert Kern wrote: On 2009-06-02 14:24, Stef Mientki wrote: The same rule applies for your modules. As a general rule, NEVER say: execfile('mymodule.py') instead do: import mymodule mymodule.some_function() mymodule.another_function() (There are exceptions, but if you need to ask what

how to get the path of a module (myself) ?

2009-06-01 Thread Stef Mientki
that called my module. Any ways to get the path of myself ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get the path of a module (myself) ?

2009-06-01 Thread Stef Mientki
MRAB wrote: Stef Mientki wrote: hello, I've pictures stored in a path relative to my python source code. To get a picture, I need to know what path I'm on in each python module. I thought __file__ would do the job, but apparently I didn't read the documentation carefully enough, because file

Re: how to get the path of a module (myself) ?

2009-06-01 Thread Stef Mientki
Thanks David, but David Lyon wrote: On Mon, 01 Jun 2009 23:28:16 +0200, Stef Mientki stef.mien...@gmail.com wrote: hello, I've pictures stored in a path relative to my python source code. To get a picture, I need to know what path I'm on in each python module. I thought __file__ would

Re: how to get the path of a module (myself) ?

2009-06-01 Thread Stef Mientki
Steven D'Aprano wrote: On Tue, 02 Jun 2009 01:46:23 +0200, Stef Mientki wrote: MRAB wrote: Stef Mientki wrote: hello, I've pictures stored in a path relative to my python source code. To get a picture, I need to know what path I'm on in each python module. I thought __file__

Re: What text editor is everyone using for Python

2009-05-27 Thread Stef Mientki
John Yeung wrote: On May 26, 9:43 am, Mel mwil...@the-wire.com wrote: SciTE I like one big uncomplicated window, tabbed file panes, syntax coloring and help with indentation. There's nothing to it I hate. It would be nice if customization were easier. This is a decent summary of

how to get rid of pyc files ?

2009-05-24 Thread Stef Mientki
) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython gurus, please help

2009-05-24 Thread Stef Mientki
Piet van Oostrum wrote: Jive Dadson notonthe...@noisp.com (JD) wrote: JDI have an application that opens an image file of the user's choice. I JD have an exception handler for the case that the user selected a bad or JD unsupported image file. My code is catching the

Re: making a python program in windows

2009-05-21 Thread Stef Mientki
Rustom Mody wrote: I know how to make a python script behave like a (standalone) program in unix -- 1. put a #! path/to/python as the first line 2. make the file executable The closest I know how to do this in windows is: r-click the file in win-explorer goto properties goto open with change

os.path.split gets confused with combined \\ and /

2009-05-17 Thread Stef Mientki
= filename.replace ( '\\','/') return os.path.split ( filename ) how do others solve this problem ? Are there better ways to solve this problem ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Just wondering

2009-05-15 Thread Stef Mientki
and this, while it's realy doing something is even 4 times faster than main2 ;-) And if you only need integers, it can be even faster. def main3(): from numpy import zeros t = time() a = zeros ( 1000 ) b = a + 3.14 print loop time: + str(time() - t) cheers, Stef Gediminas

OS independent file associate ?

2009-05-14 Thread Stef Mientki
/ Gnome or whatever I've to detect. Through trial and error I found a working mechanism under Ubuntu, but as I have to specify gnome, I doubt this will work under other Linux systems. any good solutions available ? thanks, Stef Mientki import subprocess CHM = '../numpy.chm' # works

Unknown Visual C++ error

2009-04-28 Thread Stef Mientki
hello, Anyone knows what this error message means ? Python 2.5.2 thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Getting the dir from the other ancestor ?

2009-04-28 Thread Stef Mientki
can't pass it through the parameter list, because I use *args, **kwargs I possibly could use some global variable, but that's not my preference. Any other suggestions ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting the dir from the other ancestor ?

2009-04-28 Thread Stef Mientki
tuxagb wrote: On 28 Apr, 15:01, Stef Mientki stef.mien...@gmail.com wrote: hello, I have a class, derived from some user defined class (User_Defined_Ancestor) and some basic class (Basic_Ancestor). One of the major tasks of the Basic_Ancestor, is to hide all kinds of implementation details

Re: Unknown Visual C++ error

2009-04-28 Thread Stef Mientki
Gabriel Genellina wrote: En Tue, 28 Apr 2009 08:56:34 -0300, Stef Mientki stef.mien...@gmail.com escribió: Anyone knows what this error message means ? Python 2.5.2 Either Python itself or a third-party library called the abort() function, usually due to a critical error. Try looking

can't find the right simplification

2009-04-23 Thread Stef Mientki
to write: self.P[0] [ 'Filename' ] = Some_Value But I can't figure out how to accomplish that ? Any suggestions ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

print as a function in 2.5 ?

2009-04-19 Thread Stef Mientki
doesn't seem to be allowed, nor is there an import from __future__ :-( What's the best solution (other than moving to 2.6 or up ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: print as a function in 2.5 ?

2009-04-19 Thread Stef Mientki
Tino Wildenhain wrote: Stef Mientki wrote: hello, For several reasons I still use Python version 2.5. I understand that the print-statement will be replaced in Python version 3.0. At the moment I want to extend the print statement with an optional traceback. So I've 2 options: 1- make

Re: Is there a programming language that is combination of Python and Basic?

2009-04-18 Thread Stef Mientki
BJörn Lindqvist wrote: I first started programming basic and i don't think it has hurt me much. I can somewhat sympathise with the op, neither python nor any other mainstream language can still do this: SCREEN 13 PSET 160,100,255 Maybe, who is able to understand such nosense without a lot

Re: Domain Driven Design and Python

2009-04-16 Thread Stef Mientki
José María wrote: Hi, I've been searching for information about the application of DDD principles in Python and I did'nt found anything! Is DDD obvious in Python or is DDD inherent to static languages like Java or C#? Cheers. -- http://mail.python.org/mailman/listinfo/python-list I'm not

Re: need to start a new project , can python do all that ?

2009-04-15 Thread Stef Mientki
there's even already written an EPD in Python, but I can't find it right now, googling is difficult, because EPD stand for the more popular Ebthought Python Distro :-( cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: show PDF in wxPython?

2009-04-14 Thread Stef Mientki
alejandro wrote: I would like to import a pdf in a wxPython widget, but didn't find any solution. The imported PDF should work like if it were open in IE or Mozilla... Sugestions? Solutions? wxPython has several options, all shown in the wxPython demo !! ( IE activeX, pdf-activeX ) btw

Re: video capture in Python ?

2009-04-13 Thread Stef Mientki
Tim Roberts wrote: Stef Mientki stef.mien...@gmail.com wrote: has anyone got video capturing (from a webcam) successful running in a wxPython application under winXP ? I got some links, but it seems quit complicated to get everything installed, and all the packages you need don't

video capture in Python ?

2009-04-12 Thread Stef Mientki
trial and error I expect. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: 3D plotting in a GUI

2009-04-08 Thread Stef Mientki
Baris Demir wrote: Stef Mientki wrote: Baris Demir wrote: Hi all, I need to develop a GUI for some scientific data processing operations and this GUI should work well with a 3D plotting module, also with NumPy and SciPy for sure. I made a search about packages but, there are plenty

extracting plain text from RTF-file ?

2009-04-07 Thread Stef Mientki
hello, I'm looking for a library to extract plain text from RTF-files. I found these only RTF generation http://pyrtf.sourceforge.net/ should be able to parse, but no download files http://code.google.com/p/pyrtf-ng/ any suggestions ? thanks, Stef Mientki -- http://mail.python.org/mailman

Re: extracting plain text from RTF-file ?

2009-04-07 Thread Stef Mientki
Brent Bloxam wrote: Stef Mientki wrote: hello, I'm looking for a library to extract plain text from RTF-files. I found these only RTF generation http://pyrtf.sourceforge.net/ should be able to parse, but no download files http://code.google.com/p/pyrtf-ng/ any suggestions ? thanks, Stef

Re: 3D plotting in a GUI

2009-04-07 Thread Stef Mientki
Baris Demir wrote: Hi all, I need to develop a GUI for some scientific data processing operations and this GUI should work well with a 3D plotting module, also with NumPy and SciPy for sure. I made a search about packages but, there are plenty of these modules available. What kind of a

Re: Need advise about an application

2009-04-05 Thread Stef Mientki
azrael wrote: I am currently working on an application and I need a advise. I am supposed to read data from a device connected to a serial port. I am reading data using pySerial. The devise is sending signals with a time between two signals of one second. The application is supposed to

speak or Speak ?, was Re: Bullshit Generator

2009-03-29 Thread Stef Mientki
quit nice ! But I had to replace speak by Speak voice.Speak ( generatedSentence ) not a big issue, but as I want to deploy programs with Sapi, I'm interested if there are different speak engines around. thanks Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: What way is the best to check an empty list?

2009-03-25 Thread Stef Mientki
andrew cooke wrote: Andre Engels wrote: On Wed, Mar 25, 2009 at 4:21 PM, andrew cooke and...@acooke.org wrote: i will go against the grain slightly and say that len is probably the best compromise in most situations (although i admit i don't know what [...] but i may be

Re: Best GUI toolkit with Table support

2009-03-24 Thread Stef Mientki
deech wrote: Hi all, I am making a cross-platform frontend to a sqlite3 database. Which python GUI toolkit has the best table support? Tkinter doesn't seem to support them (without additional package installation). The issue is that the application must run off a flash drive with a vanilla

Is it possible to create a shortcut ?

2009-03-21 Thread Stef Mientki
I would like to make a shortcut for this: self.Brick.Par [ self.EP[0] ] = something like this: self.P[0] = is that possible, otherwise than by eval / exec ? thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: speech recognition help

2009-03-21 Thread Stef Mientki
Tim Chase wrote: do u know which one 1. cmu sphinx 2. natural speaking 3. windows sapi is best ( in accuray and speed ) for predefined vocabulary.. and worth for learning as well.? For a pre-defined vocabulary, they should all be pretty good. In general (for non-predefined vocabularies),

Re: Is it possible to create a shortcut ?

2009-03-21 Thread Stef Mientki
Steven D'Aprano wrote: On Sat, 21 Mar 2009 11:55:04 +0100, Stef Mientki wrote: I would like to make a shortcut for this: self.Brick.Par [ self.EP[0] ] = That's a pretty ugly expression there. (Mind you, I've seen worse.) And a non-standard naming convention. I'm just sayin

Re: speech recognition help

2009-03-20 Thread Stef Mientki
Murali kumar wrote: hi all.. I want* to add speech recognition *to my application for *disabled persons*. (running in python 2.6 with wxpython 2.8.9..) _problem:_ actually i have some buttons scanned one by one.. button name is 'add' and if i tell 'add' then add button click event must be

Re: is there an easy way to parse a nested list ?

2009-03-16 Thread Stef Mientki
thanks Aaron, Paul and Vlastimil, sorry I phrased my question wrong, I was looking for parsing an expression of an element of a nested list the code below seems to do what I'm looking for. cheers, Stef Aaron Brady wrote: On Mar 15, 6:44 pm, Stef Mientki stef.mien...@gmail.com wrote: hello

Re: can error messages be improved or can they be overridden ?

2009-03-15 Thread Stef Mientki
thanks RDM, I finally had a case where I really needed it, so it tried, works perfect, except the marked lines should be indented 1 more. cheers, Stef rdmur...@bitdance.com wrote: andrew cooke and...@acooke.org wrote: rdmur...@bitdance.com wrote: [...] (You know, I really ought to

is there an easy way to parse a nested list ?

2009-03-15 Thread Stef Mientki
hello, I need to parse a nested list, given as a string, like this line = A [ B [ C+2 ] + 3 ] ( I probably can do it with find, but I guess that's not the most elegant way, besides recusrion is not my strongest point) which should be parsed so I get an list from inner to outer side

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread Stef Mientki
: self.Brick.Par [ self.EP[2] ]['FileName'] = filename except IndexError,e: msg = %s: '%s %s %s %d % (e.strerror,e.filename,self.EP,self.EP[2],len(self.Brick.Par)) print msg Bye, Ron. -Original Message- From: Stef Mientki

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread Stef Mientki
rdmur...@bitdance.com wrote: Stef Mientki stef.mien...@gmail.com wrote: thanks Ron, but I was looking for a more general solution, in which I don't change the program itself, and where the error messages (in general) become more informative than it is by default. [snip

Re: Top posting

2009-02-23 Thread Stef Mientki
I agree that top posting on a message like this is not very convenient, but for simple messages ... D'Arcy J.M. Cain wrote: On Mon, 23 Feb 2009 19:37:17 +0100 Stef Mientki stef.mien...@gmail.com wrote: FYI, top posts are much harder to read and to reply to than if you edit the message

Re: Top posting

2009-02-23 Thread Stef Mientki
btw, it's also polite (in some cultures) to sign your messages ;-) Hmm. I appreciate that you took the time to remove my signature from your reply but I don't think that you should then claim that I never included one. Sorry for that. (now you get an idea how difficult it is for

can error messages be improved or can they be overridden ?

2009-02-22 Thread Stef Mientki
in this problem before me ;-) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to detect if an object is simple (not a pointer, unmutable ) ?

2009-02-17 Thread Stef Mientki
as mutable ? ( The type of connection need not be a standard Python type, but might be any type created by the user. ) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to detect if an object is simple (not a pointer, unmutable ) ?

2009-02-17 Thread Stef Mientki
thanks Diez, Diez B. Roggisch wrote: Stef Mientki schrieb: hello, I'm making a virtual machine, in which (small) pieces of software (called bricks) are connected, by connecting an output of a brick to the input of another brick. A connection between 2 bricks may be of any type, so it might

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread Stef Mientki
azrael wrote: To be honest, in compare to Visual Studio, Gui Builders for wx widgets are really bad. Also completly for python there is not one good GuiBuilder. The only one I have seen that would come near VS was BoaConstructor, But the number of Bugs is just horrific. Too bad that no one is

hpw to convert a linux python script ?

2009-02-11 Thread Stef Mientki
hello, I've a python script, written for some Linux version, now I want to run it under windows. It complains of not finding files in /usr/share/tinybldLin/ where is the directory where the script is located and started from. As there are a whole lot of these lines, in a whole lot

<    1   2   3   4   5   6   7   >