Hi,
I want to visualize some vtk-files within a wxPython Window. Google
did not help me
very much, I only found some tools for Tk, what is no solution for me.
I'm sure I am not the first one who asks this question
Any hints ?
Greetings, Uwe
--
http://mail.python.org/mailman/listinfo/python
Paddy wrote:
> I'm waiting for the rush of new users to c.l.p :-)
> If it comes, then aren't regularly posted FAQ's newbie friendly?
No, it just means they didn't take the time to read the docs and the FAQ for
themselves. :)
> Is their a good FAQ already around that we can regularly point newbies
I guess this is appropriate to the list... the funky things in eclipse
that were happening are hard to describe, but first let me say that none
of the other ide's had any funky things happening so I don't think it
was my code. That said: I'm working on a command line bulk file renaming
tool (us
Malcolm Greene pisze:
> The locale module provides the ability to format dates, currency and
> numbers according to a specific locale.
>
> Is there a corresponding module for parsing locale's output to convert
> locale formatted dates, currency, and numbers back to their native data
> types on the
Duncan Booth wrote:
>
http://www.techcrunch.com/2008/04/07/google-jumps-head-first-into-web-services-with-google-app-engine/
> "Python only. What a weird decision. Not business and
> community-friendly at all."
Translation: "Not
over-engineered-top-heavy-overly-complex-job-security-inducing-Java-e
On Wed, 09 Apr 2008 16:16:14 +0200, Diez B. Roggisch wrote:
> And then you reply telling us about the greatness of Bangalore and your
> product to come. Which is somewhat amusing that people who claim to produce
> the greatest software being incapable of debugging it deems me as odd - to
> say the
I just noticed that pywin32 does not work with vista directly (tried
import win32clipboard, => ImportError). The problem is the installer
name; it's the usual
pywin32-210-win32-py2.5.exe
It needs to be renamed to:
pywin32-210.win32-setup-py2.5.exe
In order for vista to catch it as "installer".
On Apr 8, 6:01 pm, Jonathan Gardner <[EMAIL PROTECTED]>
wrote:
> On Apr 8, 2:25 pm, Grzegorz S³odkowicz <[EMAIL PROTECTED]> wrote:
>
>
>
> > Isn't Decimal a BCD implementation?
>
> Yep, you are right and I am
> wrong.http://www.python.org/dev/peps/pep-0327/#why-not-rational
Strictly speaking, BCD
Hey everyone,
I'm trying to strip all script-blocks from a HTML-file using regex.
I tried the following in Python:
testfile = open('testfile')
testhtml = testfile.read()
regex = re.compile(']*>(.*?)', re.DOTALL)
result = regex.sub('', blaat)
print result
This strips far more away then just the
On Tue, 08 Apr 2008 15:01:36 -0500, Larry Bates <[EMAIL PROTECTED]> wrote:
> paul wrote:
>> Maryam Saeedi schrieb:
>>> Hi,
>>>
>>> I was wondering if you know how can I run a python code once every five
>>> minutes for a period of time either using python or some other program like
>>> a bash scrip
On Apr 9, 8:35 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote:
> Strictly speaking, BCD doesn't come into it: the coefficient of a
> Decimal instance is stored simply as a string of digits. This is
> pretty wasteful in terms of space: 1 byte per decimal digit
> instead of the 4 bits per digit that
Hello etc.
I am a "scientific" user of Python, and hence have to write some
performance critical algorithms. Right now, I am learning Python, so
this is a "newbie" question.
I would like to wrap some heavy C functions inside Python,
specifically a wavelet transform. I am beginning to bec
On Apr 6, 5:30 am, Wesley Mesquita <[EMAIL PROTECTED]> wrote:
> I am trying to create a test environment to a couple C applications
> (simple UDP and TCP server/clients), so I want to write this in python
> and I m looking for ways to do it. Basically I need an execution timer
> and timeout control
Michel Bouwmans wrote:
> I'm trying to strip all script-blocks from a HTML-file using regex.
You might want to take a look at lxml.html instead, which comes with an HTML
cleaner module:
http://codespeak.net/lxml/lxmlhtml.html#cleaning-up-html
Stefan
--
http://mail.python.org/mailman/listinfo/py
Did you try to remove the .spe folder from your c:\Documents & Settings
\username folder?
Stani
On Apr 9, 6:16 pm, Rick King <[EMAIL PROTECTED]> wrote:
> Hi everyone,
> The editor inspeon my system (win XP home sp2) does not do automatic
> indentation. I can't figure out why - it used to. I'm
We use the following SWIG (www.swig.org) typemap to perform such operations:
%typemap(in) (int argc, char **argv) {
if (!PySequence_Check($input)) {
PyErr_SetString(PyExc_ValueError,"Expected a sequence");
return NULL;
}
$1 = PySequence_Length($input);
$2 = (char**)alloca($1*sizeof
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans
> Sent: Wednesday, April 09, 2008 3:38 PM
> To: [email protected]
> Subject: Stripping scripts from HTML with regular expressions
>
> Hey everyone,
>
> I'm trying to stri
On Apr 9, 3:57 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
> Naive question: why not just use a long + an exponent?
>
> e.g. 132560 -> (13256, 1)
> 0.534 -> (534, -3)
> 5.23e10 -> (523, 8)
>
It's a good question. The standard answer is that if the
coefficient is a long then it's
>> I am a "scientific" user of Python, and hence have to write some performance
>> critical algorithms. Right now, I am learning Python, so this is a "newbie"
>> question.
>>
>> I would like to wrap some heavy C functions inside Python, specifically a
>> wavelet transform. I am beginning to become
On Apr 9, 1:38 pm, rocksportrocker <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I want to visualize some vtk-files within a wxPython Window. Google
> did not help me
> very much, I only found some tools for Tk, what is no solution for me.
>
> I'm sure I am not the first one who asks this question
>
> A
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans
> Sent: Wednesday, April 09, 2008 3:38 PM
> To: [email protected]
> Subject: Stripping scripts from HTML with regular expressions
>
> Hey everyone,
>
> I'm trying to stri
I love matplotlib, but I want to do a polar plot using your basic
compass type plot, i.e. zero degrees at the top, degrees going
clockwise.
I don't see a real easy way to do this.
Any examples?
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Hi, and thanks.
However, being a newbie, I now have to ask: What is SWIG? I have heard
the name before, but haven't understood what it is, why I need it, or
similar. Could you please supply some hints?
-Paul
Den 9. april. 2008 kl. 22.22 skrev Brian Cole:
> We use the following SWIG (www.
>From the Python.org tutorial:
>>> for n in range(2, 10):
... for x in range(2, n):
... if n % x == 0:
... print n, 'equals', x, '*', n/x
... break
... else:
... # loop fell through without finding a factor
... print n, 'is a prime number'
..
SWIG is a program that automatically generates code to interface
Python (and many other languages) with C/C++. If you plan to create
lasting software libraries to be accessed from Python and C it is
quite a robust way to do so. Essentially, you feed it header files,
compile your code and the code
On Apr 9, 3:11 pm, Noah <[EMAIL PROTECTED]> wrote:
> On Apr 6, 5:30 am, Wesley Mesquita <[EMAIL PROTECTED]> wrote:
>
> > I am trying to create a test environment to a couple C applications
> > (simple UDP and TCP server/clients), so I want to write this in python
> > and I m looking for ways to do
jmDesktop schrieb:
> From the Python.org tutorial:
>
for n in range(2, 10):
> ... for x in range(2, n):
> ... if n % x == 0:
> ... print n, 'equals', x, '*', n/x
> ... break
> ... else:
> ... # loop fell through without finding a factor
> ...
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of jmDesktop
> Sent: Wednesday, April 09, 2008 4:51 PM
> To: [email protected]
> Subject: basic python question about for loop
>
> >From the Python.org tutorial:
>
> >>> for n in range(2, 1
I have done something so far about that problem,but its not the good way to
do it
need ur comments about that
from string import *;
import sys
myfile = open("/afs/pdc.kth.se/home/d/debnath/membrane/1a91A.txt")
a = myfile.readlines()
data = myfile.readlines()
for line in myfile.readlines()
jmDesktop wrote:
>>From the Python.org tutorial:
>
for n in range(2, 10):
> ... for x in range(2, n):
> ... if n % x == 0:
> ... print n, 'equals', x, '*', n/x
> ... break
> ... else:
> ... # loop fell through without finding a factor
> ...
On Apr 9, 4:58 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> jmDesktop schrieb:
>
>
>
>
>
> > From the Python.org tutorial:
>
> for n in range(2, 10):
> > ... for x in range(2, n):
> > ... if n % x == 0:
> > ... print n, 'equals', x, '*', n/x
> > ... b
On Apr 9, 4:59 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:python-
> > [EMAIL PROTECTED] On Behalf Of jmDesktop
> > Sent: Wednesday, April 09, 2008 4:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: basic python question about for
I'm reading data out of an Excel spreadsheet using the XLRD module.
The spreadsheet contains a list of election results. The fields are
as follows: Precinct, Candidate, Votes
The problem is candidate names can be funky, for instance: Michael L.
"Mick" Jones
I cannot for the life of me figure ou
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of jmDesktop
> Sent: Wednesday, April 09, 2008 5:04 PM
> To: [email protected]
> Subject: Re: basic python question about for loop
>
> >
> > > >>> for n in range(2, 10):
> > > ... for x
jmDesktop schrieb:
> On Apr 9, 4:58 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> jmDesktop schrieb:
>>
>>
>>
>>
>>
>>> From the Python.org tutorial:
>> for n in range(2, 10):
>>> ... for x in range(2, n):
>>> ... if n % x == 0:
>>> ... print n, 'equals', x, '*',
"??" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|I wonder whether python compiler does basic optimizations to .py.
In general, the answer to such questions depends on the implementation and
version thereof. For CPython, you can look at bytecode with the dis module
as ano
[EMAIL PROTECTED] wrote:
> Thanks to everyone who responded, and sorry for my late response.
>
> Grin seems like the perfect solution for me. I finally had a chance
> to download it and play with it today. It's great.
>
> Robert...you were kind enough to ask if I had any requests. Just the
> o
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of jeffself
> Sent: Wednesday, April 09, 2008 5:11 PM
> To: [email protected]
> Subject: How can I use quotes without escaping them using CSV?
>
>
> If I put an escape character in, it work
Reedick, Andrew wrote:
>
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:python-
>> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans
>> Sent: Wednesday, April 09, 2008 3:38 PM
>> To: [email protected]
>> Subject: Stripping scripts from HTML with regular expressions
>>
>> H
|So what is n and x in the first iteration? Sorry. I'm trying.
When n == 2, the inner loop executes 0 times (the length of range(2,n)) and
then falls thru to the else clause, printing the correct answer.
--
http://mail.python.org/mailman/listinfo/python-list
I'm happy to announce that ActivePython 2.5.2.2 and 2.4.5.14 are now
available for download from:
http://www.activestate.com/products/activepython/
These are patch releases that update ActivePython to core Python 2.5.2
and 2.4.5.
What is ActivePython?
-
ActivePython is
Hi,
In hopes it may help someone else, here's what I ended up doing:
1) Add this to to point to your local 'tools' directory:
import site
# the python tools dir is at "../../tools/python"
site.addsitedir('..'+os.sep+'..'+os.sep+'tools'+os.sep
+'python')
2) In the
"Duncan Booth" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| There are several things which would make moving away from Google tricky:
I noticed that too, but it does have the virtue that development is done on
one's own machine rather than keeping everying on the ISP's machines
"jmDesktop" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Two new versions of the language are currently in development: version
| 2.6, which retains backwards compatibility with previous releases; and
| version 3.0, which breaks backwards compatibility to the extent that
| even t
Upload your photos and share them with friends and family.
http://fotochange.com
--
http://mail.python.org/mailman/listinfo/python-list
I have a module named math.py in a package with some class
definitions. I am trying to import the standard python math module
inside of math.py but It seems to be importing itself. Is there any
way around this problem without renaming my math.py file?
--
http://mail.python.org/mailman/listinfo/p
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| I'm not sure if I have even phrased that right but anyway
|
| How does one find (in the standard Python documentation) information
| about things like the iteritems() method and the enumerate() function.
The Library Reference manu
On Apr 9, 1:24 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Tue, 8 Apr 2008 16:49:27 -0700 (PDT), Thomas Dimson
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>
>
> > I assume there is some issue with the global interpreter lock or that
> > you can't exit the infinite
On Apr 10, 7:39 am, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:python-
> > [EMAIL PROTECTED] On Behalf Of jeffself
> > Sent: Wednesday, April 09, 2008 5:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: How can I use quotes without esc
On Apr 9, 1:57 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> As far as I know, there is no "os.process". Maybe you meant os.system
> or the subprocess module?
>
> Mike
Yeah, I was thinking "subprocess" module.
--
Noah
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 9, 5:39 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:python-
> > [EMAIL PROTECTED] On Behalf Of jeffself
> > Sent: Wednesday, April 09, 2008 5:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: How can I use quotes without esca
On Apr 9, 5:39 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:python-
> > [EMAIL PROTECTED] On Behalf Of jeffself
> > Sent: Wednesday, April 09, 2008 5:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: How can I use quotes without esca
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
For about 3 weeks I have been search for examples for grabbing and
frequency from an audio stream and manipulating it. So far I haven't
been too successful.
Just wondering if anyone has done this or has a good example of doing
such.
TIA
Rod
-BE
Thanks so much everyone! That works great, & (presumably) is way
faster than the way I was doing it--
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 10, 9:39 am, jeffself <[EMAIL PROTECTED]> wrote:
> I set quotechar="" and was able to get it to work. I'll try this at
> work tomorrow!
setting it to what Andrew told you to do ('' not ")works equally well
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 10, 8:12 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "jmDesktop" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
> | Two new versions of the language are currently in development: version
> | 2.6, which retains backwards compatibility with previous releases; and
> | versio
On Apr 7, 6:17 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Mon, 07 Apr 2008 20:52:54 -0300,skunkwerk<[EMAIL PROTECTED]>
> escribió:
>
> > I'm getting errors when reading from/writing to pipes that are fairly
> > large in size. To bypass this, I wanted to redirect output to a file
> >
I've always had an interest in Python and would like to dabble in it
further. I've worked on a few very small command line programs but
nothing of any complexity. I'd like to build a really simple GUI app
that will work across Mac, Windows, and Linux. How painful is that
going to be? I
Chris Stewart <[EMAIL PROTECTED]> writes:
> I've always had an interest in Python and would like to dabble in it
> further. I've worked on a few very small command line programs but
> nothing of any complexity. I'd like to build a really simple GUI app
> that will work across Mac, Windows, and Li
drjekil wrote:
> I have done something so far about that problem,but its not the good way to
> do it
>
> need ur comments about that
>
Well, at least you can see that your approach is not satisfactory, so
that means you have some sense of what's good and bad programming/
>
> from string im
The pain level all depends on how you go about it. If you try to builda GUI
from scratch, it will be very painful. If you use a toolkit, thenit's pretty
close to working with Swing. WxPython is the only one I've used, so Ican't give
you a "best one". I can say that going from Swing to wxPython w
It seems that the decode_header function in email.Header fails when
the string is in the following form,
'=?gb2312?Q?=D0=C7=C8=FC?=(revised)'
That's when a non-encoded string follows the encoded string without
any whitespace. In this case, decode_header function treats the whole
string as non-enc
On Apr 9, 8:54 pm, Chris Stewart <[EMAIL PROTECTED]> wrote:
> I've always had an interest in Python and would like to dabble in it
> further. I've worked on a few very small command line programs but
> nothing of any complexity. I'd like to build a really simple GUI app
> that will work across Ma
On Apr 9, 5:33 pm, Jose <[EMAIL PROTECTED]> wrote:
> I have a module named math.py in a package with some class
> definitions. I am trying to import the standard python math module
> inside of math.py but It seems to be importing itself. Is there any
> way around this problem without renaming my
On Apr 10, 12:35 pm, Benjamin <[EMAIL PROTECTED]> wrote:
> On Apr 9, 8:54 pm, Chris Stewart <[EMAIL PROTECTED]> wrote:> I've always had
> an interest in Python and would like to dabble in it
> > further. I've worked on a few very small command line programs but
> > nothing of any complexity. I'd
HEH
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I've been trying to wrap my head around decorators and in my trails found a
very recent article on Linux Mag's website. I didn't see a post here regarding
this article and feel it is worth directing interested parties towards:
Introduction to Python Decorators
Have a web app th
On Apr 9, 9:54 pm, Chris Stewart <[EMAIL PROTECTED]> wrote:
> I've always had an interest in Python and would like to dabble in it
> further. I've worked on a few very small command line programs but
> nothing of any complexity. I'd like to build a really simple GUI app
> that will work across Ma
En Wed, 09 Apr 2008 05:05:45 -0300, Alvin Delagon <[EMAIL PROTECTED]>
escribió:
> I'm currently writing a simple python SCTP module in C. So far it works
> sending and receiving strings from it. The C sctp function sctp_sendmsg()
> has been wrapped and my function looks like this:
>
> sendMessag
En Wed, 09 Apr 2008 05:29:24 -0300, pramod sridhar <[EMAIL PROTECTED]>
escribió:
> I would like to access type library files (.tlb) from python.
>
> The application (with .tlb extension) controls an external instrument
> over
> standard GPIB interface.
> Is it possible to control this applicat
"Steven Clark" <[EMAIL PROTECTED]> wrote:
>
>Thanks for the reply. Can you explain how I could be bitten by
>floating point precision here?
>I'm familiar with how&why 1.3*3 != 3.9, etc., but I'm not sure how it
>applies here, or what you are gaining by converting to int.
Well, it depends on how yo
Brian and Diez:
First of all, thanks for the advice.
Brian:
I have installed NumPy and SciPy, but I can't seem to find a wavelet
transform there.
The main point of this was more to learn C wrapping than to actually
get a calculation done. I will probably be starting a PhD soon, doing
real
I am getting the comments. So any one can post any comment like
Steve knows nothing of Python.
California has still lot to catch up to be at par with Mesopatamia.
comp.lang.python seems a group of fools.
Anyhow, all I learnt take whichever suits and ignore rest many people
have lot of time to carr
En Wed, 09 Apr 2008 13:31:22 -0300, Patrick Stinson
<[EMAIL PROTECTED]> escribió:
> Well, I eventually want to add an import hook, but for now I'd rather
> just
> get the import statement working normally again.
> I have embedded python as a scripting engine in my application. To do
> this,
Umm, Mesopotamia is an area geographically located between the Tigris
and Euphrates rivers, Bangalore isn't anywhere near that. And most of
that is presently under American control.
If you don't want to give out your code then try explaining it better.
What is the input, what is the output, how ar
En Thu, 10 Apr 2008 02:59:24 -0300, <[EMAIL PROTECTED]> escribió:
> I am getting the comments. So any one can post any comment like
> Steve knows nothing of Python.
> California has still lot to catch up to be at par with Mesopatamia.
> comp.lang.python seems a group of fools.
> Anyhow, all I lea
101 - 176 of 176 matches
Mail list logo