Why doesn't doc has predifined name and location ?

2008-12-01 Thread Stef Mientki
hello, I'm very satisfied about the great standardization of doc strings in python. Now in contrast to that, the general documentation of libraries, either in plain text, html, pdf, chm, ... doesn't have a standarized name nor location. Why is that ? thanks, Stef Mient

Re: Why doesn't doc has predifined name and location ?

2008-12-01 Thread Stef Mientki
Chris Rebert wrote: On Mon, Dec 1, 2008 at 1:22 PM, Stef Mientki <[EMAIL PROTECTED]> wrote: hello, I'm very satisfied about the great standardization of doc strings in python. Now in contrast to that, the general documentation of libraries, either in plain text, html, pdf, chm,

Re: Mathematica 7 compares to other languages

2008-12-01 Thread Stef Mientki
Jon Harrop wrote: Xah Lee wrote: And on this page, there are sections where Mathematica is compared to programing langs, such as C, C++, Java, and research langs Lisp, ML, ..., and scripting langs Python, Perl, Ruby... Have they implemented any of the following features in the latest v

Re: Debugging a Python Program that Hangs

2008-12-03 Thread Stef Mientki
check winpdb / rpdb2, cheers, Stef On 12/3/08, alex23 <[EMAIL PROTECTED]> wrote: > On Dec 3, 2:19 am, Kevin D. Smith <[EMAIL PROTECTED]> wrote: >> I have a fairly large python program that, when a certain combination >> of options is used, hangs. I have no idea where it is hanging, so >> simply p

how to get a beep, OS independent ?

2008-12-06 Thread Stef Mientki
hello, I want to give a small beep, for windows there's message-beep, and there seems to be something like " curses" , but that package seems to be totally broken in P2.5 for windows. Any other suggestions ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get a beep, OS independent ?

2008-12-07 Thread Stef Mientki
Rainy wrote: On Dec 6, 3:40 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: hello, I want to give a small beep, for windows there's message-beep, and there seems to be something like " curses" , but that package seems to be totally broken in P2.5 for windows. Any other

Re: how to get a beep, OS independent ?

2008-12-07 Thread Stef Mientki
Chris Rebert wrote: On Sun, Dec 7, 2008 at 1:27 AM, Stef Mientki <[EMAIL PROTECTED]> wrote: Rainy wrote: On Dec 6, 3:40 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: hello, I want to give a small beep, for windows there's message-beep, and there seems to

Re: how to get a beep, OS independent ?

2008-12-08 Thread Stef Mientki
Joe Strout wrote: On Dec 7, 2008, at 4:43 PM, Steven D'Aprano wrote: Of course, if you're volunteering to write such a standard system beep for Python, I for one would be grateful. I am. But where should I put it? Assuming we don't want to wait for the (understandably) lengthy and contenti

Re: Mathematica 7 compares to other languages

2008-12-10 Thread Stef Mientki
On 12/10/08, Xah Lee <[EMAIL PROTECTED]> wrote: > On Dec 8, 5:25 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: >> Lest anyone doubt that problem size is important for comparing program >> run times, consider ... > > just in case there's any doubt: > > Simply change these lines in Jon's program: > > Ma

Re: Python is slow

2008-12-10 Thread Stef Mientki
cm_gui wrote: http://blog.kowalczyk.info/blog/2008/07/05/why-google-should-sponsor-a-faster-python-vm.html I fully agree with Krzysztof Kowalczyk . Can't they build a faster VM for Python since they love the language so much? Python is SLOW.And I am not comparing it with compiled languages

Re: Mathematica 7 compares to other languages

2008-12-11 Thread Stef Mientki
Andreas Waldenburger wrote: On Thu, 11 Dec 2008 05:40:45 + Paul Rudin <[EMAIL PROTECTED]> wrote: "Dotan Cohen" <[EMAIL PROTECTED]> writes: 2008/12/10 <[EMAIL PROTECTED]>: Ruby: def norm a s = Math.sqrt(a.map{|x|x*x}.inject{|x,y|x+y}) a.map{|x| x/s} end If som

Re: Python is slow

2008-12-16 Thread Stef Mientki
r wrote: On Dec 15, 7:15 am, Luis M. González wrote: On Dec 15, 1:38 am, cm_gui wrote: hahaha, do you know how much money they are spending on hardware to make youtube.com fast??? By the way... I know of a very slow Python site called YouTube.com. In fact, it is so slow that

how to dock another application under Linux ?

2008-12-18 Thread Stef Mientki
hello, Under windows it's fairly easy to capture an application and dock in to your own wxPython application, something like this: - start the external application from within wxPython - give the caption of the application a special name - find de windows handler of the applications mainform - te

Building a web questionnaire, can it be done in Python ?

2008-12-19 Thread Stef Mientki
hello, I'm considering building a web questionnaire in Python. I've made several desktop applications in Python / wxPython, but I've no experience in using Python on a webserver, and I don't have much knowledge about web applications in general. As am quit familiar with Python, therefor it soun

Re: Beep

2008-12-21 Thread Stef Mientki
Jeffrey Barish wrote: I use sys.stdout.write('\a') to beep. It works fine on Kubuntu, but not on two other platforms (one of which is Ubuntu). I presume that the problem is due to a system configuration issue. Can someone point me in the right direction? Thanks. I started a thread about t

Re: Why MyHDL?

2008-12-23 Thread Stef Mientki
hello Jan, Jan Decaluwe wrote: Hello: MyHDL is a Python package for using Python as a Hardware Description Language. A new release is upcoming, and on this occasion we have prepared a page about why MyHDL may be useful to you: http://www.myhdl.org/doku.php/why Very Interesting, I'm no e

Is there a function to remove escape characters from a string ?

2008-12-25 Thread Stef Mientki
hello, Is there a function to remove escape characters from a string ? (preferable all escape characters except "\n"). thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a function to remove escape characters from a string ?

2008-12-25 Thread Stef Mientki
Steven D'Aprano wrote: On Thu, 25 Dec 2008 11:00:18 +0100, Stef Mientki wrote: hello, Is there a function to remove escape characters from a string ? (preferable all escape characters except "\n"). Can you explain what you mean? I can think of at least four alternati

Re: Is there a function to remove escape characters from a string ?

2008-12-26 Thread Stef Mientki
I have the following kind of strings, the funny "þ" is ASCII character 254, used as a separator character ASCII ends at 127. Just refer to it as chr(254). note 1) [FSM] Counts = "1þ11þ16" ==> 1,11,16 Init1 = "1þ\BCtrl" ==>1,Ctrl State5 = "8þ\BJUMP_COMPL\b\n>PCWrite = 1

Re: Is there a function to remove escape characters from a string ?

2008-12-26 Thread Stef Mientki
John Machin wrote: On Dec 27, 12:05 am, Stef Mientki wrote: Yep, chr(254), because it's not in the human range of characters and it's accepted by windows ini-files. import unicodedata as ucd for i in (0,1,2,3,4,7,8): ...s = chr(254) ...enc = '

Re: Is there a function to remove escape characters from a string ?

2008-12-27 Thread Stef Mientki
Steven D'Aprano wrote: On Sat, 27 Dec 2008 01:41:40 +0100, Stef Mientki wrote: Sorry if I offended someone, that was certainly not my intention. And I guess you will be surprised, if I tell you, I don't (want) to understand any bit of the above code ;-) Come on, the home co

Triple quoted string in exec function ?

2008-12-30 Thread Stef Mientki
hello, I'm running scripts, with the execute function (Python 2.5), and it seems that triple quoted strings are not allowed. Is there a workaround, or is this a fundamental problem of the exec-function ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Triple quoted string in exec function ?

2008-12-30 Thread Stef Mientki
ibpe...@gmail.com wrote: On Dec 30, 2:48 pm, Steve Holden wrote: Stef Mientki wrote: hello, I'm running scripts, with the execute function (Python 2.5), and it seems that triple quoted strings are not allowed. Is there a workaround, or is this a fundamental probl

Re: embedding python in wxpython

2008-12-30 Thread Stef Mientki
5lvqbw...@sneakemail.com wrote: Hi, I've looked around for a way to allow a python console from within a wxPython application, but have only found stuff on embedded/ extending python with C/C++ or wxWidgets in C++, but not wxPython. Is this easy to do? Can someone point me in the right directio

Re: Graphics Library with Standard Interaction Features, 2D and 3D

2008-12-31 Thread Stef Mientki
Maybe VPython (Visual) or Panda fits your needs. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Easy-to-use Python GUI

2009-01-01 Thread Stef Mientki
Gerhard Häring wrote: Dotan Cohen wrote: I have been following this thread with interest. Is there a way to build Qt apps with relative easy? I use KDE and would prefer the Qt toolkit for my GUI apps. Thanks. A few years ago, I've had bad experiences with wxPython (random things not actually

Re: Triple quoted string in exec function ?

2009-01-02 Thread Stef Mientki
Stef Mientki wrote: hello, I'm running scripts, with the execute function (Python 2.5), and it seems that triple quoted strings are not allowed. Is there a workaround, or is this a fundamental problem of the exec-function ? thanks, Stef Mientki thanks for all the answers, but I still

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

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

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

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

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

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

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

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

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

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
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
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: 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
On Thu, Oct 23, 2008 at 2:03 PM, Jani Tiainen <[EMAIL PROTECTED]> wrote: > I have rather simple 'Address' object that contains streetname, > number, my own status and x,y coordinates for it. I have two lists > both containing approximately 3 addresses. > > I've defined __eq__ method in my clas

ANN: gui_support, a convenience library for wxPython

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

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
hello, Although I personally hate to release a new version so soon, the error reporting is so essential, that updating is a must. V1.5 changes - errors (catched by the library) will now give a normal error report - GUI preview function now available in this library gui_support is library for ea

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
pihentagy wrote: Hi! I am looking for a python IDE which can remove my unused imports, is that possible in a language like Python ? I can imagine the opposite, importing those things that are necessary. and can do basic refactoring under windows. What kind of refactoring do you think of ?

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
Bill McClain wrote: On 2008-10-31, Tim Golden <[EMAIL PROTECTED]> wrote: You've got a few options. Ok, thanks! It is a small hobbyist community. I'll just document it and tell them "life is hard for Windows users." Well I don't know any Windows users that still use DOS-boxes ;-) c

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
azrael wrote: whoever I ask, everyone tells me when it come to python and GUI-s and that there is the best way to use WX. I am browsing for the 10th time during the last year and I can still not bealive that there is not one project to make gui-building easy as maybe in VB for python. Each I trie

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
On Tue, Nov 11, 2008 at 8:46 AM, Markus Mayer <[EMAIL PROTECTED]> wrote: > Hi folks. > > I'm new to python and have a slight problem importing - or maybe > understanding - modules. I'm writing a GUI application using Qt4 and > wanted to separate the business from the view logic. So I have my folde

Re: What is the best Python GUI API?

2008-11-13 Thread Stef Mientki
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 platform. Qt applications look beautiful but I hate the license. What do you advice? I agree about the Qt-license, and I'm now a happy wxPython user. cheers,

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
Eric wrote: Hi, I've been trying to get my son interested in learning some simple programming for a while. While I understand that a structured tutorial is best, I think if we can write something cool at least once, it will encourage him to learn more. While I have a lot of experience with MATLA

Re: Programming exercises/challenges

2008-11-19 Thread Stef Mientki
hi Ben, [EMAIL PROTECTED] wrote: Hi guys, I'm learning Python by teaching myself, and after going through several tutorials I feel like I've learned the basics. Since I'm not taking a class or anything, I've been doing challenges/programs to reinforce the material and improve my skills. I st

Re: Module Structure/Import Design Problem

2008-11-20 Thread Stef Mientki
Rafe wrote: Hi, I am in a situation where I feel I am being forced to abandon a clean module structure in favor of a large single module. If anyone can save my sanity here I would be forever grateful. My problem is that classes in several modules share a common base class which needs to impleme

Re: Module Structure/Import Design Problem

2008-11-20 Thread Stef Mientki
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 very helpful, is it? Were you planning to keep the solution secret? sorry slip of the keyboard ;-) htt

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
try: self.Brick.Par [ self.EP[2] ]['FileName'] = filename except IndexError,e: msg = "%s: '%s %s %s %d" % (e.strerror,e.filename,self.EP,self.EP[2],len(self.Brick.Par)) print msg Bye, Ron. -----Original M

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
btw, it's also polite (in some cultures) to sign your messages ;-) Hmm. I appreciate that you took the time to remove my signature from your reply but I don't think that you should then claim that I never included one. Sorry for that. (now you get an idea how difficult it is for me

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 revisit that routin

is there an easy way to parse a nested list ?

2009-03-15 Thread Stef Mientki
hello, I need to parse a nested list, given as a string, like this line = " A [ B [ C+2 ] + 3 ] " ( I probably can do it with find, but I guess that's not the most elegant way, besides recusrion is not my strongest point) which should be parsed so I get an list from inner to outer side (d

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
Murali kumar wrote: hi all.. I want* to add speech recognition *to my application for *disabled persons*. (running in python 2.6 with wxpython 2.8.9..) _problem:_ actually i have some buttons scanned one by one.. button name is 'add' and if i tell 'add' then add button click event must be pe

Is it possible to create a shortcut ?

2009-03-21 Thread Stef Mientki
I would like to make a shortcut for this: self.Brick.Par [ self.EP[0] ] = something like this: self.P[0] = is that possible, otherwise than by eval / exec ? thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: speech recognition help

2009-03-21 Thread Stef Mientki
Tim Chase wrote: do u know which one 1. cmu sphinx 2. natural speaking 3. windows sapi is best ( in accuray and speed ) for predefined vocabulary.. and worth for learning as well.? For a pre-defined vocabulary, they should all be pretty good. In general (for non-predefined vocabularies), I

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
deech wrote: Hi all, I am making a cross-platform frontend to a sqlite3 database. Which python GUI toolkit has the best table support? Tkinter doesn't seem to support them (without additional package installation). The issue is that the application must run off a flash drive with a vanilla Pytho

Re: What way is the best to check an empty list?

2009-03-25 Thread Stef Mientki
andrew cooke wrote: Andre Engels wrote: On Wed, Mar 25, 2009 at 4:21 PM, andrew cooke wrote: i will go against the grain slightly and say that "len" is probably the best compromise in most situations (although i admit i don't know what [...] but i may be wrong - are there a

speak or Speak ?, was Re: Bullshit Generator

2009-03-29 Thread Stef Mientki
quit nice ! But I had to replace "speak" by "Speak" voice.Speak ( generatedSentence ) not a big issue, but as I want to deploy programs with Sapi, I'm interested if there are different speak engines around. thanks Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Need advise about an application

2009-04-05 Thread Stef Mientki
azrael wrote: I am currently working on an application and I need a advise. I am supposed to read data from a device connected to a serial port. I am reading data using pySerial. The devise is sending signals with a time between two signals of one second. The application is supposed to collect

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

<    1   2   3   4   5   6   7   >