Re: how to reference my own module ?

2008-05-10 Thread Stef Mientki
Terry Reedy wrote: "Stef Mientki" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | hello, | | I've a library that I import as | |import ppygui.api as gui | | the reason for this construct is that I've to use different libraries | for different platform

Re: Any other UI kits with text widget similar to that in Tk?

2008-05-10 Thread Stef Mientki
Kenneth McDonald wrote: I'm wondering if any of the other GUI kits have a text widget that is similar in power to the one in Tk. wxWindows, from what I can tell, doesn't offer nearly the options the Tk widget does. I'm less familiar with Qt. Any feedback would be most appreciated. Thanks, Ken

how to reference my own module ?

2008-05-10 Thread Stef Mientki
t these examples can be used in the user program just by copy / paste. For calling a function / class in the user program I've to write: sizer = gui.VBox () So also write exactly the same sentence in the library examples, but "gui" is not recognized Any ideas how I can realiz

Re: Browser + local Python-based web server vs. wxPython

2008-05-05 Thread Stef Mientki
Mike Driscoll wrote: On May 5, 9:22 am, [EMAIL PROTECTED] wrote: I'm looking at rewriting some legacy VB applications and am pondering which of the following techniques to use: 1. Browser based GUI with local web server (Browser + wsgiref.simple_server) (I'm assuming that simple_server is cl

Re: __getattr__ and recursion ?

2008-05-01 Thread Stef Mientki
thanks Peter, for your perfect explanation, and By the way, looping over a dictionary destroys its key advantage, O(1) lookup. Use # untested if attr in self.extra_setters: self.extra_setters[attr](value) else: self.__dict__[attr] = value and something similar in __getattr__(). ye

__getattr__ and recursion ?

2008-04-29 Thread Stef Mientki
cated with "<<== 1" I'm not allowed to use for item in self.extra_getters : because it will result in an infinite recursion. But in the line indicated with "<<== 2" , I am allowed ... ... wh

Re: class or class-instance ?

2008-04-28 Thread Stef Mientki
There is a isclass in the module inspect. Diez thanks Diez, that's exactly what I was looking for. cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

class or class-instance ?

2008-04-28 Thread Stef Mientki
te an instance of that class else do nothing now I should be able to call the above procedure in either of the following ways: somefunction ( someclass ) or somefunction ( someclass () ) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script to automate use of Google Translate? (or other translator)

2008-04-23 Thread Stef Mientki
Trent Nelson wrote: I have the need to occasionally translate a single word programatically. Would anyone have a Python script that would let me do this using Google (or another) translation service? As a matter of fact, yes, I do! This happens to be my most favourite piece of Python c

Re: Frame work for simple physics web applications

2008-04-19 Thread Stef Mientki
Rick Muller wrote: > On Apr 19, 2:44 pm, globalrev <[EMAIL PROTECTED]> wrote: > > >> www.vpython.orgmight be what you are looking for. >> > > Except, if I'm not mistaken, vpython isn't a web framework. It would > work if I wanted to write some python scripts and have other people > run them

Re: win-shortcuts, file associates and command-line parameters ?

2008-04-11 Thread Stef Mientki
Gabriel Genellina wrote: > En Thu, 10 Apr 2008 16:03:28 -0300, Stef Mientki <[EMAIL PROTECTED]> > escribió: > > >> under windows I tried to make a shortcut to a py -file, to run a program. >> So making a shortcut like this works perfect: >> D:\PyLab_Work

Re: How is GUI programming in Python?

2008-04-11 Thread Stef Mientki
Rune Strand wrote: > On Apr 10, 3:54 am, Chris Stewart <[EMAIL PROTECTED]> wrote: > ... > >> Next, what would you say is the best framework I should look into? >> I'm curious to hear opinions on that. >> > > GUI-programming in Python is a neanderthal experience. What one may > love with con

win-shortcuts, file associates and command-line parameters ?

2008-04-10 Thread Stef Mientki
pass the commandline parameters correctly, without explicitly specifying the python interpreter ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: displaying execution of Python code

2008-04-03 Thread Stef Mientki
noahwatkins wrote: > I'll start my question by describing my desired result. I will > construct a GUI which will be used to open a Python script. I would > then like to be able to display the Python script, execute it, and > highlight the lines of the Python as they are executing. > > More technica

Re: Python in High School

2008-04-03 Thread Stef Mientki
~mientki/data_www/pylab_works/pw_animations_sc... >> >> >> cheers, >> Stef Mientki >> >> >>> And you are going to teach them Java? Oh, please don't. Let the >>> colleges torture them. :=) >>> > > What do

Re: Python in High School

2008-04-02 Thread Stef Mientki
al environment that makes it more easy, color, shape and position can give some extra information though. I think apriori domain knowledge and flattness of information are of far more importance. The first issue is covered quit well by Robolab / Labview, but the second issue certainly is n

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

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

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

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

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

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

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

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 ?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

Re: Is it possible to use a instance property as a default value ?

2007-11-01 Thread stef mientki
Chris Mellon wrote: > On Nov 1, 2007 3:18 PM, stef mientki <[EMAIL PROTECTED]> wrote: > >> hello, >> >> I would like to use instance parameters as a default value, like this: >> >> class PlotCanvas(wx.Window): >> def __init__(self) >&

Is it possible to use a instance property as a default value ?

2007-11-01 Thread stef mientki
hello, I would like to use instance parameters as a default value, like this: class PlotCanvas(wx.Window): def __init__(self) self.Buf_rp = 0 self.Buf_wp = 0 def Draw ( self, x1 = self.Buf_rp, x2 = self.Buf_wp ) : is something like this possible ? thanks, Stef Mientki

Re: how to convert tuple to a "list of single values" ?

2007-10-28 Thread stef mientki
thanks Duncan, Matthieu and Ed (offlist), this is exactly what I was looking for. cheers, Stef Duncan Booth wrote: > stef mientki <[EMAIL PROTECTED]> wrote: > > >> hello, >> >> The next piece of code bothers me: >> >> ptx, pty, rectWidth,

how to convert tuple to a "list of single values" ?

2007-10-28 Thread stef mientki
names ;-) like this: dc.SetClippingRegion ( self._point2ClientCoord (p1, p2 ) ) Now that doesn't work, because - dc.SetClippingRegion() requires 4 integer parameters - _point2ClientCoord() returns a tupple of 4 integers I can't think of a solution, is there any ? thanks, St

Re: how to iterate over sequence and non-sequence ?

2007-10-20 Thread stef mientki
Steven D'Aprano wrote: > On Fri, 19 Oct 2007 18:38:06 +0200, stef mientki wrote: > > >> I don't have pointers, I've just names (at least I think). Let me >> explain a little bit more, >> I want to simulate / debug a user program, the user progr

Re: how to iterate over sequence and non-sequence ?

2007-10-20 Thread stef mientki
7;t going a bus to B. So in this case I take a car, ask someone how to start it, and drive to B. But anyway thanks very much for this and other answers. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to iterate over sequence and non-sequence ?

2007-10-20 Thread stef mientki
Paul Hankin wrote: > On Oct 19, 5:38 pm, stef mientki <[EMAIL PROTECTED]> wrote: > >> ... snip hand-coded debugger >> I couldn't come up with a better solution ;-) >> > > Does pdb not suffice? > thanks very much Paul, Never heard of that befor

Re: how to iterate over sequence and non-sequence ?

2007-10-19 Thread stef mientki
Steven D'Aprano wrote: > On Fri, 19 Oct 2007 16:19:32 +0200, stef wrote: > > >> Well I'm not collecting data, I'm collecting pointers to data. >> > > I beg to differ, you're collecting data. How that data is to be > interpreted (a string, a number, a pointer...) is a separate issue. > > >

how to iterate over sequence and non-sequence ?

2007-10-19 Thread stef mientki
perfect if there are 2 or more signals, but it fails when I have none or just 1 signal. for value in signals : do something As this meant for real-time signals, I want it fast, so (I think) I can't afford extensive testing. Any smart solution there ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

if instance exists problem ..

2007-10-17 Thread stef mientki
(filename) if ini: print 'ok',type(ini) else: print 'wrong',type(ini) Why is that ? What should I do to the same simple test for existance ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

why doesn't have this list a "reply-to" ?

2007-10-16 Thread stef mientki
ts to list and not to the individual. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get my own namespace ?

2007-10-16 Thread stef mientki
Robert Kern wrote: > stef mientki wrote: > >> I want to view my own namespace, >> i.e. to see the modules namespace in the module itself, >> is that possible ? >> >> I can use >>dir() >> but I read dir is just a convenience function, >>

how to get my own namespace ?

2007-10-16 Thread stef mientki
I want to view my own namespace, i.e. to see the modules namespace in the module itself, is that possible ? I can use dir() but I read dir is just a convenience function, and besides I want key/value pairs. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to create a pointer, or is there a better solution ?

2007-10-13 Thread stef mientki
f these globals are complex items, no problem, I get pointers and can access them. But if these variables are simple, like integers, I get the value only once ;-) How can I create of dynamic pointers, even to simple variables ? Or is there a better way ? thanks, Stef Mientki -- http://mail.pyt

Re: howto add a sub-directory to the searchpath / namespace ?

2007-10-10 Thread stef mientki
Larry Bates wrote: > stef mientki wrote: > >> hello, >> >> my program has become a bit large, >> and now I want to split the files over several subdirectories. >> So in the example shown below, I just moved the files f1.py and f2.py to >>

howto add a sub-directory to the searchpath / namespace ?

2007-10-10 Thread stef mientki
al all py-files in the subdir1) ?? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Howto Launch a windows application ?

2007-10-06 Thread stef mientki
I finally found out what was wrong: stef mientki wrote: > hello, > > I'm trying to launch a windows application, > but as many others on this list, I've some trouble. > I read some other threads about this topic, > but sorry, I still don't understand all this (

Re: howto kill a windows process by name ?

2007-10-05 Thread stef mientki
Adam Pletcher wrote: > Take a look at "killProcName.py", in the win32 extension package. > > - Adam > > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> > Behalf > >> Of stef mientki

howto kill a windows process by name ?

2007-10-05 Thread stef mientki
hello, is there a library to kill a windows process by name ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Howto Launch a windows application ?

2007-10-05 Thread stef mientki
Nicholas Bastin wrote: > On 10/3/07, stef mientki <[EMAIL PROTECTED]> wrote: > >> hello, >> >> I'm trying to launch a windows application, >> but as many others on this list, I've some trouble. >> I read some other threads about this topic, &g

Re: Howto Launch a windows application ?

2007-10-04 Thread stef mientki
Matimus wrote: > stef mientki wrote: > >> hello, >> >> I'm trying to launch a windows application, >> but as many others on this list, I've some trouble. >> I read some other threads about this topic, >> but sorry, I still don't under

Re: Howto Launch a windows application ?

2007-10-04 Thread stef mientki
Yu-Xi Lim wrote: > stef mientki wrote: > >> cmd =[] >> cmd.append ( 'D:\\PIC-tools\\JALxxx\\jalv2_3.exe' ) >> cmd.append ( '-long-start' ) >> cmd.append ( '-d') >> cmd.append ( '-clear' ) >> cmd.append (

Howto Launch a windows application ?

2007-10-03 Thread stef mientki
and the windows application launched from the batchfile is run perfectly. Now when I try to run the same windows application from Popen or call, nothing happens (or at least it's very fast and produces not the expected output). Please enlighten me, preferable in "windows-terminology&qu

Re: building a GUI

2007-09-23 Thread stef mientki
Phil Thompson wrote: > On Sunday 23 September 2007, stef mientki wrote: > >> Diez B. Roggisch wrote: >> >>> stef mientki schrieb: >>> >>>> Thomas Dybdahl Ahle wrote: >>>> >>>>> Den Sun, 23 Sep

Re: building a GUI

2007-09-23 Thread stef mientki
Diez B. Roggisch wrote: > stef mientki schrieb: > >> Thomas Dybdahl Ahle wrote: >> >>> Den Sun, 23 Sep 2007 17:28:38 +0200 skrev stef mientki: >>> >>> >>>> yadin wrote: >>>> >>>> >>&

Re: building a GUI

2007-09-23 Thread stef mientki
Thomas Dybdahl Ahle wrote: > Den Sun, 23 Sep 2007 17:28:38 +0200 skrev stef mientki: > >> yadin wrote: >> >> >>> if i were up to make a GUI chich are the advantages of choosing python >>> over matlab or java? >>> >>> >

Re: building a GUI

2007-09-23 Thread stef mientki
yadin wrote: > if i were up to make a GUI chich are the advantages of choosing python > over matlab or java? > > As MatLab has a very lousy GUI, any other language would be an advantage ;-) The best is Delphi, second is VB, then comes SciLab, Python, etc I don't know where Java fits in. But as

why does Configparser change names to lowercase ?

2007-09-14 Thread stef mientki
hello, Why does Configparser change names to lowercase ? As Python is case sensitive (which btw I don't like at all ;-) but now when really need the casesensitivity, because it handles about names which should be recognized by human, it changes everything to lowercase thanks, Stef Mi

Re: newbie: self.member syntax seems /really/ annoying

2007-09-13 Thread stef mientki
>>> Certainly, but again: Such main people are not the intended audience. >>> The code is for people that know how to read these equations. I think >>> a general rule of (any form of) writing is to write with your audience >>> in mind. I always do that and happily, that audience is usually nake

Re: newbie: self.member syntax seems /really/ annoying

2007-09-13 Thread stef mientki
le that know how to read these equations. I think a > general rule of (any form of) writing is to write with your audience in > mind. I always do that and happily, that audience is usually naked. > > > Wouldn't Mathematica, Maple or MathCad be a far better choice ? cheers

Re: Modul (%) in python not like in C?

2007-09-09 Thread stef mientki
J. Cliff Dyer wrote: > Dotan Cohen wrote: > >> FIrst of all, how is the % symbol (as in 70%6=4) called in English? >> >> Second, in Turbo C -111%10=-1 however in python -111%10=9. Is one or >> the other in error? Is this a known gotcha? I tried to google the >> subject however one cannot google

Re: Python syntax wart

2007-09-09 Thread stef mientki
gt; I usually write my code in a way that can be understood by looking at > it, with self-documenting names, clear organization, and lines that fit > under 72 characters (if I can help it). But if you insist on making perl > noise, go 'head. > > Interesting thread, in automatically converting another language to Python, the brackets idea might come in very handy. "Self-documenting names", yes I'm used to that too, but Python itself doesn't promote that ... ... as "case-sensitive" seems to me a contradiction with "self-documenting-names" ;-) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   >