Re: Tkinter question

2006-10-24 Thread Hendrik van Rooyen
Sorin Schwimmer wrote: Hi All, Is it possible to have a widget id while it is created? Something like this: Button(root, text='...', command= lambda v=widget id: fn(v)).grid() and then the function: def fn(v): v['bg']='BLUE' # or maybe nametowidget(v)['bg']='BLUE' Thanks, Sorin - just

Re: Arrays? (Or lists if you prefer)

2006-10-23 Thread Hendrik van Rooyen
From: [EMAIL PROTECTED] wrote: 8--- So: Way to do SIMPLE array, either internally or externally, with Python, please. to help you see it - here is a simple 3 row by 3 column list: myarray = [[1,2,3],[4,5,6],[7,8,9]] the first row is myarray[0] - ie the

Re: invert or reverse a string... warning this is a rant

2006-10-20 Thread Hendrik van Rooyen
Fredrik Lundh [EMAIL PROTECTED]wrote: 8--- 'a man a plan a canal panama' is not a palindrome ? not if spaces count - able was I ere I saw elba - is one - but its a tougher test... - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting existing module/objects to threads

2006-10-20 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote: I have inheirted some existing code, that i will explain in a moment, have needed to extend and ultimately should be able to run in threads. I've done a bunch of work with python but very little with threads and am looking for some pointers on how to implement, and if

Re: invert or reverse a string... warning this is a rant

2006-10-20 Thread Hendrik van Rooyen
Brad [EMAIL PROTECTED] wrote: Steven D'Aprano wrote: Gah!!! That's *awful* in so many ways. Thanks... I'm used to hearing encouragement like that. After a while you begin to believe that everything you do will be awful, so why even bother trying? rant It has been my experience that

Re: People's names (was Re: sqlite3 error)

2006-10-18 Thread Hendrik van Rooyen
Florian Diesch [EMAIL PROTECTED]wrote: 8-- In Germany von is just a part of the name since 1919 when the nobility was abolished by law. Thanks - was not aware of this - 1919 - just after the Great War, 1914-1918... - Hendrik --

Re: A friendlier, sugarier lambda -- a proposal for Ruby-like blocksin python

2006-10-17 Thread Hendrik van Rooyen
Bruno Desthuilliers [EMAIL PROTECTED] wrote: Kay Schluehr wrote: Bruno Desthuilliers wrote: Just for the record : Ruby's code-blocks (closures, really) come from Smalltalk, which is still the OneTrueObjectLanguage(tm). IsTheOneTrueObjectLanguage(tm)ReallyCamelCased?

Re: Can I set up a timed callback without Tkinter or twisted orsomething?

2006-10-16 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote: Hendrik is there not something based on signals? - I seem to recall Hendrik some such thing here in another thread.. ( I am running Linux) Have you tried: import signal help(signal) at the interpreter prompt? Skip *blush* - actually, no

Re: Can I set up a timed callback without Tkinter or twisted orsomething?

2006-10-15 Thread Hendrik van Rooyen
Scott David Daniels [EMAIL PROTECTED] wrote: Hendrik van Rooyen wrote: I want to do the equivalent of the after thingy in tkinter - setting up in effect a timed call back. My use case is as a supervisory timer - I want to set up an alarm, which I want to cancel if the expected

Re: Can I set up a timed callback without Tkinter or twisted orsomething?

2006-10-15 Thread Hendrik van Rooyen
hg [EMAIL PROTECTED] wrote: Hendrik van Rooyen wrote: Hi, I want to do the equivalent of the after thingy in tkinter - setting up in effect a timed call back. My use case is as a supervisory timer - I want to set up an alarm, which I want to cancel if the expected occurrence

Re: Thread termination

2006-10-14 Thread Hendrik van Rooyen
Teja [EMAIL PROTECTED]wrote: Hi all, Does any one know how to terminate or kill a thread that is started with start_new_thread() in the middle of its execution? Any pointers? Thanks in advance Teja. can't be done from outside without co operation of thread in question. google this

Re: What value should be passed to make a function use the defaultargument value?

2006-10-14 Thread Hendrik van Rooyen
Antoon Pardon [EMAIL PROTECTED] wrote: 8- If we somehow want to seperate parameters in those that can be used with a keyword and those that don't it has to be something different than providing a default value to

Re: Starting out.

2006-10-14 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote: 8 Well, I'm on vacation this week, so 5 pm means nothing to me: teetertotter from the Consolidated Word List from puzzlers.org. Yes, it's also spelled with a hyphen or a space, but as long as this is a valid spelling, it counts. I would

Re: Thread termination

2006-10-14 Thread Hendrik van Rooyen
Nick Craig-Wood [EMAIL PROTECTED] wrote: Hendrik van Rooyen [EMAIL PROTECTED] wrote: can't be done from outside without co operation of thread in question. google this newsgroup Hopefully google will discover also the thread where the above statement is proved to be false

Can I set up a timed callback without Tkinter or twisted or something?

2006-10-14 Thread Hendrik van Rooyen
Hi, I want to do the equivalent of the after thingy in tkinter - setting up in effect a timed call back. My use case is as a supervisory timer - I want to set up an alarm, which I want to cancel if the expected occurrence occurs - but its not a GUI app. My googling gets a lot of stuff pointing

Re: Wing IDE 2.1.3 released

2006-10-13 Thread Hendrik van Rooyen
Wingware Announce [EMAIL PROTECTED] wrote: 8--- * Professional quality code editor * Visual Studio, VI/Vim, Emacs, and Brief key bindings Can I copy paste columns as in Brief? Do the Brief Macros work? 100% ? - Hendrik --

Re: OT: Sarcasm and irony

2006-10-11 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: 8 ... It's well-known among Brits that Americans don't understand irony. They can be pretty oblique when it come to sarcasms too, for that matter. *ducks to avoid the nuclear fall out*

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Hendrik van Rooyen
Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED], Hendrik van Rooyen wrote: Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: 8 I wonder if we need another middle field for holding the bin/binte part

Re: Everything is a distributed object

2006-10-10 Thread Hendrik van Rooyen
Martin Drautzburg [EMAIL PROTECTED] wrote: Hello all, I've seen various attempts to add distributed computing capabilities on top of an existing language. For a true distributed system I would expect it to be possible to instantiate objects of a remote class or to subclass a remote class

Re: Python component model

2006-10-10 Thread Hendrik van Rooyen
Fredrik Lundh [EMAIL PROTECTED] wrote: Nick Vatamaniuc wrote: At the same time one could claim that Python already has certain policies that makes it seem as if it has a component model. 8 implementing this using

Re: dictionary containing a list

2006-10-09 Thread Hendrik van Rooyen
Fredrik Lundh [EMAIL PROTECTED] wrote: Steve Holden wrote: One of the fascinating things about c.l.py is that sometimes a questin will be posted that makes almost no sense to me, and somebody else will casually read the OP's mind, home in on the issue and provide a useful and relevant

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread Hendrik van Rooyen
a string with a space in it - and its peculiar in that the first letter is not capitalised And I am sure that the people called von Kardorff would not agree either... - Hendrik van Rooyen -- http://mail.python.org/mailman/listinfo/python-list

Re: Names changed to protect the guilty

2006-10-09 Thread Hendrik van Rooyen
Steven D'Aprano [EMAIL PROTECTED] wrote: On Fri, 06 Oct 2006 18:29:34 -0700, John Machin wrote: MonkeeSage wrote: On Oct 6, 8:02 pm, MonkeeSage [EMAIL PROTECTED] wrote: it is clearer to you to make the condition explicit (blah not False), blah not False - blah is False Whichever

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread Hendrik van Rooyen
Dennis Lee Bieber [EMAIL PROTECTED]wrote: 8-- In the days of paper filing (I actually took Shorthand, and a Business Machines Filing course in High School to avoid Phys.Ed.) the training for things like oriental names was to choose one for surname. This

Re: Dumping the state of a deadlocked process

2006-10-07 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote: Hi all I'm currently having some issues with a process getting deadlocked. The problem is that the only way I can seem to find information about where it deadlocks is by making a wild guess, insert a pdb.set_trace() before this point, and then step until it locks

Re: HOST - Assembla Inc. Breakout - Copyright Violation by Mr. AndySingleton

2006-10-07 Thread Hendrik van Rooyen
Diez B. Roggisch [EMAIL PROTECTED] wrote: 8--- ... - I don't wanna get into the details of my underwear :P Diez Why not? - what are you hiding? - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter newsgroup or mailing list

2006-10-06 Thread Hendrik van Rooyen
Franz Steinhaeusler [EMAIL PROTECTED] wrote: Hello NG, I'm asking this, (although I know a mailing list on gmane gmane.comp.python.tkinter and there is so little traffic compared to the mailing list of wxPython also mirrored on gmane gmane.comp.python.wxpython. I cannot imagine, that

Re: Python/Tkinter crash.

2006-10-06 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: Hendrik van Rooyen wrote: Fredrik Lundh [EMAIL PROTECTED] wrote: Eric Brunel wrote: AFAIK, Tkinter is not thread safe. Using some kind of lock to serialize the calls from different threads may seem to work (I never tested it actually

Re: Why do this?

2006-10-06 Thread Hendrik van Rooyen
Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Thu, 5 Oct 2006 11:28:08 +0100, Matthew Warren [EMAIL PROTECTED] declaimed the following in comp.lang.python: Now, I started programming when I was 8 with BBC Basic. Remember what the acronym BASIC stands for?

Re: Python/Tkinter crash.

2006-10-05 Thread Hendrik van Rooyen
Russell E. Owen [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Hendrik van Rooyen [EMAIL PROTECTED] wrote: Hi, I get the following: [EMAIL PROTECTED]:~/Controller/lib python display.py UpdateStringProc should not be invoked for type font Aborted ... Everything seems

Re: Python/Tkinter crash.

2006-10-05 Thread Hendrik van Rooyen
Hendrik van Rooyen [EMAIL PROTECTED] wrote: Eric Brunel [EMAIL PROTECTED] wrote: On Wed, 04 Oct 2006 10:33:55 +0200, Hendrik van Rooyen [EMAIL PROTECTED] wrote: Hi, I get the following: [EMAIL PROTECTED]:~/Controller/lib python display.py UpdateStringProc should

Re: Python/Tkinter crash.

2006-10-05 Thread Hendrik van Rooyen
Fredrik Lundh [EMAIL PROTECTED] wrote: Eric Brunel wrote: AFAIK, Tkinter is not thread safe. Using some kind of lock to serialize the calls from different threads may seem to work (I never tested it actually), but the safest way I found to use threads with Tkinter was to call it only

Re: Python/Tkinter crash.

2006-10-05 Thread Hendrik van Rooyen
Paul Rubin http://[EMAIL PROTECTED] wrote: Hendrik van Rooyen [EMAIL PROTECTED] writes: I am not sure how to do this - once I have called the Tkinter mainloop - that main thread is essentially event driven - and figuring out how to get it to poll a queue for content is not obvious - I

Python/Tkinter crash.

2006-10-04 Thread Hendrik van Rooyen
Hi, I get the following: [EMAIL PROTECTED]:~/Controller/lib python display.py UpdateStringProc should not be invoked for type font Aborted and I am back at the bash prompt - this is most frustrating, as there is no friendly traceback to help me guess where its coming from. And what is worse,

Re: Python/Tkinter crash.

2006-10-04 Thread Hendrik van Rooyen
Not talking to myself - Added results of strace run at bottom Hendrik van Rooyen [EMAIL PROTECTED] wrote: Hi, I get the following: [EMAIL PROTECTED]:~/Controller/lib python display.py UpdateStringProc should not be invoked for type font Aborted and I am back at the bash prompt

Re: Python/Tkinter crash.

2006-10-04 Thread Hendrik van Rooyen
James Stroud [EMAIL PROTECTED] wrote: Hendrik van Rooyen wrote: Hi, I get the following: [EMAIL PROTECTED]:~/Controller/lib python display.py UpdateStringProc should not be invoked for type font Aborted and I am back at the bash prompt - this is most frustrating

Re: Python/Tkinter crash.

2006-10-04 Thread Hendrik van Rooyen
Eric Brunel [EMAIL PROTECTED] wrote: On Wed, 04 Oct 2006 10:33:55 +0200, Hendrik van Rooyen [EMAIL PROTECTED] wrote: Hi, I get the following: [EMAIL PROTECTED]:~/Controller/lib python display.py UpdateStringProc should not be invoked for type font Aborted and I am back

Re: Escapeism

2006-10-01 Thread Hendrik van Rooyen
Kay Schluehr [EMAIL PROTECTED] wrote: Sybren Stuvel wrote: Kay Schluehr enlightened us with: Usually I struggle a short while with \ and either succeed or give up. Today I'm in a different mood and don't give up. So here is my question: You have an unknown character string c

Re: storing variable names in a list before they are used?

2006-10-01 Thread Hendrik van Rooyen
Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Sat, 30 Sep 2006 14:33:35 -0400, John Salerno [EMAIL PROTECTED] declaimed the following in comp.lang.python: Ok, I'm sure you all get the idea by now, but here's a simpler way to look at it: Instead of first_name = wx.TextCtrl(self)

Re: License / Registration key enabled software

2006-09-29 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] Wrote: Sybren Stuvel wrote: Mike Playle enlightened us with: Imagine you're an IT manager for a medium-to-large company who wants to use some expensive piece of software. You talk to the vendor and buy a licence to use the software on up to 5 machines at

Re: does anybody earn a living programming in python?

2006-09-28 Thread Hendrik van Rooyen
Steven D'Aprano [EMAIL PROTECTED] Wrote: On Tue, 26 Sep 2006 22:00:55 +1000, Anthony Baxter wrote: This seems to be a very, very silly original post. I know of plenty of people who make a living programming Python. It's been the vast majority of the programming (for money) I've done in

Contender for QOTW - Was : Re: AN Intorduction to Tkinter

2006-09-27 Thread Hendrik van Rooyen
John Machin [EMAIL PROTECTED] wrote: snip In that case, don't burn bandwith by banal banter, post the examples! +1 here - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: REQ: Java/J2EE Developer 10 Months

2006-09-16 Thread Hendrik van Rooyen
Tim Chase [EMAIL PROTECTED] wrote: 8 Or, perhaps they just have their terminology off. Corba is a lot like cobra which is also a snake, like a Python. (We've got Corba, right here in River City. That starts with 'C' and that rhymes with 'P' and

Re: Is it just me, or is Sqlite3 goofy?

2006-09-13 Thread Hendrik van Rooyen
Tim Chase [EMAIL PROTECTED] wrote: To: Steve Holden [EMAIL PROTECTED] But honestly, boss, I didn't write this code! It was my evil alter-ego that puts VARCHAR values containing Gilbert Sullivan lyrics into the Amount_Due CURRENCY fields! Hence the phrase Going for a song? I am

Re: Is it just me, or is Sqlite3 goofy?

2006-09-13 Thread Hendrik van Rooyen
From: Steve Holden [EMAIL PROTECTED] wrote: snip These kids wi' their Oracle databases didn't know they were born. I can remember 'avin' to optimise programs by making sure that the next instruction were comin' under the heads of t' drum just as the last instruction were finishing. But yer

Re: Pyserial problem. script stops reading.

2006-09-12 Thread Hendrik van Rooyen
"Frederic Wenzel" [EMAIL PROTECTED] Wrote:On 9/9/06, Frederic Wenzel [EMAIL PROTECTED] wrote: On 9/9/06, Hendrik van Rooyen [EMAIL PROTECTED] wrote: | I wrote a script on Linux that uses pyserial to read status messages | from a serial line using readlines(). For now, it jus

Is there a way to take a priori knowledge out of field definitions?

2006-09-11 Thread Hendrik van Rooyen
Hi, It is possible to build a system where the fields are self defining : - One way is to keep a dictionary of tags and descriptors, and to keep the data in a dictionary using the same tags as keys, with values - an oversimplified example: DefinitionDict = {1:'Quantity',2:'Price',3:'Value'}

Re: pyserial problem: script stops reading

2006-09-09 Thread Hendrik van Rooyen
Frederic Wenzel [EMAIL PROTECTED] wrote: | I wrote a script on Linux that uses pyserial to read status messages | from a serial line using readlines(). For now, it just displays what | it gets on stdout: | | 17:42 | 0005 | 02 | | 5 |Rack Abs.| - | --210 | 17:42 | 0008 | 02 | | 5 |Rack

Re: Tkinter listbox:get

2006-09-09 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote in email: | Hi,and sorry I forget tell you what I want exactly. | | My problem is | | example: | | when I write like you tell me: | | idx=lb.curselection() | StringValue=lb.get(idx) === This | | THEN,ERROR IS: | | Traceback (most recent call last): | File

Re: Tkinter listbox:get

2006-09-08 Thread Hendrik van Rooyen
[EMAIL PROTECTED] Wrote: | Hi, | I need help about Tkinter.I want,when somebody click on some item in | listbox,then | in new entry widget must write that item | | Regards, | Vedran I have already covered the retrieval from the listbox in another thread. You can set the entry box contents like

Re: Tkinter listbox and ftputil

2006-09-03 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote by email: Please keep it on the list... | Hi, | Hi and Thanks for all your help,everything work.But I have one | question,in string I am new,and I don't know how to exactly split: | | example: | | '-rw-r--r-- 1 [EMAIL PROTECTED] | v-programs.byethost31.com 2376 Aug

Re: IndentationError: expected an indented block

2006-09-03 Thread Hendrik van Rooyen
Georg Brandl [EMAIL PROTECTED] Wrote: | [EMAIL PROTECTED] wrote: | Hendrik van Rooyen wrote: | [EMAIL PROTECTED] Wrote: | | | | | | Haha. How can I fix this! | | | | | | | | Use either tabs, or spaces, but not both | | - Hendrik | | Haha. I know. I just find it silly

Re: IndentationError: expected an indented block

2006-09-02 Thread Hendrik van Rooyen
[EMAIL PROTECTED] Wrote: | | Haha. How can I fix this! | | | Use either tabs, or spaces, but not both - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter listbox and ftputil

2006-09-02 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote: | Hi, | Again I need help about tkinter listbox. | | | example: | | In listbox must write (imaginary file in server): | | ['-rw-r--r-- 1 [EMAIL PROTECTED] vedran.byethost12.com | 3506 Jun 25 14:40 file.gif'] | | | and then when somebody click on file in

Re: Tkinter listbox question

2006-09-01 Thread Hendrik van Rooyen
[EMAIL PROTECTED] Wrote: | Hi, | I need help about Tkinter listbox widget.I want,when somebody click on | any item(file) in Listbox,then in new Label widget text must be | selected item from server. | | my program (wrong example): | | import ftputil | import Tkinter | root=Tkinter.Tk() |

Re: TNEF decoder

2006-08-30 Thread Hendrik van Rooyen
Simon Forman [EMAIL PROTECTED] wrote: 8- | A place I once worked at had a project that included some TNEF | handling. There was one developer assigned fulltime to it. He was the | one who sat at his desk hurling curses at his workstation at the top of | his lungs,

Re: time.clock() going backwards??

2006-08-29 Thread Hendrik van Rooyen
Grant Edwards [EMAIL PROTECTED] Wrote: | On 2006-08-28, Grant Edwards [EMAIL PROTECTED] wrote: | | For processors that run at (say) 2GHz, several million (say 10 | million) represents a difference of 10e6/2e9 = 0.005 seconds | between when the processors were sufficiently powered up to |

Re: How to let a loop run for a while before checking for break condition?

2006-08-29 Thread Hendrik van Rooyen
Claudio Grondi [EMAIL PROTECTED] wrote: 8- | The test of the counter is what actually slows the loop down. Probably | the test of time slows the loop even more down. Any test slows a loop | down, so the idea here is to get rid of the test what can be done by | interrupting

Re: How to let a loop run for a while before checking for break condition?

2006-08-29 Thread Hendrik van Rooyen
Hendrik van Rooyen [EMAIL PROTECTED] wrote: 8- Here are some more results, three runs without, and three with a comment in the body of the interesting loop: (a summary follows the detail) python junk.py 0x501 Loop 1 Elapsed time is: 31.2168951035 Loop 1

Re: How to let a loop run for a while before checking for break condition?

2006-08-28 Thread Hendrik van Rooyen
Claudio Grondi [EMAIL PROTECTED] Wrote: | Fredrik Lundh wrote: | Diez B. Roggisch wrote: | | A while loop has a condition. period. The only thing to change that is | to introduce a uncoditioned loop, and use self-modifying code to make | it a while-loop after that timer interrupt of yours.

Re: How to let a loop run for a while before checking for breakcondition?

2006-08-28 Thread Hendrik van Rooyen
Claudio Grondi [EMAIL PROTECTED] wrote: | Diez B. Roggisch wrote: | Claudio Grondi schrieb: | | | Sometimes it is known in advance, that the time spent in a loop will | be in order of minutes or even hours, so it makes sense to optimize | each element in the loop to make it run faster. |

Re: Fw: Is this a good idea or a waste of time?

2006-08-26 Thread Hendrik van Rooyen
Simon Forman [EMAIL PROTECTED] Wrote: | Hendrik van Rooyen wrote: | Simon Forman [EMAIL PROTECTED] wrote: | | 8- | | | BTW, speaking of strictness, more stricter is invalid English, | | just stricter is the correct form

Re: Consistency in Python

2006-08-26 Thread Hendrik van Rooyen
Paul Boddie [EMAIL PROTECTED] Wrote: | Hendrik van Rooyen wrote: | | There seems to be no common methods such as- | prepend - for adding something to the beginning | append - for adding something to the end | insert[j] - for adding something somewhere in the middle | | Or have

Re: Consistency in Python

2006-08-26 Thread Hendrik van Rooyen
Diez B. Roggisch [EMAIL PROTECTED] wrote, oder schrieb, of het geskryf: | Hendrik van Rooyen schrieb: | Hi, | | for S where S is a Standard Python type: | The slice notation S[n] returns either: | The n'th element of S, or | The value of the dictionary entry whose key

Re: sum and strings

2006-08-25 Thread Hendrik van Rooyen
Fredrik Lundh [EMAIL PROTECTED] Wrote: 8 | (I still think a join built-in would be nice, though. but anyone who | argues that join should support numbers too will be whacked with a | great big halibut.) | | /F Strange this - you don't *LOOK* like a

Re: Is this a good idea or a waste of time?

2006-08-25 Thread Hendrik van Rooyen
Simon Forman [EMAIL PROTECTED] wrote: 8- | BTW, speaking of strictness, more stricter is invalid English, | just stricter is the correct form. ;-) or alternatively the construct more strict is also acceptable - Hendrik --

Consistency in Python

2006-08-25 Thread Hendrik van Rooyen
Hi, for S where S is a Standard Python type: The slice notation S[n] returns either: The n'th element of S, or The value of the dictionary entry whose key is n. This is beautiful because as a programmer you don't have to worry what S is... (and as an aside - This consistency

Fw: Is this a good idea or a waste of time?

2006-08-25 Thread Hendrik van Rooyen
Simon Forman [EMAIL PROTECTED] wrote: 8- | BTW, speaking of strictness, more stricter is invalid English, | just stricter is the correct form. ;-) or alternatively the construct more strict is also acceptable - Hendrik

Re: What do you want in a new web framework?

2006-08-23 Thread Hendrik van Rooyen
Fredrik Lundh [EMAIL PROTECTED] wrote: | Alex Martelli wrote: | | Indeed, it has been truthfully observed that Python's the only language | with more web frameworks than keywords. | | recent research indicates that it has more web frameworks than comments | in the source code. | | /F

Re: What do you want in a new web framework?

2006-08-23 Thread Hendrik van Rooyen
Alex Martelli [EMAIL PROTECTED] | Tim Roberts [EMAIL PROTECTED] wrote: |... | themselves. However, in the case of web frameworks, I believe Marc is | fundamentally correct: the web framework proliferation in Python is | actually doing the language a huge disservice. | | Indeed, it has

Re: how do you get the name of a dictionary?

2006-08-23 Thread Hendrik van Rooyen
jojoba [EMAIL PROTECTED] Wrote: | At the risk of stating the obvious, why don't you simply add a parameter | for the title in the invocation of the tree editor? I.e. instead of | invoke_tree_editor(somedict) | do | invoke_tree_editor(somedict, somedict) | HTH, | Carsten. | | | Thanks

Re: Input from the same file as the script

2006-08-21 Thread Hendrik van Rooyen
Dennis Lee Bieber [EMAIL PROTECTED] Wrote: | On 20 Aug 2006 11:02:25 -0700, [EMAIL PROTECTED] declaimed the | following in comp.lang.python: | | Can the input to the python script be given from the same file as the | script itself. e.g., when we execute a python script with the command |

Re: Small Troll on notation of variables over time

2006-08-21 Thread Hendrik van Rooyen
Piet van Oostrum [EMAIL PROTECTED] Wrote: | You are about 7 months early. | -- Am I? - Early for what - a seven months premature baby is small indeed... - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Small Troll on notation of variables over time

2006-08-21 Thread Hendrik van Rooyen
Jeremy Sanders [EMAIL PROTECTED] wrote: | Hendrik van Rooyen wrote: | | What do you guys think? | | You could get something similar using an object, such as | | class Hist(object): | | def __init__(self): | self.vals = [None] | | def __call__(self, index=-1

Re: tkinter btn visual state with tkMessageBox

2006-08-20 Thread Hendrik van Rooyen
[EMAIL PROTECTED] Wrote: | | Hendrik van Rooyen wrote: | [EMAIL PROTECTED] wrote: | | To: python-list@python.org | | | | why is the button sunken when called through a bind method, and not | | with the command attribute? | | Thank you! | | | | | | ## Cut'nPaste example | | from Tkinter

Small Troll on notation of variables over time

2006-08-19 Thread Hendrik van Rooyen
Hi there, I can write: s = 'some string' then print s[1] will be the string 'o' and a while later I can write: s = 'other some string' then print s[1] will be the string 't' and then: s = [1,2,3,4] then print s[1] will be the number 2 and still later: s = {1:'boo',2:'foo',3:'shoo'} when

Re: Small Troll on notation of variables over time

2006-08-19 Thread Hendrik van Rooyen
John Machin [EMAIL PROTECTED] wrote: | | Hendrik van Rooyen wrote: | [snip] | What do you guys think? | | The subject said it all. You should find some other way of entertaining | yourself on the weekends :-) This is the right answer... *grin* - well - at least you *were* warned

Re: tkinter btn visual state with tkMessageBox

2006-08-19 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote: To: python-list@python.org | why is the button sunken when called through a bind method, and not | with the command attribute? | Thank you! | | | ## Cut'nPaste example | from Tkinter import * | import tkMessageBox | | class Vue(object): | def __init__(self): |

Re: what is the keyword is for?

2006-08-16 Thread Hendrik van Rooyen
Dan Bishop [EMAIL PROTECTED] wrote: | Sybren Stuvel wrote [on the difference between is and ==]: | Obviously a is b implies a == b, | | Not necessarily. | | a = b = 1e1000 / 1e1000 | a is b | True | a == b | False Huh? - wtf is this - I find this deeply disturbing - Sybren's explanation

<    4   5   6   7   8   9