Re: What do you use with Python for GUI programming and why?

2011-03-12 Thread Stef Mientki
On 11-03-2011 22:45, Dan Stromberg wrote: > > On Fri, Mar 11, 2011 at 12:54 PM, Fred Pacquier > wrote: > > Robert mailto:sigz...@gmail.com>> said : > > > Is there a push to one toolkit or the other? > > If you are just now getting started, I would honest

is there an autocompletion like Dasher ?

2011-05-07 Thread Stef Mientki
hello, I would like to have a autocompletion / help /snippet system like Dasher : http://www.inference.phy.cam.ac.uk/dasher/ anyone seen such a component ? thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: is there an autocompletion like Dasher ?

2011-05-07 Thread Stef Mientki
On 08-05-2011 01:28, Dan Stromberg wrote: > > On Sat, May 7, 2011 at 3:40 PM, Stef Mientki <mailto:stef.mien...@gmail.com>> wrote: > > hello, > > I would like to have a autocompletion / help /snippet system like Dasher : > > http://www.inference.phy

maybe useful : datetime conversion

2011-05-20 Thread Stef Mientki
hello, using datetimes from a lot of different sources, in many languages, I had about 30 python helper routines, which I now packed in one class, much simpler. Although I used the Delphi date-format as the base, it shouldn't be difficult to rewrite the class for another type. The input can be on

and becomes or and or becomes and

2011-05-22 Thread Stef Mientki
hello, must of us will not use single bits these days, but at first sight, this looks funny : >>> a=2 >>> b=6 >>> a and b 6 >>> a & b 2 >>> a or b 2 >>> a | b 6 cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

how to make a nested list

2011-09-15 Thread Stef Mientki
hello, I need a nested list, like this >>> A= [ [None,None], [None,None], [None, None] ] >>> A[2][0] =77 >>> A [[None, None], [None, None], [77, None]] Because the list is much larger, I need a shortcut (ok I can use a for loop) So I tried >>> B = 3 * [ [ None, None ]] >>> B[2][0] = 77 >>> B [

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Stef Mientki
On 15-11-2011 21:37, Passiday wrote: Hello, I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing and debugging the python code, but the interpretation, of

[ANN] Android Debug Bridge (ADB) Scripting Language For Android (SL4A) convenience library

2011-11-27 Thread Stef Mientki
hello, The information on ADB / SL4A is quiet overwhelming. Despite that, especially for people, not familiar with Linux, it's not an easy task to get their first program running. This library allows you to easy upload and run Python files on a Android device, without pressing any button on the

Re: regular expression

2006-12-24 Thread Stef Mientki
rate and evaluate regular expressions, but can't find it anymore :-( If someone has links to regex generators/evaluators, I'ld be much obliged. cheers. Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: file/directory format/size help

2006-12-24 Thread Stef Mientki
>> #1 What type of file is the file? Is it a movie, image, or text >> document? > > In the Windows world, one simply looks at the file extension (e.g. .gif, > .avi, .txt, etc.) and hopes that it is correct. or simply use TRID: http://mark0.net/soft-trid-e.html

persistant gloabl vars (very newbie) ?

2006-12-27 Thread Stef Mientki
larger and therefor very clumsy to run line by line in the command line interpreter. Is there a way to run the initialization code from a script(file) once, to achieve the same effect ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: persistant gloabl vars (very newbie) ?

2006-12-27 Thread Stef Mientki
es. thank you guys, but it's still not quit handy # initialization file (init1.py) import time; xx = 44 # main file was print xx x=time.time() # main file should become print init1.xx x=init1.time.time() so even for the "standard" functions like "time" I'

Re: persistant gloabl vars (very newbie) ?

2006-12-28 Thread Stef Mientki
Erik Johnson wrote: >> but it's still not quit handy >> >> # initialization file (init1.py) >> import time; >> xx = 44 >> >> # main file was >> print xx >> x=time.time() >> >> # main file should become >> print init1.xx >> x=init1.time.time() >> >> so even for the "standard" functions like "time" I

How to return a simple variable from a function (still newbie) ?

2006-12-28 Thread Stef Mientki
I want to return a "simple" variable from a function, not using the function result. Is that in any way possible ?? The code below is from O'Reilly, "Learning Python", and there seems no way to return a simple var like "z" in the example below. Is that

Re: How to return a simple variable from a function (still newbie) ?

2006-12-28 Thread Stef Mientki
Carsten Haese wrote: > On Thu, 2006-12-28 at 15:28 +, Paul Hummer wrote: >> You'd have to either pass the variables by reference into the function, [...] > > In Python, all function calls are call by reference. Period. The key > difference between Python and other programming languages is in t

Re: How to return a simple variable from a function (still newbie) ?

2006-12-28 Thread Stef Mientki
I'll hope to understand that later on ! You can achieve the > same result without side-effects by returning more than one return value > from your function. > > Hope this helps, Wow this certainly helps, thanks very much Carsten! Why is the obvious sometimes so far away

probably a stupid question: MatLab equivalent of "diff" ?

2006-12-29 Thread Stef Mientki
use an binary (true/false) input, it also detects rising edges. Probably a stupid question, but I still have troubles, digging to huge amount of information about Python. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Wow, Python much faster than MatLab

2006-12-29 Thread Stef Mientki
functions available, like a simple "mean" - reducing datatype if it's allowed (booleans of 1 byte) thanks for all your help, probably need some more in the future, cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
ould replace that by some other great things: - the very efficient way, comment is turned into help information - the (at first sight) very easy, but yet quit powerfull OOPs implemetation. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
> > I'm not sure about SciPy, Yes SciPy allows it too ! but lists in standard Python allow this: > >>>> array = [1, 2, 3, 4] >>>> array[2:5] > [3, 4] > > That's generally a good thing. > You're not perhaps by

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
Mathias Panzenboeck wrote: > A other great thing: With rpy you have R bindings for python. forgive my ignorance, what's R, rpy ? Or is only relevant for Linux users ? cheers Stef > So you have the power of R and the easy syntax and big standard lib of > python! :) -- http://mail.python.org/mai

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
Doran, Harold wrote: > R is the open-source implementation of the S language developed at Bell > laboratories. It is a statistical programming language that is becoming > the de facto standard among statisticians. Thanks for the information I always thought that SPSS or SAS where thé standards. Ste

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
> I think of SAS and R as being like airliners and helicopters -- I like that comparison,... .. Airplanes are inherent stable, .. Helicopters are inherent not-stable ;-) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Difference between __init__ (again) and nothing ...

2007-01-02 Thread Stef Mientki
What's the difference between using __init__ and using nothing, as the examples below. class cpu: PC = 4 class cpu: def __init__: self.PC = 4 thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference between __init__ (again) and nothing ...

2007-01-02 Thread Stef Mientki
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Stef Mientki wrote: > >> What's the difference between using __init__ and using nothing, >> as the examples below. >> >> class cpu: >>PC = 4 > > This is a *class attribu

list/dictionary as case statement ?

2007-01-02 Thread Stef Mientki
es ={ 1: ('MOV', function1, ...), 2: ('ADD', function2, ), 3: ('MUL', class3.function3, ) } def function1 # do something complex Is this possible ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: list/dictionary as case statement ?

2007-01-02 Thread Stef Mientki
efer to it. > Yes, I just found that out. Thanks Gary and Grant, this principle really works like a charm. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

function without brackets ?

2007-01-03 Thread Stef Mientki
If I call a parameterless function without brackets at the end, the function is not performed, but ... I don't get an error message ??? Is this normal behavior ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: function without brackets ?

2007-01-03 Thread Stef Mientki
> Hope this helps, > thanks You all guys, It's perfectly clear to me now ! cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: list/dictionary as case statement ?

2007-01-03 Thread Stef Mientki
an be seen here http://oase.uci.kun.nl/~mientki/data_www/pic/jalss/jalss.html thanks again, for all your fast and very adequate responses !! cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

(newbie) Is there a way to prevent "name redundancy" in OOP ?

2007-01-05 Thread Stef Mientki
__ (self, naam): self.Name = naam aap2 = pin2('aap2') # seems completely redundant to me. print aap2.Name print 'aap2' Can this be achieved without redundancy ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: (newbie) Is there a way to prevent "name redundancy" in OOP ?

2007-01-06 Thread Stef Mientki
Steven Bethard wrote: > Stef Mientki wrote: >> Not sure I wrote the subject line correct, >> but the examples might explain if not clear > [snip] >> class pin2: >> def __init__ (self, naam): >> self.Name = naam >> >> aap2 = pin2('aap2&#x

howto overload with a NOP (empty statement)

2007-01-06 Thread Stef Mientki
;s not allowed to overload a method with an empty statement. I could write a nonsense dummy statement, like "A= 3", but isn't there another way ? thanks, Stef Mientki class device: def execute (self): print 'execute not yet implemented for', self.Name cl

still struggling, howto use a list-element as a name ?

2007-01-06 Thread Stef Mientki
In the example below, "pin" is an object with a number of properties. Now I want 1- an easy way to create objects that contains a number of these "pin" 2- an multiple way to access these "pin", i.e. device.pin[some_index] device.some_logical_name ad 1: a dictionary (as "pinlist" in

Re: still struggling, howto use a list-element as a name ?

2007-01-06 Thread Stef Mientki
>> class Power_Supply(device): >> pinlist = { >> 0: ('GND', _DIG_OUT, _par2), >> 1: ('VCC', _DIG_OUT, _par33) >> } > > I may be confused about what you're after, but wouldn't something > like this work? (I don't know what a _par2 object is; I've named > it somethi

Re: still struggling, howto use a list-element as a name ?

2007-01-06 Thread Stef Mientki
Jussi Salmela wrote: > Bruno Desthuilliers kirjoitti: >> Stef Mientki a écrit : >>> In the example below, "pin" is an object with a number of properties. >>> Now I want >>> 1- an easy way to create objects that contains a number of these "pin

Re: still struggling, howto use a list-element as a name ? Sory, hit send button to early

2007-01-06 Thread Stef Mientki
Stef Mientki wrote: > Jussi Salmela wrote: >> Bruno Desthuilliers kirjoitti: >>> Stef Mientki a écrit : >>>> In the example below, "pin" is an object with a number of properties. >>>> Now I want >>>> 1- an easy way to create objects

Re: subexpressions

2007-06-02 Thread Stef Mientki
) + cos(y))(x*x) > > 42 key presses. > > Apart from the extremely minor issue of "namespace pollution", I think > that speaks for itself. and now I've only 60 lines on my screen, so what about def f(x): y = x*x; return sin(y)+cos(y); cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: subexpressions

2007-06-02 Thread Stef Mientki
Steve Howell wrote: >>def f(x): y = x*x; return sin(y)+cos(y); >> > > Although I know valid trigonometry is not the point of > this exercise, I'm still trying to figure out why > anybody would ever take the square of an angle. > What's the square root of pi/4 radians? Maybe he meant sin(x)

Re: Who uses Python?

2007-06-05 Thread Stef Mientki
walterbyrd wrote: > On Jun 5, 3:01 am, Maria R <[EMAIL PROTECTED]> wrote: >> I tend to agree with some earlier poster that if you use Python you >> are, in a sense, a programmer :o) >> > > Yes, in a sense. But, in another sense, that is sort of like saying > that people who post on message boards

PATH or PYTHONPATH under Windows ???

2007-06-05 Thread Stef Mientki
orks ok, there is the standard "PATH" environment variable, and indeed there are all the Python Library references. Please enlighten me. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Who uses Python?

2007-06-07 Thread Stef Mientki
Hendrik van Rooyen wrote: > "Stef Mientki" <[EMAIL PROTECTED]> wrote: > >> I use Python as a replacement for MatLab, >> and intend to use it as replacement for Delphi, AutoIt, PHP, VB. >> And I'ld love to use it as a replacement for micro controll

Re: howto obtain directory where current (running) py-file is placed?

2007-06-07 Thread Stef Mientki
> d1 = os.path.dirname(__file__) here I get an error "__file__" is not defined ?? > d2 = os.path.dirname(os.__file__) here I get a completely different path ?? > > print d1 > print d2 This seems to work (but I doubt it's always working !! ) print os.getcwd() so what

Re: wxPython / Dabo demo shell ?

2007-06-08 Thread Stef Mientki
Ed Leafe wrote: > On Jun 8, 2007, at 10:01 AM, stef wrote: > >> I'm interested in the overall demo setup, >> really beautiful and powerful, just one thing missing (user configurable >> tree). >> >> And if you can copy it, >> I'm allowed to do so also ;-) > > You can certainly copy and customi

Select one of 2 functions with the same name ?

2007-06-10 Thread Stef Mientki
elif simulation_level == 2: ... do things in another way elif simulation_level == 3: ... do things in yet another way thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Select one of 2 functions with the same name ?

2007-06-10 Thread Stef Mientki
uit simple: simulation_level = 0 def f1(): print 'f1' if simulation_level == 2: def f1(): print 'f2' f1() cheers, Stef Mientki Francesco Guerrieri wrote: > If the functions are > f1, f2, f3 you could go this way: > > def Sim

Re: Select one of 2 functions with the same name ?

2007-06-10 Thread Stef Mientki
7stud wrote: > On Jun 10, 2:03 pm, Stef Mientki <[EMAIL PROTECTED]> > wrote: >> thanks Francesco and "7stud", >> >> The solution with objects is too difficult, >> because I want to stay very close to the orginal language, >> > > Why wo

Inserting breakpoints ...

2007-06-16 Thread Stef Mientki
hardware_column ): JSM(78) Write_LCD_2Bytes ( write_text , 0 ) ;JSM(79) any other ideas ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Inserting breakpoints ...

2007-06-17 Thread Stef Mientki
Gabriel Genellina wrote: > En Sat, 16 Jun 2007 10:22:34 -0300, Stef Mientki > <[EMAIL PROTECTED]> escribió: > >> for the simulation of some micro language (JAL), >> the original language is (with a minimal effort) translated into Python, >> after which the code

caseless dictionary howto ?

2007-06-19 Thread Stef Mientki
rcase), My dictionairy looks like this: self.procs [ "serial_hw_read" ] = ( "Serial_HW_Read", "F", "++", T) Is this really a good solution, or are there better ways ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: caseless dictionary howto ?

2007-06-19 Thread Stef Mientki
Evan Klitzke wrote: > On 6/19/07, Stef Mientki <[EMAIL PROTECTED]> wrote: >> hello, >> >> I need to search a piece of text and make all words that are equal >> (except their case) also equal in their case, based on the first >> occurrence. >>

Re: Globals in nested functions

2007-06-21 Thread Stef Mientki
(). > > I could find few past discussions on this subject, I could not find > the simple answer whether it is possible to do this reference. > > - > Suresh > As I'm struggling with this myself at the moment, this will do the job: def f(): global a a = 12 che

Re: configparser shuffles all sections ?

2007-06-22 Thread Stef Mientki
s MyConfigParser(SafeConfigParser): > def __init__(self, defaults=None): > SafeConfigParser.__init__(defaults) > self._sections = odict() > self._defaults = odict() > This might be good alternative, I'll check that. thank you all for the answers, it

is this a valid import sequence ?

2007-06-22 Thread Stef Mientki
a ) In another module a create one and only one instance of the class, in the normal way: Graphical_LCD = T6963_device('', Pos=[196,240], Color=wx.CYAN, Timer_On=True) thanks Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: is this a valid import sequence ?

2007-06-23 Thread Stef Mientki
thanks Steven, Steven D'Aprano wrote: > On Fri, 22 Jun 2007 21:43:40 +0200, Stef Mientki wrote: > >> This might be a very weird construction, >> but it's the most easy way in translating another language into Python (for >> simulation). >> >> Alt

Re: is this a valid import sequence ?

2007-06-23 Thread Stef Mientki
mpiler. > > Although I'm not an expert, I guess you're both right. thanks and cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

listing the type of an object

2007-06-27 Thread Stef Mientki
roc: print 'type(self)', type(self) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: The best platform and editor for Python

2007-07-01 Thread Stef Mientki
> Thank you for the suggestions. I'd prefer a GUI-based, helpful and > easy-implemention skilled enviroment. Tesekkurler Sayin Kartal :-) > then first decide which graphical package you want to use, because that limits your choice. cheers, Stef Mientki -- http://mail.pyth

Re: interactive graphical script builder

2007-07-14 Thread Stef Mientki
t;free python labview", it's called Pyxel form Erik Lechak, an ogl-like interface. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

running a Delphi part from Python ?

2007-07-16 Thread Stef Mientki
d somewhere that MDI is implemented in it's own manner, not equal to the standard Windows MDI interface) thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: running a Delphi part from Python ?

2007-07-16 Thread Stef Mientki
Bruno Desthuilliers wrote: > Stef Mientki a écrit : >> >> I'm starting to get used to wxPython (coming from Delphi), >> and it seems it can do almost everything I need. >> >> Now one thing I'm missing is a good RichEditor. > > Scintilla is for you

Re: running a Delphi part from Python ?

2007-07-16 Thread Stef Mientki
tool69 wrote: > Stef Mientki a écrit : > >> AFAIK, Scintilla is a code editor. >> What I need looks more like ms-word, >> handling lists, tables, images, formulas. >> >> thanks, >> Stef Mientki > > > So you'll need the RichTextCtrl >

Re: running a Delphi part from Python ?

2007-07-16 Thread Stef Mientki
Chris Mellon wrote: > On 7/16/07, Stef Mientki <[EMAIL PROTECTED]> wrote: >> tool69 wrote: >> > Stef Mientki a écrit : >> > >> >> AFAIK, Scintilla is a code editor. >> >> What I need looks more like ms-word, >> >> handling li

Re: running a Delphi part from Python ?

2007-07-16 Thread Stef Mientki
> > Of course You can always write one, that's succicient for Your needs, > and make it available under GPL. ;-) Why not BSD ? But I've to read all the licenses of the used components first ;-) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

how to find available classes in a file ?

2007-07-16 Thread Stef Mientki
I want to have a (dynamically) list of all classes defined in a py-file. Is there a way of getting this list, without manually parsing the file ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: how to find available classes in a file ?

2007-07-17 Thread Stef Mientki
Gabriel Genellina wrote: > En Mon, 16 Jul 2007 20:13:19 -0300, Alex Popescu > <[EMAIL PROTECTED]> escribió: > >> On Jul 17, 1:44 am, Stef Mientki <[EMAIL PROTECTED]> >> wrote: >>> I want to have a (dynamically) list of all classes defined in a py-fil

Re: wxPython and threads

2007-07-17 Thread Stef Mientki
Benjamin wrote: > I'm writing a search engine in Python with wxPython as the GUI. I have > the actual searching preformed on a different thread from Gui thread. > It sends it's results through a Queue to the results ListCtrl which > adds a new item. This works fine or small searches, but when the >

Re: help with create menu in wxpython

2007-07-18 Thread Stef Mientki
better ask in the wx discussion group: [EMAIL PROTECTED] cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Future Python Gui?

2007-04-18 Thread Stef Mientki
ions, I think software developers call them "new features" ;-) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

conditional print statement ?

2007-04-25 Thread Stef Mientki
hello, As part of a procedure I've a number sequences like this: if Print_Info: print Datafile.readline() else:Datafile.readline() Is there a more compressed way to write such a statement, especially I dislike the redundancy "Datafile.readline()"

[ANN] Portable SciPy v0.1 released

2007-04-27 Thread Stef Mientki
http://pic.flappie.nl/ The simple method described here, can be used to create any set of Python packages + other programs, with just a few lines of code (example available). have fun, and let me hear what you think of it. Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Portable SciPy v0.1 released

2007-04-28 Thread Stef Mientki
Beliavsky wrote: > On Apr 27, 6:17 pm, Stef Mientki <[EMAIL PROTECTED]> > wrote: >> Portable SciPy, is an easy installer of SciPy for M$ windows users. > > If you have an announcement for Windows users, I suggest that you not > needlessly turn them off by abbreviating

Re: getting rid of EOL character ?

2007-04-28 Thread Stef Mientki
gt; >>> >>> while this gives what I need ??? >>>print line[,-1] >>> >>> Is it correct that the 2 characters CR+LF are converted to 1 character ? > > In text mode (the default), whatever is the line ending on your platform > is converted to a

Re: My Python annoyances

2007-04-28 Thread Stef Mientki
> Programming should be more difficult than this - otherwise, how can > programmers be respected by the common folks? the answer is very simple (even more simple than Python ;-) ... ... create what common folks ask for !! cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/

Re: [ANN] Update to Python Quick Reference Card (for Python 2.4) (v0.67)

2007-04-30 Thread Stef Mientki
hi Laurent, this is really a work of Art, thank you very much !! Oh, wouldn't it be nice to have reference cards of all library packages ;-) cheers Stef Mientki Laurent Pointal wrote: > PQRC (Python Quick Reference Card) is a condensed documentation for > Python and its mai

Re: Python for Windows other way to getting it?

2007-05-01 Thread Stef Mientki
Portable SciPy, is an easy installer of SciPy for M$ windows users. http://oase.uci.kun.nl/~mientki/data_www/pic/jalcc/python/portable_scipy.html cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Simulating simple electric circuits

2007-05-07 Thread Stef Mientki
ly core) in Python, it's very rough code (generated in a few evenings), if you're interested I could look it up. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

view workspace, like in MatLab ?

2007-05-09 Thread Stef Mientki
hello, is there a function / library / IDE that displays all the user defined variables, like the workspace in MatLab ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: preferred windows text editor?

2007-05-09 Thread Stef Mientki
PyScripter or JALcc Stef T. Crane wrote: > Right now I'm using Notepad++. What are other people using? > > trevis > > -- http://mail.python.org/mailman/listinfo/python-list

os.listdir() doesn't work ??

2007-05-14 Thread Stef Mientki
\\*.txt') I get an error message WindowsError: [Errno 123] The filename, directory name, or volume label syntax is incorrect: 'D:\\akto_yk\\yk_controle\\*.txt/*.*' What am I doing wrong ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: os.listdir() doesn't work ??

2007-05-14 Thread Stef Mientki
timw.google wrote: > On May 14, 4:09 pm, Stef Mientki <[EMAIL PROTECTED]> > wrote: >> hello, >> >> I want to find all files with the extension "*.txt". >> From the examples in "Learning Python, Lutz and Asher" and >> from th

Re: os.listdir() doesn't work ??

2007-05-14 Thread Stef Mientki
nd glob.glob doesn't seem to be, at least not on windows systems ;-) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: (Modular-)Application Framework / Rich-Client-Platform in Python

2007-05-18 Thread Stef Mientki
ill be, it's not well possible to create one. Do you want just launching of applications, or do they have to communicate, exchange data, launch each other, create together one document or more general control one process, and lots of more questions ;-) cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compared to other language

2007-05-18 Thread Stef Mientki
at, number of sourcecode lines decreased to about 30% !! But as others said, try it yourself. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: (Modular-)Application Framework / Rich-Client-Platform in Python

2007-05-18 Thread Stef Mientki
Wildemar Wildenburger wrote: > Stef Mientki wrote: >> I took a look at Eclipse page you mentioned but after reading the >> first page I still don't understand what you mean (and I never read >> beyond the first page ;-). >> > Well, what can I say ... > ;

Re: (Modular-)Application Framework / Rich-Client-Platform in Python

2007-05-19 Thread Stef Mientki
Jarek Zgoda wrote: > Stef Mientki napisał(a): > >> I took a look at some of the examples build with eclipse, >> and I might be wrong, but it's just another IDE, >> (like Delphi, Lazarus, Visual Basic, Kylix, Pida, Envisage, VisualWX, >> wxGlade, ...) >>

Can I reference 1 instance of an object by more names ?

2007-05-22 Thread Stef Mientki
name at all." So am I wrong ? Sorry this has been discussed before, but I'm totally confused. thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I reference 1 instance of an object by more names ? rephrase

2007-05-23 Thread Stef Mientki
index= 5 return ( self._d >> index ) & 1 return property(**locals()) I can optimize the above code a little bit, but I've the feeling that I don't need to repeat this code 8 times. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I reference 1 instance of an object by more names ? rephrase

2007-05-24 Thread Stef Mientki
ys instead : > > In [6]:import array > > In [7]:help(array) > I don't think arrays will help, because most operations will be done on a complete byte. btw, the first notes about what I'm planning to do, can be seen here: http://oase.uci.ru.nl/~mientki/data_www/pic/jalcc/python/jal_simulation.html thanks, Stef Mientki > > > -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and GUI

2007-05-24 Thread Stef Mientki
> > Finally, consider wax (http://zephyrfalcon.org/labs/wax.html). In my > view, this is *exactly* what python needs, and its not being maintained > anymore as far as I can tell. What I like about it is: > > 1) it is small...I can include the entire wax distribution in my app > with only a 7

Re: Python and GUI

2007-05-24 Thread Stef Mientki
Grant Edwards wrote: > On 2007-05-24, Stef Mientki <[EMAIL PROTECTED]> wrote: > >>> Finally, consider wax (http://zephyrfalcon.org/labs/wax.html). In my >>> view, this is *exactly* what python needs, and its not being maintained >>> anymore as far

Re: Python and GUI

2007-05-24 Thread Stef Mientki
s apps look like, >there are lots of them at wxWidgets.org. But, since >wxWidgets generally uses "native" widgets, wxWidget apps >look pretty much like any other app on the given platform. > Thanks for the information, didn't know that. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I reference 1 instance of an object by more names ? rephrase

2007-05-24 Thread Stef Mientki
Peter Otten wrote: > Stef Mientki wrote: > >> Maric Michaud wrote: > >def bit(index): >>> def fset(self, value): > >>> value= ( value & 1L ) << index >>> mask = ( 1L ) << index >>

Re: Can I reference 1 instance of an object by more names ? rephrase

2007-05-25 Thread Stef Mientki
uot;. Anyway, thank you all for your assistance. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I reference 1 instance of an object by more names ? rephrase

2007-05-25 Thread Stef Mientki
Peter Otten wrote: > Stef Mientki wrote: > >>> Again, I'm confident, again I didn't test. >> I did, ... >> ... and unfortunately it still gave errors. > > Strange. indeed .. > >> So for the moment I'll just stick to my "lots

Re: drag and drop with wxPython ?

2007-05-25 Thread Stef Mientki
ag and drop some dynamically created objects. >> Just like a CAD program, but far more simpler. >> >> Does anyone has an example how to drag & drop components with wxPython ? >> >> thanks, >> Stef Mientki > > Stef, > > wxPython's wiki has

Re: ten small Python programs

2007-05-28 Thread Stef Mientki
be nicer, if everybody could drop her/his examples in a standard way, so they would be automatically incorporated in something like the wxPython interactive demo. cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: ten small Python programs

2007-05-28 Thread Stef Mientki
've the following in mind: - create a new-demo in a special directory - add some special keywords in the new-demo, in which treenodes it should popup - on restart of the demo, the new-demo is added to the tree cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: ten small Python programs

2007-05-28 Thread Stef Mientki
Steve Howell wrote: > --- Stef Mientki <[EMAIL PROTECTED]> > wrote: >>>> It would even be nicer, if everybody could drop >>>> her/his examples >>>> in a standard way, so they would be automatically >>>> incorporated in >>>>

is there a standard way to "install" egg-files under windows ?

2007-05-30 Thread Stef Mientki
ine parameters to the egg-filename (no path) - run ez_setup.py in the IDE Can someone tell how to install an egg file in just 1 line ? Or even better, can there be an icon on the desktop, where I just can drop the egg-file ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   >