Re: favourite editor

2007-02-12 Thread Stef Mientki
or of PyScripter jan-2007: I hope that such problems will be resolved when I release the remote debugging facility, which should happen quite soon. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Question

2007-02-12 Thread Stef Mientki
Bjoern Schliessmann wrote: > Stef Mientki wrote: > >> - in Delphi the GUI design itself is done in a graphical >> environment, making it much easier and faster > > RAD possible with Python, too. > >> - auto-scaling of components on a form is very easy (so

Re: Help Required for Choosing Programming Language

2007-02-16 Thread Stef Mientki
the best of both worlds. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Help Required for Choosing Programming Language

2007-02-16 Thread Stef Mientki
Bruno Desthuilliers wrote: > Stef Mientki a écrit : >> [EMAIL PROTECTED] wrote: >> >>> I am VB6 programmer and wants to start new programming language but i >>> am unable to deciced. >>> >>> i have read about Python, Ruby and Visual C++. but

Re: Help Required for Choosing Programming Language

2007-02-17 Thread Stef Mientki
Peter Decker wrote: > On 2/16/07, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> In one of the other threads, Dabo was meant as a GUI designer, >> I tried it yesterday, >> and although it looks very promising, >> at the moment this is not a graphical design envi

Re: Help Required for Choosing Programming Language

2007-02-17 Thread Stef Mientki
re MatLab or Python does all the real-time numerical analysis. http://oase.uci.kun.nl/~mientki/download/medilab_tot.htm Writing this program, including teaching myself Python (with a lot of help of this group, thank you all !!), and writing the bloodpressure analysis in both MatLab and Python, excluding the ADC-drivers, costed me about 150 .. 200 hours ... ... can that be done be an experienced programmer in Python. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Help Required for Choosing Programming Language

2007-02-17 Thread Stef Mientki
> I would love to see: > - a comparison between wx and gtk (QT doesn't have a very inviting > license ;-) I just found this: http://www.wxwidgets.org/wiki/index.php/WxWidgets_Compared_To_Other_Toolkits -- http://mail.python.org/mailman/listinfo/python-list

Re: Help Required for Choosing Programming Language

2007-02-19 Thread Stef Mientki
> > It's now the *3rd* time I mention Glade, wxGlade and QTDesigner in this > thread. Hendrik, I know *exactly* what Stef is talking about - been > here, done that. Doubt, that know what I'm talking about ... ... Glade, wxGlade, QTDesigner are not my choice ;-) ... at the moment I tend towards

Re: ANN: PyDSTool now compatible with numpy 1.0.1, scipy 0.5.2 and 64-bit CPUs.

2007-02-20 Thread Stef Mientki
Sounds GREAT ! thank you ! I just took a quick look, the comparison to SimuLink looks good, now if someone could make a comparison with Modelica ;-) cheers, Stef Mientki Rob Clewley wrote: > We are pleased to announce version 0.84 of PyDSTool, an open-source > dynamical systems simu

[ANN] Scope_Plot, another plot library for real time signals.

2007-11-04 Thread Stef Mientki
ation description shows a more complex signal organization. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

list of class initiations ?

2007-11-16 Thread stef mientki
0, x2=90, y2=90, type='rect' ): class Shape(ShapeEvtHandler): (self, x=[], y=[]): class ShapeEvtHandler: () within 1 file would be enough. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: why it is invalid syntax?

2007-11-22 Thread Stef Mientki
alf wrote: > Hi, > > I wonder why it is an invalid syntax: > > > >>> if 1: if 1: if 1: print 1 > File "", line 1 > if 1: if 1: if 1: print 1 > > > or > > >>> if 1: for i in range(10): print i > File "", line 1 > if 1: for i in range(10): print i > > I would expect one could nes

Very basic, sorting a list ???

2007-11-28 Thread stef mientki
x1 xx2 [14, 12, 10] xx3 None What am I doing wrong ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Science list

2007-11-29 Thread Stef Mientki
Francesco Pietra wrote: > It is true that suggestions may arrive from all directions. Nonetheless, this > extremely useful list is so crowded that if checking email is not carried out > every few hours, it is difficult to detect other messages in the plethora of > pythons and spams arrived. What ha

Re: Very basic, sorting a list ???

2007-11-29 Thread Stef Mientki
Peter Decker wrote: > On Nov 28, 2007 7:22 PM, stef mientki <[EMAIL PROTECTED]> wrote: >> print 'xx3',ordered_list.sort() > > The sort() method returns None. It sorts the list in place; it doesn't > return a copy of the sorted list. > Thank yo

Re: Very basic, sorting a list ???

2007-11-29 Thread Stef Mientki
Hrvoje Niksic wrote: > Stef Mientki <[EMAIL PROTECTED]> writes: > >> although I find it rather non-intuitive. >> I didn't expect a copy, but a reference to itself wouldn't be asked >> too much ? > > If you didn't expect a copy, why rely on the r

how to get module globals into a class ?

2007-12-09 Thread stef mientki
it should be in every class of every librray file. So I would like to move this statement to the base-class-file, but I can't figure out how to accomplish that. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to include a tiny debug feature in my project ?

2007-12-13 Thread Stef Mientki
ter the execution of each line (The number of lines written by the user will be at most 20 lines) Is this a good approach ? If so, how can I execute each line separate ? If not, what other approach should I use ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

is it possible to install 2 Python versions on windows XP ?

2007-12-17 Thread Stef Mientki
t to go back to 2.4. Is there a safe way to install Python 2.5, without affecting the Python 2.4 version and the windows registry, on windows XP ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

why only an msi-installer for windows ?

2007-12-18 Thread Stef Mientki
hello, having a lot of trouble installing 2.5 (without affecting my stable 2.4), I wonder why there's only a msi installer for windows users ? thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: is it possible to install 2 Python versions on windows XP ?

2007-12-18 Thread Stef Mientki
I finally found a way to let everything work: My base system is a stable Scipy installation, based on Python 2.4, with a few extra or updated libraries. This Python installation is completed with RPYC and PyScripter, to form a good workplace to develop GUI through wxPython. Installing of a worki

Re: why only an msi-installer for windows ?

2007-12-19 Thread Stef Mientki
Gabriel Genellina wrote: > On 18 dic, 15:54, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> having a lot of trouble installing 2.5 (without affecting my stable 2.4), >> I wonder why there's only a msi installer for windows users ? > > What's your problem?

Re: why only an msi-installer for windows ?

2007-12-19 Thread Stef Mientki
Martin v. Löwis wrote: having a lot of trouble installing 2.5 (without affecting my stable 2.4), I wonder why there's only a msi installer for windows users ? >>> What's your problem? I have five versions installed (2.1, 2.3, 2.4, >>> 2.5 and svn) and they coexist peacefully. Just ma

Is there a simple way to parse this string ?

2007-12-19 Thread Stef Mientki
ven deeper nested lists, represented by a string.) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python DLL in Windows Folder

2007-12-25 Thread Stef Mientki
Markus Gritsch wrote: > On 25/12/2007, Tim Roberts <[EMAIL PROTECTED]> wrote: > >> Ross Ridge <[EMAIL PROTECTED]> wrote: >> >> >>> Chris Mellon <[EMAIL PROTECTED]> wrote: >>> What the python installer is doing is the Right Thing for making the standard python dll available

at what complexity, a comparison fails ?

2007-12-31 Thread Stef Mientki
w complex might a list be to make a valid comparison, or what are the rules ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Some specific exec behavior ?

2008-01-01 Thread Stef Mientki
while this works correct: def _func (x,y): return (1- x/2 + x**5 + y**3)*exp(-x**2-y**2) 2. an emtpy line at the end also generates an exception Is this behavior correct ? where should I find information about it ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: at what complexity, a comparison fails ?

2008-01-01 Thread Stef Mientki
Robert Kern wrote: > Stef Mientki wrote: > >> hello, >> >> I had a program that worked perfectly well. >> In this program modules were dynamically added, >> just by putting the file in a predefined directory. >> >> Now one of the interface mechani

Re: Some specific exec behavior ?

2008-01-01 Thread Stef Mientki
Gabriel Genellina wrote: > En Tue, 01 Jan 2008 16:39:21 -0200, Stef Mientki <[EMAIL PROTECTED]> > escribi�: > > >> I find 2 strange behaviors in exec-function, >> and I can't find anything in the documentation. >> (Python 2.4.3 Enthought edition) &g

Re: Python Trajectory Module?

2008-01-01 Thread Stef Mientki
[EMAIL PROTECTED] wrote: > Greetings, > > I was wondering if there was a python Module/Library out there that > handles some trajectory/physics stuff like moving an object along a > straight path in an X,Y 2D (or 3D) plane or calculating parabolic > arcs. I'd really settle for just the moving of an

getting absolute path ?

2008-01-09 Thread Stef Mientki
.path.normpath ( os.path.join ( p, file ) ) line = line.replace ( file, abspath ) print line but it only covers files on local disk and just 1 link per line, so I guess it's a lot of trouble to catch all cases. Isn't there a convenient function for (OS independent prefe

Re: getting absolute path ?

2008-01-10 Thread Stef Mientki
thanks Mike, with your links I managed to write some code that seems to work well. Still I stay surprised that these kind of functions are not available ;-) cheers, Stef [EMAIL PROTECTED] wrote: > On Jan 9, 3:22 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> hello, &

Re: How to create graphs an embed them in GUI?

2008-01-17 Thread Stef Mientki
Heiko Niedermeyer wrote: > Sorry for the fuzzy subject... > > Currently I'm writing a little programm to extract some chemical > information out of a text file, and then present it in a pleasant way. > The Extraction works so far, so now the presentation will be next. > > As I'm learning Python

get the size of a dynamically changing file fast ?

2008-01-17 Thread Stef Mientki
e the same behaviour, sometimes it works, and the data is collected each 50 .. 100 msec, sometimes 1 .. 1.5 seconds is needed to detect a change in filesize. I'm using python 2.4 on winXP. Is there a solution for this problem ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: get the size of a dynamically changing file fast ?

2008-01-22 Thread Stef Mientki
Mike Driscoll wrote: > On Jan 17, 3:56 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> hello, >> >> I've a program (not written in Python) that generates a few thousands >> bytes per second, >> these files are dumped in 2 buffers (files), at i

Re: get the size of a dynamically changing file fast ?

2008-01-22 Thread Stef Mientki
Mike Driscoll wrote: > On Jan 22, 3:35 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> Mike Driscoll wrote: >> >>> On Jan 17, 3:56 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: >>> >>>> hello, >>>> &g

Re: A GUI framework for running simulations

2008-01-23 Thread Stef Mientki
I framework for running > simulations? although quit premature, PyLab_Works might be of interest, see some demos here (watch the demo at the bottom first): http://oase.uci.kun.nl/~mientki/data_www/pylab_works/pw_animations_screenshots.html (you can contact me offline if PyLab_Works looks i

Re: get the size of a dynamically changing file fast ?

2008-01-23 Thread Stef Mientki
e, >>>> by truncating it after each block write, it apperently garantees that >>>> the file is flushed to disk and all problems are solved. >>>> >>>> cheers, >>>> Stef Mientki >>>> >>> I almost aske

Re: get the size of a dynamically changing file fast ?

2008-01-24 Thread Stef Mientki
Gabriel Genellina wrote: > En Wed, 23 Jan 2008 16:16:58 -0200, Stef Mientki > <[EMAIL PROTECTED]> escribió: > >>>> Yes, that's a small disadavantage of using a "high-level" language, >>>> where there's no flush available, and you assum

Re: Will Python on day replace MATLAB?????????????????????????????????????????????????????

2008-02-01 Thread Stef Mientki
Blubaugh, David A. wrote: > To All, > > > I have been evaluating the python environment ever more closer. I > believe I can interface python with a development environment known as > the ImpulseC environment. The ImpulseC environment develops C to VHDL > for FPGA development. I would especial

Re: Does anyone else use this little idiom?

2008-02-03 Thread Stef Mientki
be careful, "_" is thé translation function used in Il8N, Il10N localization / internationalization e.g. print _( "hello" ) cheers, Stef [EMAIL PROTECTED] wrote: > Ruby has a neat little convenience when writing loops where you don't > care about the loop index: you just do n.times do { ... s

(websearch) script ?

2008-02-04 Thread Stef Mientki
ds of standard scripts on the web ? Just curious. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: SAGE for FPGA development

2008-02-14 Thread Stef Mientki
Blubaugh, David A. wrote: > Bill, > > > Let me first say that my FPGA experiences are of the following nature: > > 1.) Developed control algorithms onto a FPGA that were utilized to > control a switch-reluctance motor (three-phase as well six-phase). > > 2.) I am currently in the process of dev

Re: SAGE for FPGA development

2008-02-14 Thread Stef Mientki
educational institute ! But to be honest, I don't like LabView very much and would love to see an open source alternative ! succes, cheers, Stef Mientki > David Blubaugh > > > > > > > > > -Original Message- > From: Stef Mientki [mailto:[EMAIL PROTECTED]

Re: pyinstall and matplotlib

2008-02-17 Thread Stef Mientki
hi John, John Henry wrote: > Anybody willing to help? > I struggled the past few days with the same problem, and with the help of Werner Bruhin (wxPython list) I found a solution. I had 2 problems: - not finding mpl datapath - matplotlib insisted on installing backends that were distorted o

Re: pyinstall and matplotlib

2008-02-19 Thread Stef Mientki
>>> Traceback (most recent call last): >>> File "multicolor.py", line 11, in ? >>> File "pylab.pyc", line 1, in ? >>> File "matplotlib\pylab.pyc", line 222, in ? >>> File "matplotlib\backends\__init__.pyc", line 24, in pylab_setup >>> File "matplotlib\backends\backend_tkagg.pyc", line 7,

Any experience with Python on a PDA ?

2008-02-22 Thread Stef Mientki
hello, I wonder if anyone has (good ;-) experiences with Python on a PDA ? And if so, - what OS - what GUI thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for open source simulink clone in python

2008-02-24 Thread Stef Mientki
[EMAIL PROTECTED] wrote: > Does anyone know of something like this? I've searched to no avail. > GNUradio companion is promising but tied to gnuradio. > not exactly, this is what I've found until now * Orange * Elefant

invert or not ?

2008-03-01 Thread Stef Mientki
hello, from the manual I read that a bitwise inversion should be done by invert. But from some experiments I see that not works equally well. Is this coincidence ? (The disadvantage of invert is that I've to import operators) thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython/wxWidgets ok for production use ?

2008-03-10 Thread Stef Mientki
Stefan Behnel wrote: > Malcolm Greene wrote: > >>> My personal experience with wxPython has its ups and downs. Specifically >>> when it comes to crashes, I wouldn't bet my life on it. >>> >> I'm new to Python and getting ready to build a small client based >> application intended to run

python-list@python.org

2008-03-10 Thread Stef Mientki
Eric von Horst wrote: > Hi, > > I need some advice on Drag&Drop. > > What I want to achieve is the following: > - I have a window that is divided in two : on the left hand I > have a wx.TreeCtlr and on the other hand a wx.StaticBitmap > > I want to be able to drag an item from the tree ont

Re: wxPython/wxWidgets ok for production use ? (was Re: Quality assurance in Python projects containing C modules)

2008-03-11 Thread Stef Mientki
Gilles Ganault wrote: > On Mon, 10 Mar 2008 11:27:06 -0400, "Malcolm Greene" > <[EMAIL PROTECTED]> wrote: >> Any suggestions on an alternative Python client-side GUI library (pyQT >> ?) or tips on where I can find out more about wxPython/wxWidget >> problems? > > One thing that bothers me is that

how to pass the workspace ?

2008-03-11 Thread Stef Mientki
ed in node1, to node 2, etc ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to pass the workspace ?

2008-03-13 Thread Stef Mientki
Gary Herron wrote: > Stef Mientki wrote: >> hello, >> >> I've GUI tree with drag and drop nodes, >> where each nodes contains a code snippet. >> Now I want to run one or more branches in that tree, >> so I enumerate over the nodes and have to run

Re: how to pass the workspace ?

2008-03-14 Thread Stef Mientki
Thanks, Gary and Dennis, Dennis Lee Bieber wrote: > On Thu, 13 Mar 2008 21:35:42 +0100, Stef Mientki > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > >> The result of globals and locals in the file is eaxctly the same and >> none of

Is this valid ?

2008-03-19 Thread Stef Mientki
hello, by accident I typed a double value test, and to my surprise it seems to work. Is this valid ? a = 2 b = 2 a == b == 2 thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: wxFormBuilder

2008-03-20 Thread Stef Mientki
sturlamolden wrote: > I just discovered wxFormBuilder. After having tried several GUI > builders for wx (including DialogBlocks, wxGlade, XRCed, Boa > constructor), this is the first one I can actually use. > > To use it wxFormBuilder with wxPython, I generated an xrc resource and > loaded it with

class or inherited list ?

2008-03-28 Thread Stef Mientki
x27;t need brackets and no quotes. What are others opinion about this ? thanks, Stef Mientki class super_list(list): pass def kwadraat ( value ) : return value * value x={} x['frequency']=33 x['functie']=kwadraat print x['functie'](2) y = super_list() y.f

Re: class or inherited list ?

2008-03-28 Thread Stef Mientki
thanks Gabriel, Gabriel Genellina wrote: > En Fri, 28 Mar 2008 12:15:45 -0300, Stef Mientki <[EMAIL PROTECTED]> > escribió: > > >> Passing all kinds of data between objects, >> I'm looking for an elegant (and simple) way to pack the data. >> Now i

Re: class or inherited list ?

2008-03-28 Thread Stef Mientki
> print x['functie'](2) >>> >>> y = super_list() >>> y.frequency = 33 >>> y.functie = kwadraat >>> print y.functie(3) >>> >> >> You don't use y as a list at all - you might as well inherit from >> object. > Good point, didn't notice that. Sorry, not a good point, by deriving from a list, I get all the list methods for nothing. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Class or dictionary ? (was: class or inherited list ?)

2008-03-28 Thread Stef Mientki
Sorry, although the code example was correct, the question was wrong. Stef Mientki Stef Mientki wrote: > hello, > > Passing all kinds of data between objects, > I'm looking for an elegant (and simple) way to pack the data. > Now it looks to me that both the class an

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_thr

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

why is this invalid b = a += b ?

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

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

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,

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

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 wrote: IMHO, scripting languages like Python are generally better suited to working with a text editor than an IDE. I

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 good

Re: database wrapper ?

2009-02-02 Thread Stef Mientki
Chris Rebert wrote: On Sun, Feb 1, 2009 at 2:56 PM, Stef Mientki 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, and I'm

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 standalo

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 seem

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 woul

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 woul

hpw to convert a linux python script ?

2009-02-11 Thread Stef Mientki
hello, I've a python script, written for some Linux version, now I want to run it under windows. It complains of not finding files in /usr/share/tinybldLin/ where is the directory where the script is located and started from. As there are a whole lot of these lines, in a whole lot of

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 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 was thinking of a

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread Stef Mientki
azrael wrote: To be honest, in compare to Visual Studio, Gui Builders for wx widgets are really bad. Also completly for python there is not one good GuiBuilder. The only one I have seen that would come near VS was BoaConstructor, But the number of Bugs is just horrific. Too bad that no one is dev

how to detect if an object is "simple" (not a pointer, unmutable ) ?

2009-02-17 Thread Stef Mientki
be the same as mutable ? ( The type of connection need not be a standard Python type, but might be any type created by the user. ) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to detect if an object is "simple" (not a pointer, unmutable ) ?

2009-02-17 Thread Stef Mientki
thanks Diez, Diez B. Roggisch wrote: Stef Mientki schrieb: hello, I'm making a virtual machine, in which (small) pieces of software (called bricks) are connected, by connecting an output of a brick to the input of another brick. A connection between 2 bricks may be of any type, so it

can error messages be improved or can they be overridden ?

2009-02-22 Thread Stef Mientki
have bounced in this problem before me ;-) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to detect if a dictionary has been modified ?

2008-11-23 Thread Stef Mientki
ith 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

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

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 be

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

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

2008-11-26 Thread Stef Mientki
None-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
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 = NonEvent(

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

is it possible to integrate Python into VBS ?

2008-11-26 Thread Stef Mientki
reted 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).

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). Ar

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

how to find help/doc files ?

2008-11-29 Thread Stef Mientki
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

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 alre

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 of

<    1   2   3   4   5   6   7   >