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
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
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
[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
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
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
--
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?
[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
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
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
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
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
[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
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
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
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
--
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*
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
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
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
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
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
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
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
[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
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
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
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
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?
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
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
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
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
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,
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
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
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
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
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)
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
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
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
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
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
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
"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
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'}
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
[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
[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
[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
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
[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
[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
[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()
|
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,
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
|
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
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
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.
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.
|
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
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
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
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
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
--
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
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
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
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
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
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
|
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
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
[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
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
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
[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):
|
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
801 - 879 of 879 matches
Mail list logo