Re: What's the perfect (OS independent) way of storing filepaths ?

2008-10-20 Thread Stef Mientki
,path,filename) and write a couple of simple functions to reconstruct them based on the os. like, err, os.path.join ? Yes (because these functions don't function correctly with i.e pdb, which might be due to bugs in pdb). cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: Porting VB apps to Python for Window / Linux use

2008-10-20 Thread Stef Mientki
Ville M. Vainio wrote: Stef Mientki <[EMAIL PROTECTED]> writes: Sorry but for GUI design, Python is pre-historic ;-) Time to show the "don't feed the troll" sign, I guess. Even without the smiley, I'm convinced of my statement. cheers, I d

Re: Don't understand syntax error: unqualified exec is not allowed ..

2008-10-21 Thread Stef Mientki
Terry Reedy wrote: Stef Mientki wrote: hello, I've syntax error which I totally don't understand: ## mainfile : import test_upframe2 if __name__ == '__main__': var1 = 33 code = 'print var1 + 3 \n' test_upframe2.Do_Something_In_Parent_NameSp

Re: Porting VB apps to Python for Window / Linux use

2008-10-21 Thread Stef Mientki
Grant Edwards wrote: On 2008-10-20, Stef Mientki <[EMAIL PROTECTED]> wrote: I don't think I'm feeding the troll, but - ever took a look at PyQt? I wanted to go from Delphi to a free / open source environment, for both open source and commercial applications. S

Re: Commercial Products in Python

2008-10-21 Thread Stef Mientki
d: http://wiki.python.org/moin/DistributionUtilities Which of the programs there makes an "real" executable, I mean an executable that can't be reversed engineered in less than 2 minutes ? cheers, Stef Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't understand syntax error: unqualified exec is not allowed ..

2008-10-21 Thread Stef Mientki
Terry Reedy wrote: Stef Mientki wrote: import sys p_locals = sys._getframe(1).f_locals Which locals does this get you? __init__'s? (locals()?) AFAIK locals() == sys._getframe(0).f_locals Then it is not clear to me which locals your are getting. The locals of the code block

Re: Slow comparison between two lists

2008-10-23 Thread Stef Mientki
earch string was between 50 and 100 characters. The table / dictionary was build with 10 million strings, each also 50 .. 100 characters long. We repeated the search 100 million times and measured the time. Code length: C, about 150 lines of unreadable code Python: about 20 lines of very easy to

ANN: gui_support, a convenience library for wxPython

2008-10-23 Thread Stef Mientki
s be found through the redirector http://pic.flappie.nl look under paragraph PyLab_Works | GUI_support ) Download: http://pylab-works.googlecode.com/files/Data_Python_Test.zip cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: gui_support, a convenience library for wxPython

2008-10-23 Thread Stef Mientki
Joe Strout wrote: On Oct 23, 2008, at 11:50 AM, Stef Mientki wrote: gui_support is library for easy creation of GUI designs in wxPython. ... Brief documentation can be found here http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_gui_support.html That's neat -- thank you for maki

Re: ANN: gui_support, a convenience library for wxPython

2008-10-23 Thread Stef Mientki
Glenn Linderman wrote: On approximately 10/23/2008 12:59 PM, came the following characters from the keyboard of Stef Mientki: I'm no expert I thought a three-quoted string was called a "doc string", isn't that so ? No, the docstring is the first string after a function

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

2008-10-24 Thread Stef Mientki
PyLab_Works | GUI_support ) Download: http://pylab-works.googlecode.com/files/Data_Python_Test_V1_5.zip cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

is it "legal" to pace the module's doc string after some imports ?

2008-10-25 Thread Stef Mientki
hello, I wonder if it's "legal" to pace the module's doc string after some imports ? I mean something like this: from language_support import _ __doc__ = _(0, """ some documentation """ thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: free IDE with removing import and refactoring

2008-10-29 Thread Stef Mientki
? cheers, Stef Can somebody advice me such an IDE? I have played with eclipse and netbeans, but I cannot find such a functionality (but maybe I looked it over). Besides, an installation howto would be useful for me. Thanks Gergo -- http://mail.python.org/mailman/listinfo/python-list

Why gives "k = 09" a syntax error ?

2008-10-29 Thread Stef Mientki
hello, Why gives "k = 09" a syntax error ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Stef Mientki
Guilherme Polo wrote: On 10/29/08, Stef Mientki <[EMAIL PROTECTED]> wrote: hello, Why gives "k = 09" a syntax error ? 09 is not a valid octal number. Instead use 011. Ok, I guess you were not aware that prefixing a number with a '0' would cause python t

Re: Windows DOS box redirection

2008-10-31 Thread Stef Mientki
users that still use DOS-boxes ;-) cheers, Stef -Bill -- http://mail.python.org/mailman/listinfo/python-list

is this a good way to do imports ?

2008-11-05 Thread Stef Mientki
And for the last thought I had: why not use __init__.py instead of the general.py procedure ?? Maybe I should also set the current working directory to the root or to the python file I launch ?? please enlighten me. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Snippets management

2008-11-06 Thread Stef Mientki
ires two actions copy and paste. Started from a python application you can do copy+paste with just one action. It has integrated a full blown scintilla editor, with syntax highlighting, code completion, and syntax checker. If there's interest, I can distribute the files as a separate package

Re: Snippets management

2008-11-07 Thread Stef Mientki
expora wrote: On Nov 6, 12:38 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: Edwin wrote: Hi there, I've been looking for a snippet manager and found PySnippet but it requires PyGTK. Do you know any other option that doesn't need much? I'm sort of n

Re: is there really no good gui builder

2008-11-08 Thread Stef Mientki
t and so I made, and now I'm almost as satisfied as where I came from ;-) Here an description http://mientki.ruhosting.nl/data_www/pylab_works/pw_gui_support.html and you can find the source here http://pylab-works.googlecode.com/files/Data_Python_Test_V1_5.zip btw, why don't you st

why am I not allowed to redefine a class ?

2008-11-09 Thread Stef Mientki
ot; for me even weirder, if I create test2 in another module, everything works perfect ??? Any explanation would be welcome. thanks, Stef Mientki start of code === class base_class ( object ) : def __init__ ( self ) : pass class derived_class ( base_class ) : def __init__ ( self ) : base

Re: is there really no good gui builder

2008-11-09 Thread Stef Mientki
Mr.SpOOn wrote: On Sun, Nov 9, 2008 at 12:29 AM, Stef Mientki <[EMAIL PROTECTED]> wrote: Qt seems to be good, but I don't like their licence. What's the problem with qt licence? I can't change a commercial application into an open application and vice-versa.

Re: why am I not allowed to redefine a class ?

2008-11-09 Thread Stef Mientki
thanks guys. cheers, Stef Terry Reedy wrote: Stef Mientki wrote: hello, although this is not a real problem for me, it was caused by a copying, instead of moving, a piece of code. But I don't understand at all why the code below gives the error. class derived_class, is defined twice

Re: Snippets management

2008-11-10 Thread Stef Mientki
expora wrote: On Nov 6, 12:38 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: Edwin wrote: Hi there, I've been looking for a snippet manager and found PySnippet but it requires PyGTK. Do you know any other option that doesn't need much? I'm sort of n

Re: Project layout / Import files from different subdirectories

2008-11-11 Thread Stef Mientki
do I > do it the other way round? > > Also, is there maybe a better project layout? I couldn't find anything > useful on it asking Dr. Google. Since a couple of days, I use this construct and it seems to work quite well, http://mientki.ruhosting.nl/data_www/pylab_works/pw_importing.html cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the best Python GUI API?

2008-11-13 Thread Stef Mientki
heers, Stef -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the best Python GUI API?

2008-11-13 Thread Stef Mientki
rm wrote: On Nov 13, 2:23 pm, James Harris <[EMAIL PROTECTED]> wrote: On 13 Nov, 18:59, Stef Mientki <[EMAIL PROTECTED]> wrote: Abah Joseph wrote: What is the best Python GUI API? I am planning to start my first GUI application and I need something easy and cross

Re: Suggestions for an education programming project

2008-11-17 Thread Stef Mientki
/mientki.ruhosting.nl/data_www/pylab_works/pylab_works_titelpagina.html hope to release it officially this month (should by then also include Vpython and a MatLab like workspace) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming exercises/challenges

2008-11-19 Thread Stef Mientki
onverters, ... here is a somewhat older version of my notes http://mientki.ruhosting.nl/data_www/pylab_works/pw_manual.pdf all separate notes until now can be seen under the paragraph PyLab works here http://pic.flappie.nl cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Module Structure/Import Design Problem

2008-11-20 Thread Stef Mientki
d come up a lot. Are there any design paradigms I can apply here? I'm not an expert, I even don't fully understand your problem, but having struggled with imports in the past, I've a solution now, which seems to work quit well. cheers, Stef Cheers - Rafe -- http://mail.pyth

Re: Module Structure/Import Design Problem

2008-11-20 Thread Stef Mientki
slip of the keyboard ;-) http://mientki.ruhosting.nl/data_www/pylab_works/pw_importing.html cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

How to get the class instance of a passed method ?

2008-11-20 Thread Stef Mientki
( My_Instance.My_Method ) thanks Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

How to get the class instance of a passed method ?

2008-11-20 Thread Stef Mientki
( My_Instance.My_Method ) thanks Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get the class instance of a passed method ?

2008-11-20 Thread Stef Mientki
Christian Heimes wrote: thanks Christian, cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Module Structure/Import Design Problem

2008-11-21 Thread Stef Mientki
Rafe wrote: On Nov 21, 2:36 am, Stef Mientki <[EMAIL PROTECTED]> wrote: I'm not an expert, I even don't fully understand your problem, but having struggled with imports in the past, I've a solution now, which seems to work quit well. That's not ver

Re: Module Structure/Import Design Problem

2008-11-21 Thread Stef Mientki
Gabriel Genellina wrote: En Thu, 20 Nov 2008 17:36:11 -0200, Stef Mientki <[EMAIL PROTECTED]> escribió: I'm not an expert, I even don't fully understand your problem, but having struggled with imports in the past, I've a solution now, which seems to work quit well. Th

Re: Module Structure/Import Design Problem

2008-11-22 Thread Stef Mientki
Steve Holden wrote: Stef Mientki wrote: Gabriel Genellina wrote: [...] Sorry I don't understand all that pep-talk (I'm not a programmer ;-) And I'm not a plumber. The difference between us is that I don't write blogs telling people how to lay out and co

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

2009-02-23 Thread Stef Mientki
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. cheers, Stef Barak, Ron wrote: Hi Stef, You can do something like (not tested):

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

2009-02-23 Thread Stef Mientki
rdmur...@bitdance.com wrote: Stef Mientki 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] -Original Message-

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 wrote: FYI, top posts are much harder to read and to reply to than if you edit the message to which you are rep

Re: Top posting

2009-02-23 Thread Stef Mientki
it is for me to use the right posting guide lines) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

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" wrote: rdmur...@bitdance.com wrote: [...] (You know, I really ought to re

is there an easy way to parse a nested list ?

2009-03-15 Thread Stef Mientki
mproved error / exception message even more ;-) thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

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 wrote: hello, I need to pa

Re: speech recognition help

2009-03-20 Thread Stef Mientki
st if you are on windows, I would suggest Dragon Natural Speaking or Windows SAPI 5.1 (free, but difficult to find). There's Python layer written on top of the above two, called DragonFly, which uses it's own semantics and can also control the programs itself. cheers, Stef --

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
I can't speak for NS or SAPI. both are covered by DragonFly Stef -- http://mail.python.org/mailman/listinfo/python-list

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.

Re: Best GUI toolkit with Table support

2009-03-24 Thread Stef Mientki
ng.nl/data_www/pylab_works/pw_sqllite.html cheers, Stef -- 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
to allow iteration over others too, like None . a = None for item in a : do_something_with_item I created a Null object for that, but that gives all kind of problems with i.e. configobj. cheers, Stef andrew -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

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
/listinfo/python-list I think the easiest method is to use a timer (100 ms interval), let the timer-completion check if new data from serial available, etc. I use this method with far larger throughputs ( 10k bytes / sec) and it works very good. cheers, Stef -- http://mail.python.org/mailman

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/ma

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,

Re: 3D plotting in a GUI

2009-04-07 Thread Stef Mientki
package or a package of packages might be the best way for this work. BTW I do not want to use MayaVi. It is too much actually. What do you mean by "too much actually" ? What's the GUI you had in mind ? What kind of scientific data processing do you've in mind ? cheers, Stef T

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 of

video capture in Python ?

2009-04-12 Thread Stef Mientki
a lot 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 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 describe which versio

Re: show PDF in wxPython?

2009-04-14 Thread Stef Mientki
btw there is a special wxPython mailing list ;-) wxpython-us...@lists.wxwidgets.org cheers, Stef P.S. I would like to thank Dennis Lee Bieber for the help about parallel ports... I forgot to do it :-( -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/ma

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
I'm not a software guy, so I don't really understand those technical terms, would call LabView a DDD ? Are you looking for a specific domain or DDD in general ? cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

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

2009-04-18 Thread Stef Mientki
a lot of apriori knowledge ? cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

print as a function in 2.5 ?

2009-04-19 Thread Stef Mientki
Traceback ') do_extended printer actions Now 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- m

can't find the right simplification

2009-04-23 Thread Stef Mientki
] ] [ 'Filename' ] = Some_Value I would like 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

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
sic_Ancestor. I 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 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 for the user, so the

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 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 into any log files, or the

OS independent file associate ?

2009-05-14 Thread Stef Mientki
OS and not e.g. Ubuntu / 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 sub

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,

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

2009-05-17 Thread Stef Mientki
lit filename = 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: making a python program in windows

2009-05-21 Thread Stef Mientki
in windows ? cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

how to get rid of pyc files ?

2009-05-24 Thread Stef Mientki
evant hits ) 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 (JD) wrote: JD>I 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 exception, but JD> unfo

Re: What text editor is everyone using for Python

2009-05-27 Thread Stef Mientki
nd of marvel at how few people complain about its Python indentation. (I'd like to think it's because anyone who edits Python code in SciTE has downloaded my patch, but I am confident that is not the case.) What's not correct about the Python indentation ? Where can we find the p

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

2009-06-01 Thread Stef Mientki
the module 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 enoug

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

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 t

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

2009-06-02 Thread Stef Mientki
ink*) hi Steven, maybe you hit the nail right on his head. But I finally want to release my program, with or without proper imports, but working correctly. And I'll leave the "import details" to some other guru. thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

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 t

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

2009-06-03 Thread Stef Mientki
-preprocessor.html. Depends what OS you want to use, on Windows it's very easy: import win32com.client s = win32com.client.Dispatch("SAPI.SpVoice") s.Speak('Is this punthoofd ') cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

[ANN] PPyGui emulator

2008-05-13 Thread Stef Mientki
creen shots 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 un

multiple databases, what's the best interface ?

2008-05-17 Thread Stef Mientki
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: multiple databases, what's the best interface ?

2008-05-18 Thread Stef Mientki
thanks guys, I'll take a look at your suggestions. cheers, Stef M.-A. Lemburg wrote: On 2008-05-17 20:54, Stef Mientki wrote: hello, I need to switch fluently between 2 or 3 types of dbases: SQLite, Sybase ( and in the future MS SQL-server). I need both closed application and general pu

Re: How do *you* use Python in non-GUI work?

2008-05-19 Thread Stef Mientki
, it would be interesting to know, which of the mentioned applications of non-GUI programs are used by others than the programmer him/herself. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

SQLite import fails sometimes ?

2008-05-24 Thread Stef Mientki
amic) it's not easy to isolate the problem. Does anyone has a clue how to trace this kind of problem ? thanks, Stef Traceback (most recent call last): File "bricks\brick.py", line 322, in Exec self.Generate_Output_Signals () File "bricks\brick_dBase.py", line 61, i

Re: SQLite import fails sometimes ?

2008-05-24 Thread Stef Mientki
John Machin wrote: Stef Mientki wrote: hello, The import statement "import sqlite3" gives the error given below. In simple programs, the import statement (sometimes) succeed, and I can indeed access the database. So I guess there is some conflict with another part of my program,

Scipy+SQLite crashes... , was: Re: SQLite import fails sometimes ?

2008-05-24 Thread Stef Mientki
John Machin wrote: Stef Mientki wrote: I don't know if this matters, but I also use sqlite3 from other than Python programs. You have an instance of sqlite3.dll in P:\Python\DLLs for use with Python, and (I guess) you have another instance of sqlite3.dll somewhere else, for use "

Re: Scipy+SQLite crashes... , was: Re: SQLite import fails sometimes ?

2008-05-24 Thread Stef Mientki
hello, through the scipy group I found a solution (no explanation yet), import sqlite3 from scipy import * solves the problem. cheers, Stef Stef Mientki wrote: John Machin wrote: Stef Mientki wrote: I don't know if this matters, but I also use sqlite3 from other than Python pro

Re: definition of a highlevel language?

2008-05-28 Thread Stef Mientki
dge of the problem domain, and with just a little programming experience or math knowledge, can solve any problem in every domain with Labview. Possibly I'm exaggerating a bit ;-) cheers, Stef Andrew. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: [Business apps for Windows] Good grid + calendar, etc.?

2008-06-01 Thread Stef Mientki
aries). AFAIK, Venster is (at least for windows-mobile-like platforms) replaced by the very good and stable PocketPyGUI. cheers, Stef Regards, Ryan Ginstrom -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

how to build a street with more than 1 house ?

2008-06-06 Thread Stef Mientki
hello, In the code below, I can build a large street like this: large_street = house * 25 but not a small street. like this: small_street = 5 * house Why is this different ? And more interesting, how do I get the right results ? thanks, Stef Mientki class type_house ( object ) : def

Re: how to build a street with more than 1 house ?

2008-06-07 Thread Stef Mientki
thanks guys, David C. Ullrich wrote: On Sat, 07 Jun 2008 00:45:07 +0200, Stef Mientki <[EMAIL PROTECTED]> wrote: hello, In the code below, I can build a large street like this: large_street = house * 25 but not a small street. like this: small_street = 5 * house Why is this dif

Re: ANN: wxPython 2.8.8.0

2008-06-25 Thread Stef Mientki
Robin Dunn wrote: Announcing -- The 2.8.8.0 release of wxPython is now available for download at Changes in 2.8.8.0 -- I read somewhere else that OGL was removed, is that correct ? cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

list extension ?

2008-06-29 Thread Stef Mientki
= ERROR Can someone explain this different behavior ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: list extension ?

2008-06-30 Thread Stef Mientki
list.__init__(self, *args) that's even better, except the call must be list.__init__ ( self, args ) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: list extension ?

2008-06-30 Thread Stef Mientki
list.__init__(self, *args) that's even better, except the call must be list.__init__ ( self, args ) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   >