Re: hpw to convert a linux python script ?

2009-02-11 Thread Stef Mientki
Alec Schueler wrote: On Feb 11, 7:58 pm, Stef Mientki stef.mien...@gmail.com wrote: As there are a whole lot of these lines, in a whole lot of files, I wonder if there's a simple trick to point /usr/share/tinybldLin/ to my directory ? thanks, Stef Find and replace? well I

Re: wxPython vs Glade?

2009-02-09 Thread Stef Mientki
Michael Pobega wrote: I'm looking for opinions on the best toolkit for a beginner to use with wxPython. It doesn't necessarily need to be the most efficient toolkit, but something I can use for basic programs (a Twitter client, Wordpress blogging client, etc) just to learn Python. wxWidgets

Re: Best 3d graphics kit for CAD program???

2009-02-09 Thread Stef Mientki
Gary Herron wrote: rantingrick wrote: I want to build a 3D CAD visualization program with Python. Now before you say this is not possible with Python here me out :) I know OpenGL is probably my best bet BUT i want something a little higher level than that. I am not ready for OpenGL yet. I

Re: Best 3d graphics kit for CAD program???

2009-02-09 Thread Stef Mientki
Gary Herron wrote: rantingrick wrote: I want to build a 3D CAD visualization program with Python. Now before you say this is not possible with Python here me out :) I know OpenGL is probably my best bet BUT i want something a little higher level than that. I am not ready for OpenGL yet. I

Re: what IDE is the best to write python?

2009-02-03 Thread Stef Mientki
Clip Libraries are stored in simple text files. This is such a simple concept but is so very productive. Who needs an IDE?. I would love to have a Linux text editor (like Scite or GEdit) that could do this. The code snippet manager, part of a huge IDE, but can be used as a standalone tool

Re: database wrapper ?

2009-02-02 Thread Stef Mientki
Chris Rebert wrote: On Sun, Feb 1, 2009 at 2:56 PM, Stef Mientki stef.mien...@gmail.com wrote: hello, Until now I used a simple wrapper around pysqlite and pyodbc to manage my databases. Now I'm looking for a better solution, because I've to support a (for this moment) unknown database

Re: what IDE is the best to write python?

2009-02-01 Thread Stef Mientki
thanks Matthew, for the extended answer and the great link, I'm going to study that carefully. cheers, Stef MattBD wrote: On Feb 1, 12:19 pm, Stef Mientki stef.mien...@gmail.com wrote: IMHO, scripting languages like Python are generally better suited to working with a text editor than

Re: what IDE is the best to write python?

2009-02-01 Thread Stef Mientki
IMHO, scripting languages like Python are generally better suited to working with a text editor than an IDE. I don't understand that, because in my opinion yields IDE = texteditor + (much) more please could you explain (as I'm very interested in user interfaces in general ) cheers, Stef

database wrapper ?

2009-02-01 Thread Stef Mientki
hello, Until now I used a simple wrapper around pysqlite and pyodbc to manage my databases. Now I'm looking for a better solution, because I've to support a (for this moment) unknown database, and I'm not the one who will choose the database. Googling, I found SQLalchemy, which looks quit

Re: verilog like class w/ bitslicing int/long classtype

2009-01-30 Thread Stef Mientki
Marc 'BlackJack' Rintsch wrote: On Fri, 30 Jan 2009 00:25:03 +0100, Stef Mientki wrote: try this: class MyRegClass ( int ) : def __init__ ( self, value ) : self.Value = value def __repr__ ( self ) : line = hex ( self.Value ) line = line [:2] + line [2:].upper() return

Re: verilog like class w/ bitslicing int/long classtype

2009-01-29 Thread Stef Mientki
mark.sea...@gmail.com wrote: I'm trying to make a script environment with datatypes (or classes) for accessing hardware registers. At the top level, I would like the ability to bitwise ops if bit slice brackets are used, but if no brackets are used, I would like it to write/read the whole

Re: verilog like class w/ bitslicing int/long classtype

2009-01-29 Thread Stef Mientki
mark.sea...@gmail.com wrote: Thanks. So far these solutions will return strings. So I can't really treat it like a variable, yet still perform bitslice on it, since I need a special class to do bitslice and bit selection, but as soon as I try to pass it into some other function to check a bit,

Re: verilog like class w/ bitslicing int/long classtype

2009-01-29 Thread Stef Mientki
mark.sea...@gmail.com wrote: Thanks. So far these solutions will return strings. So I can't really treat it like a variable, yet still perform bitslice on it, since I need a special class to do bitslice and bit selection, but as soon as I try to pass it into some other function to check a bit,

why is this invalid b = a += b ?

2009-01-24 Thread Stef Mientki
wrong with the above formula. thanks Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: A different kind of interface

2009-01-22 Thread Stef Mientki
Several guys are working on a MatLab like editor / IDE, based on wxPython, including myself ;-) see http://mientki.ruhosting.nl/data_www/pylab_works/pw_debug.html e.g. with F9 it runs either the selected code or if nothing selected the whole code or even more powerfull (depending on your

is there something like a module decorator ?

2009-01-18 Thread Stef Mientki
hello, I wonder if there's something like a module decorator. I could use it in debugging a large highly dynamical program. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

is there something like a module decorator ?

2009-01-18 Thread Stef Mientki
hello, I wonder if there's something like a module decorator. I could use it in debugging a large highly dynamical program. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: is there something like a module decorator ?

2009-01-18 Thread Stef Mientki
Diez B. Roggisch wrote: Stef Mientki schrieb: hello, I wonder if there's something like a module decorator. I could use it in debugging a large highly dynamical program. No, there isn't. This has been discussed a while ago: http://groups.google.de/group/comp.lang.python/browse_thread/thread

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 don't

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

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 st...@holdenweb.com 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

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

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 computer

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\nPCWrite =

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 stef.mien...@gmail.com 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

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 alternatives: I have

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

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

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

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 -

Re: Python is slow

2008-12-16 Thread Stef Mientki
r wrote: On Dec 15, 7:15 am, Luis M. González luis...@gmail.com wrote: On Dec 15, 1:38 am, cm_gui cmg...@gmail.com 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

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 someone

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: Main[9, 512, 4]

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

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 suggestions ? thanks, Stef

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 be something like curses

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

Re: Emacs vs. Eclipse vs. Vim

2008-12-01 Thread Stef Mientki
Peter Anderson wrote: What I have done is skipped the whole Vim/Emacs obscure editor thing and opted for PyScripter (see http://mmm-experts.com/Products.aspx?ProductID=4 ). It might not be as complete/complex as these other editors but it is easy to use and just lets me get on with the task

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

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, ... doesn't

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

Re: Making directories with python

2008-11-29 Thread Stef Mientki
Robert Singer wrote: I've been looking in the archives, but can't find anything similar. I'm trying to write a script which would make directories (winxp platform, py2.5) - actually, just one - a new directory with a date name. That is it would be called, for example: 20081129 (today's date).

Re: Debugging in Python

2008-11-29 Thread Stef Mientki
The debugging ability of the Komodo IDE is _significantly_ better than the freely available debuggers. If you like the Komodo Editor, you'll love the debugger. hi Scott, can you tell us, why Komodo debugger is better than PyScripter or even Winpdb(rpdb2) used in most python build IDE's ?

how to find help/doc files ?

2008-11-29 Thread Stef Mientki
? If not, are there standard ways to find the docs for the above programs, or is it pure random where these files are located ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging in Python

2008-11-29 Thread Stef Mientki
Scott David Daniels wrote: Stef Mientki wrote: The debugging ability of the Komodo IDE is _significantly_ better than the freely available debuggers. If you like the Komodo Editor, you'll love the debugger. hi Scott, can you tell us, why Komodo debugger is better than PyScripter or even

Re: Emacs vs. Eclipse vs. Vim

2008-11-29 Thread Stef Mientki
Mario Testinori wrote: On Sat, 29 Nov 2008 12:44:14 -0800, Josh [EMAIL PROTECTED] wrote: If you were a beginning programmer and willing to make an investment in steep learning curve for best returns down the road, which would you pick? I know this topic has been smashed around a bit

Is it possible (and wise) to extend the None-type ?

2008-11-26 Thread Stef Mientki
-type (if that's possible), with a dummy Skip() method. Is it wise to do ? If not what are the disadvantages ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible (and wise) to extend the None-type ?

2008-11-26 Thread Stef Mientki
snip Alternative (if you *really* want to save the explicit test) is to attach the behaviour modification to the *relevant* class: class NonEvent(Event): def do_nothing(self): pass skip = jump = hop = waltz = saunter = do_nothing def __len__(self): return 0 NON_EVENT =

Re: Is it possible (and wise) to extend the None-type ?

2008-11-26 Thread Stef Mientki
Jason Scheirer wrote: On Nov 26, 11:40 am, Terry Reedy [EMAIL PROTECTED] wrote: Stef Mientki wrote: hello, I've the idea that I always have a lot of useless code in my programs, like the next example. def _On_Menu_File_Open ( self, event = None ): if event

is it possible to integrate Python into VBS ?

2008-11-26 Thread Stef Mientki
by the database program, before it's executed. But as far as we know there are no restrictions on the VBS. So it should be possible to do the real work in Python. How can I call Python from within VBS ? I googled, but didn't find any relevant pages (probably used the wrong words). thanks, Stef

Re: Getting in to metaprogramming

2008-11-25 Thread Stef Mientki
Rafe wrote: On Nov 25, 5:41 pm, Aaron Brady [EMAIL PROTECTED] wrote: On Nov 25, 4:08 am, Rafe [EMAIL PROTECTED] wrote: Hi, In the name of self-education can anyone share some pointers, links, modules, etc that I might use to begin learning how to do some metaprogramming. That

how to detect if a dictionary has been modified ?

2008-11-23 Thread Stef Mientki
with a modified flag ? Or are there other solutions to detect easily a directory change ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to detect if a dictionary has been modified ?

2008-11-23 Thread Stef Mientki
Steven D'Aprano wrote: On Sun, 23 Nov 2008 01:18:17 -0800, bearophileHUGS wrote: Stef Mientki: I would like to detect if a dictionary has been changed. So I would like to have a modified-flag. A solution is of course to create a SDict class, that works like a normal dict

Windows, filename in right case, can it be done simpler ?

2008-11-23 Thread Stef Mientki
too difficult. Does anyone has a better solution ? thanks, Stef Mientki # *** # *** def Get_PDB_Windows_Filename ( FileName ) : On windows systems, Translates

Re: Windows, filename in right case, can it be done simpler ?

2008-11-23 Thread Stef Mientki
Martin v. Löwis wrote: Does anyone has a better solution ? If you have pythonwin, you can use win32file.FindFilesW, passing the lower-cased file name. Thanks Martin, seems to work great. cheers, Stef Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list --

Re: how to detect if a dictionary has been modified ?

2008-11-23 Thread Stef Mientki
Good point. What about d = {1: []} d[1].append(2) Has d changed or not? Which just goes to show that the SDict implementation above is, as suspected by the author, incomplete for the purpose of detecting all changes to the dict, as well as detecting some that might not

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 connect their pipework

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 very helpful, is it? Were you planning

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. That's not very helpful

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

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

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

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

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.

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 platform. Qt

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 folder

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 new to python and user

why am I not allowed to redefine a class ?

2008-11-09 Thread Stef Mientki
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_class.__init__

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. (And therefor I also

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

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 new to python and user

Re: Snippets management

2008-11-06 Thread Stef Mientki
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. cheers, Stef Mientki -- http://mail.python.org

is this a good way to do imports ?

2008-11-05 Thread Stef Mientki
__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: 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 ;-)

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 to parse it as an octal and now

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

2008-10-25 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

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

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

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

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

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 making

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 or class definition

ANN: gui_support, a convenience library for wxPython

2008-10-21 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

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_NameSpace ( code ) ### file

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. So the Qt license stopped

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

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 where

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

2008-10-20 Thread Stef Mientki
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. Probably best

<    1   2   3   4   5   6   7   >