Hi All,
I finally put my hands on a GUI-less Linux box and
tried the little signal sending experiment. It gives
the same! I'm left wondering what is the frame
object...
Regards,
Sorin Schwimmer
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the
Hi All,
Say I launch a shell under KDE and start typing:
$ python
Python 2.4.2 (#10, Feb 16 2006, 17:44:37)
[GCC 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1,
ssp-3.3.5.20050130-1, pie-8.7.7. on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> def fn(a=0,b=0):
...
That's my output:
C wins:
['B', 'D', 'A', 'C']
C wins:
['D', 'B', 'A', 'C']
I'm running Python 2.4.1 under Gentoo Linux. Maybe
it's related only to a certain version?
Sorin Schwimmer
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
Eric Brunel is right in that a Listbox won't provide
any builtin help for this kind of things.
Suppose you can afford a width of 10 chars. Suppose
your lines are stored in the variable Lines - a
sequence. Suppose you use a font with fixed width (the
width occupied by "i" is the same like for "m").
For a listbox, I would give a width and go with string
formatting. In your case, I guess that what I'll do is
to limit the width to something acceptable, and show
only the tail of the line.
Say, your width is w, then I'll show only the last w-4
chars, preceded by '... ' (ellipsis+space). It might
Generate your function as a string. Be careful to
indent correctly and append \n at line's end. Then
execute the string with exec(name_of_string). Then
edit your string as necessary, and execute again.
An example follows, directly from one of my projects:
# create a "function" to apply on
Hi All,
While working on a project, I discovered lots of
little opportunities for real parallelism. For
instance, the following class initialization:
from pg import DB
class example:
def __init__(self):
# find somehow HOST1, HOST2
self.member1=DB('database1',host=HOST1).query("SELECT..
0) Sorry, I don't know how to post a reply in the same
thread.
1) Grant Edwards wrote:
> The "i += 1" line is almost certainly wrong.
You're certainly write, as I acknowledged in a follow
up "suggestion for (re)try statement - correction'
2) Rocco Morreti wrote:
> What is so repugnant about the equ
"i += 1" is wrong there. I had in my mind at first a
"while" statement.
Sorry...
Sorin
__
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I think that would be useful to have an improved
version of the "try" statement, as follows:
try(retrys=0,timeout=0):
# things to try
except:
# what to do if failed
and having the following semantic:
for i in range(retrys):
try:
# things to try
except:
if i < retrys:
i
Hi,
I am working on an application which involves
interprocess communication. More to the point,
processes should be able to notify other processes
about certain situations, so the "notifyees" would be
able to act in certain ways.
As processes are distributed on several machines, in
different phy
Hi,
I have Python 2.4.1 and have downloaded 2.4.2. Is
there a way to avoid installing everything and,
instead, just upgrade?
Thanks,
Sorin
__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
--
http://mail.python.o
Hello,
I am trying to move focus between Tkinter (and other)
widgets.
A solution similar with my approach was suggested by
Eric Brunel at
http://mail.python.org/pipermail/python-list/2004-July/229971.html
It will generate an error:
Exception in Tkinter callback
Traceback (most recent call last):
13 matches
Mail list logo