[ANN] Portable SciPy v0.1 released

2007-04-28 Thread Stef Mientki
://pic.flappie.nl/ The simple method described here, can be used to create any set of Python packages + other programs, with just a few lines of code (example available). have fun, and let me hear what you think of it. Stef Mientki -- http://mail.python.org/mailman/listinfo/python-announce-list

[ANN] Scope_Plot, another plot library for real time signals.

2007-11-04 Thread Stef Mientki
description shows a more complex signal organization. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

Re: [SciPy-user] ANN: EPD - Enthought Python Distribution released

2008-04-22 Thread Stef Mientki
packages, but 8 of the 10 other packages are already in ETS ??? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

[ANN] PPyGui emulator

2008-05-14 Thread Stef Mientki
and downloads, see http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pp_intro.html have fun, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

ANN: gui_support, a convenience library for wxPython

2008-10-21 Thread Stef Mientki
hello, gui_support is library for easy creation of GUI designs in wxPython. Although it's quit stable, it's part of a larger project and therefor has a lot of dependencies, but these can easily be removed. Warning: Although this library might be very attractive to newbies, the use of this

ANN: gui_support v1.5, a convenience library for wxPython

2008-10-25 Thread Stef Mientki
hello, Although I personally hate to release a new version so soon, the error reporting is so essential, that updating is a must. V1.5 changes - errors (catched by the library) will now give a normal error report - GUI preview function now available in this library gui_support is library for

[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

[ANN] Android Debug Bridge (ADB) Scripting Language For Android (SL4A) convenience library

2011-11-28 Thread Stef Mientki
hello, The information on ADB / SL4A is quiet overwhelming. Despite that, especially for people, not familiar with Linux, it's not an easy task to get their first program running. This library allows you to easy upload and run Python files on a Android device, without pressing any button on

(websearch) script ?

2008-02-04 Thread Stef Mientki
of standard scripts on the web ? Just curious. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: SAGE for FPGA development

2008-02-14 Thread Stef Mientki
Blubaugh, David A. wrote: Bill, Let me first say that my FPGA experiences are of the following nature: 1.) Developed control algorithms onto a FPGA that were utilized to control a switch-reluctance motor (three-phase as well six-phase). 2.) I am currently in the process of developing

Re: SAGE for FPGA development

2008-02-14 Thread Stef Mientki
! But to be honest, I don't like LabView very much and would love to see an open source alternative ! succes, cheers, Stef Mientki David Blubaugh -Original Message- From: Stef Mientki [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 1:25 PM To: python-list

Re: pyinstall and matplotlib

2008-02-17 Thread Stef Mientki
hi John, John Henry wrote: Anybody willing to help? I struggled the past few days with the same problem, and with the help of Werner Bruhin (wxPython list) I found a solution. I had 2 problems: - not finding mpl datapath - matplotlib insisted on installing backends that were distorted on

Re: pyinstall and matplotlib

2008-02-19 Thread Stef Mientki
Traceback (most recent call last): File multicolor.py, line 11, in ? File pylab.pyc, line 1, in ? File matplotlib\pylab.pyc, line 222, in ? File matplotlib\backends\__init__.pyc, line 24, in pylab_setup File matplotlib\backends\backend_tkagg.pyc, line 7, in ? ImportError: No

Any experience with Python on a PDA ?

2008-02-22 Thread Stef Mientki
hello, I wonder if anyone has (good ;-) experiences with Python on a PDA ? And if so, - what OS - what GUI thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for open source simulink clone in python

2008-02-24 Thread Stef Mientki
[EMAIL PROTECTED] wrote: Does anyone know of something like this? I've searched to no avail. GNUradio companion is promising but tied to gnuradio. not exactly, this is what I've found until now * Orange http://magix.fri.uni-lj.si/orange/screenshots.asp * Elefant

invert or not ?

2008-03-01 Thread Stef Mientki
hello, from the manual I read that a bitwise inversion should be done by invert. But from some experiments I see that not works equally well. Is this coincidence ? (The disadvantage of invert is that I've to import operators) thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython/wxWidgets ok for production use ?

2008-03-10 Thread Stef Mientki
Stefan Behnel wrote: Malcolm Greene wrote: My personal experience with wxPython has its ups and downs. Specifically when it comes to crashes, I wouldn't bet my life on it. I'm new to Python and getting ready to build a small client based application intended to run on Windows and

Re: wxPython: some help with DragDrop

2008-03-10 Thread Stef Mientki
Eric von Horst wrote: Hi, I need some advice on DragDrop. What I want to achieve is the following: - I have a window that is divided in two : on the left hand I have a wx.TreeCtlr and on the other hand a wx.StaticBitmap I want to be able to drag an item from the tree onto the

Re: wxPython/wxWidgets ok for production use ? (was Re: Quality assurance in Python projects containing C modules)

2008-03-11 Thread Stef Mientki
Gilles Ganault wrote: On Mon, 10 Mar 2008 11:27:06 -0400, Malcolm Greene [EMAIL PROTECTED] wrote: Any suggestions on an alternative Python client-side GUI library (pyQT ?) or tips on where I can find out more about wxPython/wxWidget problems? One thing that bothers me is that it seems like

how to pass the workspace ?

2008-03-11 Thread Stef Mientki
in node1, to node 2, etc ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to pass the workspace ?

2008-03-13 Thread Stef Mientki
Gary Herron wrote: Stef Mientki wrote: hello, I've GUI tree with drag and drop nodes, where each nodes contains a code snippet. Now I want to run one or more branches in that tree, so I enumerate over the nodes and have to run something like this: execfile ( node1 ) execfile ( node2

Re: how to pass the workspace ?

2008-03-14 Thread Stef Mientki
Thanks, Gary and Dennis, Dennis Lee Bieber wrote: On Thu, 13 Mar 2008 21:35:42 +0100, Stef Mientki [EMAIL PROTECTED] declaimed the following in comp.lang.python: The result of globals and locals in the file is eaxctly the same and none of them mentions 'NewVar' and 'beer' The result

Is this valid ?

2008-03-19 Thread Stef Mientki
hello, by accident I typed a double value test, and to my surprise it seems to work. Is this valid ? a = 2 b = 2 a == b == 2 thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: wxFormBuilder

2008-03-20 Thread Stef Mientki
sturlamolden wrote: I just discovered wxFormBuilder. After having tried several GUI builders for wx (including DialogBlocks, wxGlade, XRCed, Boa constructor), this is the first one I can actually use. To use it wxFormBuilder with wxPython, I generated an xrc resource and loaded it with

class or inherited list ?

2008-03-28 Thread Stef Mientki
brackets and no quotes. What are others opinion about this ? thanks, Stef Mientki class super_list(list): pass def kwadraat ( value ) : return value * value x={} x['frequency']=33 x['functie']=kwadraat print x['functie'](2) y = super_list() y.frequency = 33 y.functie = kwadraat print

Re: class or inherited list ?

2008-03-28 Thread Stef Mientki
thanks Gabriel, Gabriel Genellina wrote: En Fri, 28 Mar 2008 12:15:45 -0300, Stef Mientki [EMAIL PROTECTED] escribió: Passing all kinds of data between objects, I'm looking for an elegant (and simple) way to pack the data. Now it looks to me that both the class and the inherited list

Re: class or inherited list ?

2008-03-28 Thread Stef Mientki
as well inherit from object. Good point, didn't notice that. Sorry, not a good point, by deriving from a list, I get all the list methods for nothing. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Class or dictionary ? (was: class or inherited list ?)

2008-03-28 Thread Stef Mientki
Sorry, although the code example was correct, the question was wrong. Stef Mientki Stef Mientki wrote: hello, Passing all kinds of data between objects, I'm looking for an elegant (and simple) way to pack the data. Now it looks to me that both the class and the inherited list, performs

Re: Python in High School

2008-04-02 Thread Stef Mientki
://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_animations_screenshots.html cheers, Stef Mientki And you are going to teach them Java? Oh, please don't. Let the colleges torture them. :=) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in High School

2008-04-03 Thread Stef Mientki
, but the second issue certainly is not. I'm right now working on a Labview like editor in Python, which does obey the demand for flatness of information. The first results can be seen here:http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_animations_sc... cheers, Stef Mientki

Re: displaying execution of Python code

2008-04-03 Thread Stef Mientki
noahwatkins wrote: I'll start my question by describing my desired result. I will construct a GUI which will be used to open a Python script. I would then like to be able to display the Python script, execute it, and highlight the lines of the Python as they are executing. More technically,

win-shortcuts, file associates and command-line parameters ?

2008-04-10 Thread Stef Mientki
the commandline parameters correctly, without explicitly specifying the python interpreter ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: How is GUI programming in Python?

2008-04-11 Thread Stef Mientki
Rune Strand wrote: On Apr 10, 3:54 am, Chris Stewart [EMAIL PROTECTED] wrote: ... Next, what would you say is the best framework I should look into? I'm curious to hear opinions on that. GUI-programming in Python is a neanderthal experience. What one may love with console scripts

Re: win-shortcuts, file associates and command-line parameters ?

2008-04-11 Thread Stef Mientki
Gabriel Genellina wrote: En Thu, 10 Apr 2008 16:03:28 -0300, Stef Mientki [EMAIL PROTECTED] escribió: under windows I tried to make a shortcut to a py -file, to run a program. So making a shortcut like this works perfect: D:\PyLab_Works.py But the problem is that I need to give

Re: Frame work for simple physics web applications

2008-04-19 Thread Stef Mientki
Rick Muller wrote: On Apr 19, 2:44 pm, globalrev [EMAIL PROTECTED] wrote: www.vpython.orgmight be what you are looking for. Except, if I'm not mistaken, vpython isn't a web framework. It would work if I wanted to write some python scripts and have other people run them, but I want

Re: Python script to automate use of Google Translate? (or other translator)

2008-04-23 Thread Stef Mientki
Trent Nelson wrote: I have the need to occasionally translate a single word programatically. Would anyone have a Python script that would let me do this using Google (or another) translation service? As a matter of fact, yes, I do! This happens to be my most favourite piece of Python

class or class-instance ?

2008-04-28 Thread Stef Mientki
an instance of that class else do nothing now I should be able to call the above procedure in either of the following ways: somefunction ( someclass ) or somefunction ( someclass () ) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: class or class-instance ?

2008-04-28 Thread Stef Mientki
There is a isclass in the module inspect. Diez thanks Diez, that's exactly what I was looking for. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

__getattr__ and recursion ?

2008-04-29 Thread Stef Mientki
with == 1 I'm not allowed to use for item in self.extra_getters : because it will result in an infinite recursion. But in the line indicated with == 2 , I am allowed ... ... why is this allowed ?? thanks, Stef Mientki

Re: __getattr__ and recursion ?

2008-05-01 Thread Stef Mientki
thanks Peter, for your perfect explanation, and By the way, looping over a dictionary destroys its key advantage, O(1) lookup. Use # untested if attr in self.extra_setters: self.extra_setters[attr](value) else: self.__dict__[attr] = value and something similar in __getattr__().

Re: Browser + local Python-based web server vs. wxPython

2008-05-05 Thread Stef Mientki
Mike Driscoll wrote: On May 5, 9:22 am, [EMAIL PROTECTED] wrote: I'm looking at rewriting some legacy VB applications and am pondering which of the following techniques to use: 1. Browser based GUI with local web server (Browser + wsgiref.simple_server) (I'm assuming that simple_server is

how to reference my own module ?

2008-05-10 Thread Stef Mientki
be used in the user program just by copy / paste. For calling a function / class in the user program I've to write: sizer = gui.VBox () So also write exactly the same sentence in the library examples, but gui is not recognized Any ideas how I can realize the above ? thanks, Stef Mientki

Re: Any other UI kits with text widget similar to that in Tk?

2008-05-10 Thread Stef Mientki
Kenneth McDonald wrote: I'm wondering if any of the other GUI kits have a text widget that is similar in power to the one in Tk. wxWindows, from what I can tell, doesn't offer nearly the options the Tk widget does. I'm less familiar with Qt. Any feedback would be most appreciated. Thanks,

Re: how to reference my own module ?

2008-05-10 Thread Stef Mientki
Terry Reedy wrote: Stef Mientki [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | hello, | | I've a library that I import as | |import ppygui.api as gui | | the reason for this construct is that I've to use different libraries | for different platforms. | | Now I like to write

[ANN] PPyGui emulator

2008-05-13 Thread Stef Mientki
and downloads, see http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pp_intro.html have fun, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] PPyGui emulator

2008-05-14 Thread Stef Mientki
clabepa wrote: Stef Mientki wrote: I've ran the first real world application through PPyGui-emulator, so I think it's time to release the first version. There's lot of room for improvements and a more beautiful layout. PPyGui-emulator is build upon wxPython and released under BSD license

multiple databases, what's the best interface ?

2008-05-17 Thread Stef Mientki
the applications in Python. What's the best interface so I can use the same program for all databases, and just have to change the database name, if I want to use another database ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

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

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: 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: 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

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: 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

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

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: 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

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: 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

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: 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

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: 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: 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: wxpython ms-dos black window popping up in background

2008-09-10 Thread Stef Mientki
Mike Driscoll wrote: On Sep 10, 6:48 am, James A. Donald [EMAIL PROTECTED] wrote: On Tue, 9 Sep 2008 14:35:13 -0700 (PDT), icarus [EMAIL PROTECTED] wrote: Oh ok. Thanks. In windows xp I just renamed the file extension to .pyw That did it. one more question... how do I

Re: GUI programming with python

2008-09-12 Thread Stef Mientki
Al Dykes wrote: In article [EMAIL PROTECTED], Alan Franzoni [EMAIL PROTECTED] wrote: zamil was kind enough to say: [cut] If your needs are very basic, you can stick with the tk module that comes with python. It's not really feature-packed, but it's maintained and pretty cross-platform.

Re: Has any one out there ever worked with the Rpyc, which is a remote process call for python

2008-09-13 Thread Stef Mientki
Blubaugh, David A. wrote: To All, Has any one out there ever worked with the Rpyc, which is a remote process call for python? Yes David Blubaugh This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named

Re: A service for testing Python code on multiple platforms and versions

2008-09-13 Thread Stef Mientki
David Moss wrote: Hopefully a service like this already exists and I just haven't found it yet. If not it could be an idea for some kind soul(s) to pick up and run with ;-) As someone who writes and releases Python modules for the community, I find it difficult to have a decent level of

Re: Python GUI for animation

2008-09-16 Thread Stef Mientki
://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_animations_screenshots.html Although it's in alfa stage, I'm using parts of it as a regular tool already. I'm looking for practical application so maybe we could work something out. cheers, Stef Mientki Thank you in advance, V. Stokes -- http

How to get the filename in the right case ?

2008-09-25 Thread Stef Mientki
) ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get the filename in the right case ?

2008-09-25 Thread Stef Mientki
Diez B. Roggisch wrote: Stef Mientki wrote: hello, How can I find the correct case of a filename ? Background in my program I use case sensitive filenames, just like Python requires. Now I've integrated pdb into the program, but pdb acts somwhat strange: upon a breakpoint it gives

Re: How to get the filename in the right case ?

2008-09-25 Thread Stef Mientki
Diez B. Roggisch wrote: Yes I'm pretty sure, two reasons: 1. when I perform a step_into, jumping into a file that doesn't have breakpoints itself (meaning my program doesn't even know of this file), pdb returns a lowercase filename What has that to do with potential output postprocessing?

Re: How to get the filename in the right case ?

2008-09-25 Thread Stef Mientki
OKB (not okblacke) wrote: Stef Mientki wrote: import Module1 d:\data_python_25\pylab_works\module1.py(3)module() - print hello (Pdb) Then we know if PDB is really the culprit. So pdb is the problem. Yep, it does the same thing for me

Re: How to get the filename in the right case ?

2008-09-25 Thread Stef Mientki
I found a partial workaround that is good enough for me: def Get_Windows_Filename ( FileName ) : if os.name == 'nt' : File = os.path.splitext ( FileName .lower ())[0] return glob.glob ( File + '.p?' ) return FileName This will translate the filename into the correct case, but not the

Re: How to get the filename in the right case ?

2008-09-25 Thread Stef Mientki
Fredrik Lundh wrote: Stef Mientki wrote: 1. I've a multitab editor. 2. When a breakpoint is reached, 3. I check if the file specified in pdb output, is already open in one of the editor tabs, 4. if not, I open a new tab with the correct file, 5. I focus the correct editor tab and jump

how to search multiple textfiles ?

2008-09-26 Thread Stef Mientki
fast ? If it indeed only concerns py-files, is there another way of searching words ? ( I could imagine that such a py-only-search would have benefits, because you could set a flag to see the words in comment yes or no ) thanks, Stef Mientki Het UMC St Radboud staat geregistreerd bij de Kamer van

Re: How to get the filename in the right case ?

2008-09-26 Thread Stef Mientki
Steven D'Aprano wrote: On Fri, 26 Sep 2008 01:46:15 +0200, Stef Mientki wrote: Secondly thoughtless copying of current behavior, doesn't bring any progress, and I think that's one of the reasons why we're still burdened by inventions done 20 years ago, e.g. do you want to save your changes

Re: how to search multiple textfiles ? (Python is slow ?)

2008-09-26 Thread Stef Mientki
Mike Driscoll wrote: On Sep 26, 8:35 am, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to search multiple textfiles (python source files) for a specific word. I can find all files, open them and do a search, but I guess that will be rather slow. I couldn't find any relevant

rlcompleter and wxPython, problems ...

2008-09-28 Thread Stef Mientki
=== , I get no results. Can someone explain this behavior and maybe even have a solution ? thanks, Stef Mientki import rlcompleter import wx.stc

Re: how to search multiple textfiles ? (Python is slow ?)

2008-09-29 Thread Stef Mientki
Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Stef Mientki wrote: - Pyscripter 110 sec ( PyScripter is the default IDE I use now) - Delphi 20 .. 35 sec - Findstr 4 sec What order did you try try them in? Did you try each one more than once, in different orders? Just

Would this be called a bug in inspect ?

2008-09-30 Thread Stef Mientki
hello, I'm not familiar with inspect, but I get an error (see below) in getmembers ( wx ) Of course this is bug in wx . But would you also call this a bug in inspect ? (inspect crashes and doesn't continue with th rest of the code, nor it returns the already gathered data) thanks, Stef

Re: rlcompleter and wxPython, problems ...

2008-09-30 Thread Stef Mientki
Gabriel Genellina wrote: En Sun, 28 Sep 2008 19:25:30 -0300, Stef Mientki [EMAIL PROTECTED] escribió: I'm trying to implement autocompletion into my editor. But I find some weird behavior, or at least I don't have the faintest idea why this behavior occures, and even more important how

Re: Would this be called a bug in inspect ?

2008-09-30 Thread Stef Mientki
Gabriel Genellina wrote: En Tue, 30 Sep 2008 14:57:55 -0300, Stef Mientki [EMAIL PROTECTED] escribió: I'm not familiar with inspect, but I get an error (see below) in getmembers ( wx ) Of course this is bug in wx . Yes. But would you also call this a bug in inspect ? (inspect crashes

Re: rlcompleter and wxPython, problems ...

2008-09-30 Thread Stef Mientki
Gabriel Genellina wrote: En Tue, 30 Sep 2008 16:06:07 -0300, Stef Mientki [EMAIL PROTECTED] escribió: Gabriel Genellina wrote: En Sun, 28 Sep 2008 19:25:30 -0300, Stef Mientki [EMAIL PROTECTED] escribió: I'm trying to implement autocompletion into my editor. But I find some weird behavior

Re: Would this be called a bug in inspect ?

2008-09-30 Thread Stef Mientki
Terry Reedy wrote: Stef Mientki wrote: print getmembers ( wx ) crashes but not always: print getmembers (wx) [('ACCEL_ALT', 1), ('ACCEL_CMD', 2), ('ACCEL_CTRL', 2), ('ACCEL_NORMAL', 0), ('ACCEL_SHIFT', 4), ('ADJUST_MINSIZE', 0), ( I suspect that wx has an erratic bug, which their tests

Re: decent interactive python shell on MS Windows?

2008-10-01 Thread Stef Mientki
Jason Scheirer wrote: On Oct 1, 9:53 am, [EMAIL PROTECTED] wrote: Hi everyone, After having used Python on Linux for some time, I now have to do Python coding on Windows. I am big fan of the interactive Python shell to test, eg, regexps. Is there an interactive Python shell on Windows that

windows help files ?

2008-10-02 Thread Stef Mientki
Hello, I've 2 questions about python help files: 1. how can I launch the windows help file (CHM), from python with a keyword as argument ? 2. now when my program should also run under Linux/Mac, how should I call the help file under Linux/Mac. Going to the website for the help

how to find the directory where python is installed ?

2008-10-02 Thread Stef Mientki
hello, how can I determine the location of the Python installation under winXP / Linux, with a Python program ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to find the directory where python is installed ?

2008-10-02 Thread Stef Mientki
Timothy Grant wrote: On Thu, Oct 2, 2008 at 12:16 PM, Stef Mientki [EMAIL PROTECTED] wrote: hello, how can I determine the location of the Python installation under winXP / Linux, with a Python program ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: windows help files ?

2008-10-03 Thread Stef Mientki
Martin v. Löwis wrote: 1. how can I launch the windows help file (CHM), from python with a keyword as argument ? Run hh.exe. If you want it to navigate to specific page, also pass that page on the command line (finding out the exact syntax is left as an exercise) That's one way, in

Is it possible to get the name of an application ?

2008-10-04 Thread Stef Mientki
hello, for a general debug routine, written in some module. I want to write the information to a file, with name derived from the main python file. Is it possible to get the name of the python script started first ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to get the name of an application ?

2008-10-04 Thread Stef Mientki
Gary M. Josack wrote: Stef Mientki wrote: hello, for a general debug routine, written in some module. I want to write the information to a file, with name derived from the main python file. Is it possible to get the name of the python script started first ? thanks, Stef Mientki -- http

Re: Simple GUI design in Python

2008-10-05 Thread Stef Mientki
xkenneth wrote: All, I've posted some slides on my blog (xkenneth.blogspot.com) detailing some simple ways to describe GUI apps in python. Please let me know what you think. Did you look at the pdf file, to me a lot of information is missing :-( cheers, Stef Mientki Regards, Kenneth

  1   2   3   4   5   6   7   >