Re: Commercial Products in Python

2008-10-21 Thread Stef Mientki
Paulo J. Matos wrote: Paulo J. Matos wrote: Grant Edwards wrote: On 2008-10-21, Paulo J. Matos <[EMAIL PROTECTED]> wrote: Hi all, I was just wondering, if you wish to commercialize an application developed in Python, what's the way to go? I guess the only way is to sell the sou

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: 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-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: What's the perfect (OS independent) way of storing filepaths ?

2008-10-20 Thread Stef Mientki
Bruno Desthuilliers wrote: Eric Wertman a écrit : I (again) wonder what's the perfect way to store, OS-independent, filepaths ? I'm in agreement that perfect probably isn't applicable. If I were doing this myself, I might store the information in a tuple: base = 'some root structure ('/' or

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

2008-10-20 Thread Stef Mientki
Bruno Desthuilliers wrote: Stef Mientki a écrit : Lawrence D'Oliveiro wrote: In message <[EMAIL PROTECTED]>, Dotan Cohen wrote: I often see mention of SMBs that either want to upgrade their Windows installations, or move to Linux, but cannot because of inhouse VB apps. Pr

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

2008-10-20 Thread Stef Mientki
se I can't) the syntax error disappears. I can place the function either as a class method or as a normal function outside the class, which both works well. But I want the method / function not to be hidden. Why does the above syntax error appear ? Are there other ways to hide the function ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

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

2008-10-19 Thread Stef Mientki
Eric Wertman wrote: I (again) wonder what's the perfect way to store, OS-independent, filepaths ? I'm in agreement that perfect probably isn't applicable. If I were doing this myself, I might store the information in a tuple: base = 'some root structure ('/' or 'C') path = ['some','set

Re: a new brawser (avant) it is very very good

2008-10-19 Thread Stef Mientki
mina2020 wrote: what has this todo with Python ? Avant Browser allows users to browse multiple Web sites simultaneously and to block all unwanted pop-up pages and Flash ads automatically. The integrated cleaner helps users clear all traces and maintain privacy. The built-in Yahoo and Google searc

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

2008-10-19 Thread Stef Mientki
? if on a network drive I'm interested what you all use for this kind of problem. And I wonder why there isn't a standard solution / library in Python available. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

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

2008-10-19 Thread Stef Mientki
Francesco Bochicchio wrote: Il Sun, 19 Oct 2008 10:34:23 +0200, Stef Mientki ha scritto: ... I'm very satisfied with Python, and must say it's much more beautiful language than Delphi, seen over the full width of programming. Although both languages are Object Oriented, for som

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

2008-10-19 Thread Stef Mientki
Dotan Cohen wrote: 2008/10/19 Stef Mientki <[EMAIL PROTECTED]>: Dotan Cohen wrote: 2008/10/19 Stef Mientki <[EMAIL PROTECTED]>: Sorry but for GUI design, Python is pre-historic ;-) Stef Really, even with the cross-platform Qt bindings? I skippe

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

2008-10-19 Thread Stef Mientki
Dotan Cohen wrote: 2008/10/19 Stef Mientki <[EMAIL PROTECTED]>: Sorry but for GUI design, Python is pre-historic ;-) Stef Really, even with the cross-platform Qt bindings? I skipped Qt because of the weird license (I make both commercial and free-open software) Can you rec

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

2008-10-19 Thread Stef Mientki
Lawrence D'Oliveiro wrote: In message <[EMAIL PROTECTED]>, Dotan Cohen wrote: I often see mention of SMBs that either want to upgrade their Windows installations, or move to Linux, but cannot because of inhouse VB apps. Probably best to leave those legacy VB apps alone and develop new

(relative) import trouble, sometimes it works, sometimes it doesn't ...

2008-10-18 Thread Stef Mientki
ory were I started the application - relative to the current working directory - relative to the module that is doing the import - relative to the module that called the global function I would be pleased if someone could enlighten me, because this information is hard to find. thanks, Stef Mient

Re: PDF warning under Ubuntu and Fedora

2008-10-15 Thread Stef Mientki
Chris Rebert wrote: CUPS is the Common Unix Printing System. See http://en.wikipedia.org/wiki/CUPS for more info. Apparently something (your script or one of the libraries it uses perhaps?) is trying to create a new printer called "PDF" and failing because that name is already in use, hence the w

PDF warning under Ubuntu and Fedora

2008-10-15 Thread Stef Mientki
printer PDF could not be created (python:10896): GnomePrintCupsPlugin-WARNING **: The data for the CUPS printer PDF could not be loaded. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE Question

2008-10-15 Thread Stef Mientki
Steve Phillips wrote: Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it that others don't and viceversa. I am in search for the perfect IDE

Re: Launching scripts in Ubuntu ?

2008-10-14 Thread Stef Mientki
Diez B. Roggisch wrote: What do you mean "it's not closed"? well the command prompt (if it is called that way in Linus) is not returned. When I run file_support, the command window looks like this >>>python file_support.py . all kinds of output >>> When I run test.py (which calls

Re: Launching scripts in Ubuntu ?

2008-10-14 Thread Stef Mientki
Diez B. Roggisch wrote: Stef Mientki wrote: hello, I'm not familiar with Linux / Ubuntu, still trying to get my application working under these operating systems. I've a script "file_support.py", now when I'm in Ubuntu, open a command window and go to the direct

Launching scripts in Ubuntu ?

2008-10-14 Thread Stef Mientki
ript "file_support" is executed correctly, but the python interpreter is not closed, I've to close it manual by pressing ENTER. What should I change ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: python debugger tips?

2008-10-10 Thread Stef Mientki
take a look at winpdb (which has no relation with Windows-OS !! cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: python-aspects 1.2 released

2008-10-09 Thread Stef Mientki
module is imported (and it's code is executed) and when a module reaches it's end. I now realize that by calling a global function at the end of each module, that in the debug mode writes a line to a log file. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: When Python should not be used?

2008-10-06 Thread Stef Mientki
David, Craig, Thanks for your interest. Here are a few examples, containing links to some animations http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_animations_screenshots.html and here is a collection of my notes until july this year: http://pylab-works.googlecode.com/files/pw_manual

Re: When Python should not be used?

2008-10-06 Thread Stef Mientki
Andrea Francia wrote: The right tool depends on the current problem. While some python users prefer to talk about when Python is the right tool I think that it is more instructive to know when it is not. Please, could you let me know what do you think about that? Thanks I'm programming in P

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, Ke

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

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

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

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

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 informati

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

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_MIN

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

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 ? (insp

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

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

rlcompleter and wxPython, problems ...

2008-09-28 Thread Stef Mientki
as an option, but if I leave the second line out, marker "<<<===" , I get no results. Can someone explain this behavior and maybe even have

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 a

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

how to search multiple textfiles ?

2008-09-26 Thread Stef Mientki
task 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 geregistree

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

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 pat

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)() -> print "hello" (Pdb) Then we know if PDB is really the culprit. So pdb is the problem. Yep, it does the same

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

How to get the filename in the right case ?

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

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.

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 confiden

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 abo

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

2008-09-06 Thread Stef Mientki
Peter Anderson wrote: I am trying to teach myself how to program in Python and use wxPython for GUIs. I am using PyScripter, IDLE and EditPlus as my IDEs. I have experienced an odd problem where I run a script once and it runs fine. Run it again and I get an error and the script fails. If the

Re: pdb bug and questions

2008-09-05 Thread Stef Mientki
R. Bernstein wrote: Finally, I think rpdb2 is part of the winpdb project on Sourceforge and again has a bug tracker. My sense is that Nir Aides is very good about handling bugs reported in winpdb/rpdb. Yes I started with rpdb2, and indeed Nir Aides is very helpfull, but I think interfa

Re: pdb bug and questions

2008-09-05 Thread Stef Mientki
R. Bernstein wrote: Stef Mientki <[EMAIL PROTECTED]> writes: hello, I'm trying to embed a debugger into an editor. I'm only interested in high level debugging. The first question is what debugger is the best for my purpose ? (pdb, pydb, rpdb2, smart debugger, extended de

pdb bug and questions

2008-09-04 Thread Stef Mientki
7;s the best way to report these kind of bugs ? Although I mostly use os.path.join to be OS independent, these kind of bugs give me the impression, that I can better do the join myself and always use forward slashes. Is this a valid conclusion ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: evaluating code lines above breakpoints ?

2008-08-21 Thread Stef Mientki
Diez B. Roggisch wrote: Stef Mientki wrote: hello, I'm trying to create a high level debugger, based on rpd2. So when the debugger enters a breakpoint, I want to display the values of all variables in the, let's say, 5 lines above the breakpoint (if possible). Any hints on h

evaluating code lines above breakpoints ?

2008-08-20 Thread Stef Mientki
idea is to scan the lines, skip keywords, test type of each term ( by eval), if the term is var eval the value of it. Are there better ways ? Another idea, when hoovering over a variable during a breakpoint, a hint appears with the type and value of that var. thanks, Stef Mientki -- http://mail.

Re: Pre-university student looking to contribute to OS project

2008-08-15 Thread Stef Mientki
Jason Walsh wrote: I'm a pre-university student with about 7 months Python experience looking for an open source project to get involved in (learn the code, do bug fixes, etc). I've searched freshmeat.net, SourceForge, and Google Code, and found a few possibilities, but I thought I'd ask the lis

Re: Cannot download SendKeys module

2008-08-14 Thread Stef Mientki
kpd wrote: Same thing here, would greatly appreciate a copy myself. -- http://mail.python.org/mailman/listinfo/python-list here you can find a copy: http://code.google.com/p/pylab-works/downloads/list cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: export sites/pages to PDF

2008-08-12 Thread Stef Mientki
jvdb wrote: Hi all, My employer is asking for a solution that outputs the content of urls to pdf. It must be the content as seen within the browser. Can someone help me on this? It must be able to export several kind of pages with all kind of content (javascript, etc.) -- http://mail.python.org/

Re: eval or execute, is this the (most) correct way ?

2008-08-11 Thread Stef Mientki
Martin v. Löwis wrote: So AFAIK, sometimes I've to use eval and sometimes I need exec, so I use the following code (global / local dictionary parameters are left out in this example): Is this the (most) correct / elegant way, or are there better solutions ? You should be using compile wi

Re: Eclipse, Python, wxPython and code completion

2008-08-11 Thread Stef Mientki
[EMAIL PROTECTED] wrote: Hello, I've installed Eclipse, Python 2.5 and wxPython on Ubuntu 8.04. The problem is that I can't get code completion for wx module. I don't know if it occurs the same with other libraries outside the python "core". If I compile/run my code containing the wx library, I

Re: eval or execute, is this the (most) correct way ?

2008-08-11 Thread Stef Mientki
Steven D'Aprano wrote: On Mon, 11 Aug 2008 17:26:56 +0200, Stef Mientki wrote: I'm trying to make an editor with an integrated Shell. ... Is this the (most) correct / elegant way, or are there better solutions ? The best solution is not to re-invent the wheel: &q

eval or execute, is this the (most) correct way ?

2008-08-11 Thread Stef Mientki
hat in 2.5 (I just updated to) the doc is already disapeared, is this no longer possible in Python 3 ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

some kind of trace facility ?

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

Re: Is it allowed to use function results as default arguments ?

2008-07-29 Thread Stef Mientki
Terry Reedy wrote: To answer the subject line: param= will assign the result of the expression as the default argument object for the parameter. thanks Terry and others, brings me to one other question: I guess this function is only evaluated once, is that correct ? about os.curdir, I chec

Is it allowed to use function results as default arguments ?

2008-07-28 Thread Stef Mientki
As inspect returns the following: (['target', 'base'], None, None, ('.',)) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to upload files to "google code" filesection ?

2008-07-28 Thread Stef Mientki
Mike Driscoll wrote: Stef, Mike Driscoll wrote: On Jul 26, 12:43 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: hello, In a program I want to download (updated) files from google code (not the svn section). I could find a python script to upload files, but n

Re: how to upload files to "google code" filesection ?

2008-07-28 Thread Stef Mientki
Mike Driscoll wrote: On Jul 26, 12:43 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: hello, In a program I want to download (updated) files from google code (not the svn section). I could find a python script to upload files, but not for downloading. Anyone has a hint or a solution ?

how to upload files to "google code" filesection ?

2008-07-26 Thread Stef Mientki
hello, In a program I want to download (updated) files from google code (not the svn section). I could find a python script to upload files, but not for downloading. Anyone has a hint or a solution ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this possible ....

2008-07-23 Thread Stef Mientki
thanks Paul, your solution works very well. cheers, Stef Paul Hankin wrote: On Jul 23, 9:58 am, Stef Mientki <[EMAIL PROTECTED]> wrote: You could use version() instead of module.version(), and just declare 'version' in one place. Presumably you already have a module

Is this possible ....

2008-07-23 Thread Stef Mientki
hello, I'm looking for a way to remove duplicate code. The problem is this: In all my modules I've version information, containing version information, date, author, testconditions etc, something like this: Version_Text = [ [ 0.2, '10-02-2008', 'Stef Mientki',

Re: Rotating a cube

2008-07-20 Thread Stef Mientki
Fredrik Lundh wrote: David Lyon wrote: But is the question about display graphics ? ie rotating a cube using a python framework ? With something like python and OpenGL ? or Python and PovRay... or perphaps python and imagemagick ? can you name one graphics framework that represents a cube

Re: Babelfish translation ...

2008-07-17 Thread Stef Mientki
thanks Stefan, both lxml and threading works perfect. One small problem, "with_tail" was not recognized as a valid keyword. cheers, Stef Stefan Behnel wrote: Stef Mientki gmail.com> writes: Although it works functionally, it can take lots of time waiting for the transla

Babelfish translation ...

2008-07-17 Thread Stef Mientki
abel.SetLabel ( translation ) I'm using Python 2.5 and wxPython. Probably I should use a separate thread, but that's above my knowledge. I could also use a timer to check at regualr intervals when the translation is ready, but I've no idea how to implement that with the above code.

Re: Why is there no GUI-tools like this for Windows?

2008-07-12 Thread Stef Mientki
maestro wrote: http://www.youtube.com/watch?v=PXpwC1o5AcI I have done some GUI-programming for windows with Python but the Tkinter interface sucked and while it is the only one I tried I got the impression they are all the same. It's amazing how retarded a lot of the stuff programmers do is. Wa

Re: ActiveState Code: the new Python Cookbook site

2008-07-09 Thread Stef Mientki
hi Mike, nice job, I just took a quick look, Trent Mick wrote: The Python Cookbook is by far the most popular of the ASPN Cookbooks, so I wanted to get the Python community's feedback on the new site. What do you think? What works? What doesn't? I'll try to answer feedback on python-list o

find all ODBC databases ?

2008-07-08 Thread Stef Mientki
I get all ODBC databases in a platform independant way ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: sage vs enthought for sci computing

2008-07-07 Thread Stef Mientki
[EMAIL PROTECTED] wrote: Hello, I have recently become interested in using python for scientific computing, and came across both sage and enthought. I am curious if anyone can tell me what the differences are between the two, since there seems to be a lot of overlap (from what I have seen). If my

Getting metadata from any database ?

2008-07-05 Thread Stef Mientki
ragma statements. Is there a similar way for odbc ? (Couldn't find anything in API 2.0 specs) (mxODBC is not option because my project is an open source project) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: list extension ?

2008-06-30 Thread Stef Mientki
thanks guys, def __init__ ( self, value = [] ) : Gotcha : default argument values are eval'd only once. Also, it would make more sense IMHO to follow the parent's class initializer's behaviour: def __init__(self, *args) list.__init__ ( self, value ) list.__init_

Re: list extension ?

2008-06-30 Thread Stef Mientki
thanks guys, def __init__ ( self, value = [] ) : Gotcha : default argument values are eval'd only once. Also, it would make more sense IMHO to follow the parent's class initializer's behaviour: def __init__(self, *args) list.__init__ ( self, value ) list.__init_

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

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

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: [Business apps for Windows] Good grid + calendar, etc.?

2008-06-01 Thread Stef Mientki
Ryan Ginstrom wrote: On Behalf Of Gilles Ganault Is it hopeless, or did I overlook things? Are there other solutions I should look at (FLTK, etc.)? For those of you writing business apps in Python for Windows, how do things go as far as GUI widgets are concerned? To do a bit of shamele

Re: definition of a highlevel language?

2008-05-28 Thread Stef Mientki
Avowkind wrote: On May 27, 6:34 am, [EMAIL PROTECTED] wrote: (might not be the right forum for this but...) what is the definition of a highlevel-language? well there isnt one specifically and wikipedia and the like gives just a very general description obv you can say it abstracts away low

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

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

SQLite import fails sometimes ?

2008-05-24 Thread Stef Mientki
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, but as the program is rather large (and dynamic) it's no

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

2008-05-19 Thread Stef Mientki
John Salerno wrote: Hey all. Just thought I'd ask a general question for my own interest. Every time I think of something I might do in Python, it usually involves creating a GUI interface, so I was wondering what kind of work you all do with Python that does *not* involve any GUI work. This c

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

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

[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

<    1   2   3   4   5   6   7   >