,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
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
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
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
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
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
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
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
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
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
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
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
?
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
hello,
Why gives "k = 09" a syntax error ?
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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
users that still use DOS-boxes ;-)
cheers,
Stef
-Bill
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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.
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
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
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
heers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
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
/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
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
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
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
( My_Instance.My_Method )
thanks
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
( My_Instance.My_Method )
thanks
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
Christian Heimes wrote:
thanks Christian,
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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):
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-
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
it is for me to use the right posting
guide lines)
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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
mproved error / exception message even more ;-)
thanks,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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
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
--
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
I can't speak for NS or SAPI.
both are covered by DragonFly
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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.
ng.nl/data_www/pylab_works/pw_sqllite.html
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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
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
/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
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
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,
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
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
a lot trial and error I expect.
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
a lot of apriori
knowledge ?
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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
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
] ] [ '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
hello,
Anyone knows what this error message means ?
Python 2.5.2
thanks,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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 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
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,
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
in windows ?
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
evant hits )
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
-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
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
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
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
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
,
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
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
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,
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 "
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
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
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
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
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
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
= ERROR
Can someone explain this different behavior ?
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
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
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
401 - 500 of 722 matches
Mail list logo