On Mon, 14 Mar 2005 05:02:25 GMT, Joal Heagney <[EMAIL PROTECTED]> wrote:
>Tim Roberts wrote:
>> "G. Völkl" <[EMAIL PROTECTED]> wrote:
>>
>>>I use a dictionary:
>>>
>>>phone = {'mike':10,'sue':8,'john':3}
>>>
>>>phone['mike'] --> 10
>>>
>>>I want to know who has number 3?
>>>
>>>3 --> 'john'
>
Brian van den Broek wrote:
A comment about the msi process: even though I set it to install to a
different directory, 2.4.1c1 clobbered my 2.4 install. I remember
reading something somewhere such that I expected this, but a quick
glance at the obvious places for the 2.4.1c1 doesn't produce anyth
Martin v. Löwis said unto the world upon 2005-03-10 20:55:
Anthony Baxter wrote:
On behalf of the Python development team and the Python community, I'm
happy to announce the release of Python 2.4.1 (release candidate 1).
I'd like to encourage feedback on whether the Windows installer works
for peo
Hi all,
Please help me in parsing the html document
and extract the http links .
Thanks in advance!!1
Suchitra
--
http://mail.python.org/mailman/listinfo/python-list
This may be of interest
http://farside.ph.utexas.edu/teaching/329/lectures/lectures.html
Cheers, Sean
--
"Hver sin smak", sa vintapperen, han drakk mens de andre sloss."
--
http://mail.python.org/mailman/listinfo/python-list
Hi,I want to know weather python conducts any certification exams like the other programming languages -
Microsoft (MCP,MCSD)
Sun (sun certification)
Regards,
Sandeep
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden wrote:
Andy Leszczynski wrote:
Sorry for questioning Python :-) - it turned out that this is a
problem with Mozilla. For some reason it holds up with opening second
connection to given host until the previous one is completed.
Interestingly enough, IE works better with Python multi
Is there a way to call up the Font dialog box (at least in the Windows
API) from Tkinter or another module?
thanks,
Harlin Seritt
--
http://mail.python.org/mailman/listinfo/python-list
Well, this is ugly as the sin but it seems to work, at least for the
moment:
vk = VkKeyScan(ord(char))
if vk == -1: # ugly fix for backtips
vk = 96
I will write to Gary Bishop to point out this issue with the Italian
keyboard and see if he has some decent
solution.
Michele
Terry Reedy wrote:
Yes, Python's import mechanism assumes that sys.path is relatively static,
or grow only. I not sure what 'reload Module' would do after the first
loop.
it does work using like that :
if sys.modules.has_key("Module"):
reload(Module)
[bearophile]
> This was my suggestion for a possible flatten():
>
> flatten(sequence, level=-1, tuples=True, strings=False, safe=False)
> - tuples=True then it flattens tuples too.
> - strings=True then it flattens strings with len(s)>1 too.
> - safe if True it cheeks (with something like an iterat
What GUI toolkit are you using? I think this is the point Jeremy is
making.
Harlin Seritt
--
http://mail.python.org/mailman/listinfo/python-list
Is there any reason why you can't import both?
import urllib as u
import urllib2 as uu
--
http://mail.python.org/mailman/listinfo/python-list
ahh Frame! I didn't even think of extending Frame. I kept wondering how
I could instead extend entry and listbox... thanks for the pointer.
Yeah I know there are others out there, I just wanted to create one
from tkinter widgets and keep the constructor as close to other tkinter
widgets as possible
Thanks nirinA... I've played with that one before. I'm not a big fan of
Pmw or Tix so much I guess although when it gets down to it, those
'extra' toolkits are probably more functional.
Cheers,
Harlin
--
http://mail.python.org/mailman/listinfo/python-list
Tim Roberts wrote:
"G. Völkl" <[EMAIL PROTECTED]> wrote:
I use a dictionary:
phone = {'mike':10,'sue':8,'john':3}
phone['mike'] --> 10
I want to know who has number 3?
3 --> 'john'
How to get it in the python way ?
If you need to do this a lot, just keep two dictionaries, where the keys in
each
Marek Franke wrote:
Just wondering how you're supporting the Xbox controller. I bought a
cable and driver a few months back to hook up to my computer. Are you
using a Python alternative??
No, I rebuild the connector to USB and loaded the xpad-driver (Linux),
that's all. Just the same with the SNES
"Chmouel Boudjnah" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> dir = listdir('/path/')
> for i in dir:
> sys.path.append('/path/' + i "/")
> import Module
> doStuff()
> sys.path.remove('/path/' + i "/")
>
> it's obviously not working since it get only the first import Module
>
> Freevo is pure python already ;)
>
> Greetings, Roland
OK, but it's more the 'thrill' to create something own, not the matter which
language we/they use. And even there is only a little image-viewer and a
little CD-player, it's fun (for me) to use it already on my TV.
Marek
--
http://mail.
> Just wondering how you're supporting the Xbox controller. I bought a
> cable and driver a few months back to hook up to my computer. Are you
> using a Python alternative??
>
No, I rebuild the connector to USB and loaded the xpad-driver (Linux),
that's all. Just the same with the SNES pads (para
I know this isnt that big of a problem,
but i cannot think of one reason why they would not allow numbers
preceded with a 0 to have a number
higher then a 7 in them...
And it seems very inconsistant to me...
Is there a reason for this?
I *love* questions I can answer! Answer: because that's how y
Hi,
I have some code like that to do kind of plugins load :
dir = listdir('/path/')
for i in dir:
sys.path.append('/path/' + i "/")
import Module
doStuff()
sys.path.remove('/path/' + i "/")
it's obviously not working since it get only the first import Module
while t
There is some info on teaching computational physics at Rubin Landau's
site http://www.physics.orst.edu/~rubin/ .
Springer recently published the book "Python Scripting for
Computational Science" by Hans P. Langtangen .
Searching "computational physics" at Amazon returns some relevant
books.
--
Hi,
I posted this to sci.physics and alt.sci.physics and got nowhere;
perhaps the much more friendly and helpful crowd here can help me. I
know that a lot of pythonistas are, in fact, scientists.
I am a non-traditional, undergraduate physics (and math) student with
20+ years of professional soft
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Paul Watson wrote:
"Peter Hansen" <[EMAIL PROTECTED]> wrote:
Simon John wrote:
You could try import win32api and checking for an exception ;-)
(Winky noted) Just in case anyone thinks that last is a
useful idea, keep in mind that win32api is not installed
(with the standard distribution) but must
On 13 Mar 2005 14:31:53 -0800, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a python script under linux, I wonder if I can be converted to
> an executable or not?
Yes, you can use cx_Freeze.
Regards,
Stephen Thorne
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Hello
Ive recently found that you cannot type anything over 7 into a number that is
preceded with a 0.
ex:
>>> 01
1
>>> 07
7
>>> 08
SyntaxError: invalid token
>>> 011
9
>>> 017
15
>>> 077
63
>>> 078
SyntaxError: inva
I think python is expecting a octet number from the
input?
- Joe
- Original Message -
From:
[EMAIL PROTECTED]
To: python-list@python.org
Sent: Monday, March 14, 2005 10:51
AM
Subject: Bug?
HelloIve recently found that you cannot type anything
over 7 into a nu
Hello
Ive recently found that you cannot type anything over 7 into a number that is
preceded with a 0.
ex:
>>> 01
1
>>> 07
7
>>> 08
SyntaxError: invalid token
>>> 011
9
>>> 017
15
>>> 077
63
>>> 078
SyntaxError: invalid token
I know this i
pysqlite 2.0.alpha2
===
The last release was back in Nov. 2004, but pysqlite 2 development is going on
faster now. So it's time for another alpha release to collect feedback.
Please report any bugs you find on the pysqlite mailing list, or even better on
the trac tracking system a
[EMAIL PROTECTED] wrote:
The following script does not behave as expected. I wanted to terminate
the 'mythread' thread after 5 seconds.
What I see is the threading.Thread call blocking until the 15 second
sleep is done. Suggestions?
[snip]
foo = FooClass()
mythread = threading.Thread(foo.stall()
I realize that. I'm using a variant of the polite shutdown request technique
used in the python cookbook. The problem is that thread creation is
apparently blocking instead of continuing program execution.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sunday,
The Python threading model doesn't allow one thread to forcibly terminate
another. This has been discussed many times before, I think that the short
answer is a combination of (a) it's hard to specify what happens in the
terminated thread, without the possibility of leaving the program in an unkno
Will McGugan wrote:
You need to set the working dir for the icon in the [Icons] sections.
It would be better to re-design the application so that
it doesn't rely on being started with any particular
working directory. Then it will still work if the user
creates additional shortcuts that don't have
Martin v. LÃwis wrote:
Steve Horsley wrote:
It is my understanding that the BOM (U+feff) is actually the Unicode
character "Non-breaking zero-width space".
My understanding is that this used to be the case. According to
http://www.unicode.org/faq/utf_bom.html#38
the application should now speci
I wonder if I get the executable like c program compiled by gcc
--
http://mail.python.org/mailman/listinfo/python-list
In <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> I have a python script under linux, I wonder if I can be converted to
> an executable or not?
Place '#!/usr/bin/env python' as the first line of your script and type::
chmod u+x yourscript.py
at the command line. ;-)
Ciao,
Marc 'Bla
[EMAIL PROTECTED] wrote:
I have a dictionary. Each key contains a list. I am using the
contents of the list to build a portion of a command line.
However, before I can build the command line, I have to make sure that
the command isn't too long. This means that I have to step through
each item in
[JanC]
> The code below makes it possible to write assembler code for
different
> architectures (in case pyasm ever supports that ;) and also a Python
> code version to use when running on a system where no assembler code
> can be used. It prints:
[Michael]
> Another (perhaps wacky) approach woul
Daniel Yoo wrote:
John Machin <[EMAIL PROTECTED]> wrote:
: tree.search("I went to alpha beta the other day to pick up some spam")
: could use a startpos (default=0) argument for efficiently restarting
: the search after finding the first match
Ok, that's easy to fix. I'll do that tonight.
I have a
"Martin Franklin" wrote:
> Benjamin Rutt wrote:
> > I have a tkinter 'Text' and 'Scrollbar' connected and working
> > normally. When a new line of text is inserted (because I'm
> > monitoring
> > an output stream), I'd like the text and scrollbar to be scrolled
> > to
> > the bottom, so the late
The following script does not behave as expected. I wanted
to terminate the 'mythread' thread after 5 seconds.
What I see is the threading.Thread call blocking until the
15 second sleep is done. Suggestions?
import threading
from time import sleep
class FooClass:
def
I have a dictionary. Each key contains a list. I am using the
contents of the list to build a portion of a command line.
However, before I can build the command line, I have to make sure that
the command isn't too long. This means that I have to step through
each item in the list twice: once to
Hi
I have a python script under linux, I wonder if I can be converted to
an executable or not?
Richard
--
http://mail.python.org/mailman/listinfo/python-list
john wrote:
Haveing problems writeing a program then running it in python 2.3.5
interpreter. Called the program test.py used chmod to make it
executable in linux
#! /usr/bin/python
print 2** 8
print 'the bright side ' + 'of life'
>>> python test.py
File "", line 1
python test.py
JanC wrote:
[an example of using decorators to control pyasm]
Another (perhaps wacky) approach would be to change the assembler source syntax
enough to make it legal Python - in particular, this means parenthesizing the
arguments - then it can just be stored in-line with other Python source. Thi
Richie Hindle wrote:
I could try again, but maybe there's some useful information you can get
from the partially upgraded environment. Here's how the \python24
directory looks:
I tried to reproduce it, and failed - if the DLL is not in use, it is
updated correctly; if it is in use, a window pops u
JanC wrote:
This is difficult to do right, if you have to consider all the laws in
different countries...
Right. So he points out that his explanations are for US copyright law
only, and then that legislation even in different US states, or perhaps
even in districts, might be different. Therefore,
Martin Franklin <[EMAIL PROTECTED]> writes:
> text.yview_pickplace("end")
Thank you, works perfectly!
--
Benjamin Rutt
--
http://mail.python.org/mailman/listinfo/python-list
"Harlin Seritt" wrote:
> I've created a ghetto-ized ComboBox that should work nicely for
> Tkinter
> (unfortunately no dropdown capabilities yet).
>
how about:
>>> import Tix
>>> print Tix.ComboBox.__doc__
ComboBox - an Entry field with a dropdown menu. The user can select a
choice by either
"Jan Ekström" wrote:
> Here is the error.
> IDLE 1.1
> >>> python
>
> Traceback (most recent call last):
> File "", line 1, in -toplevel-python
> NameError: name 'python' is not defined
> >>>
this should be a success install report! not an error.
start coding and see what happens.
>>> print "He
Well, just modify the source in that case.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
The error message 'Connection refused' got me thinking that the SMTP
server wouldn't allow this or required some authentication, or etc.
In case this isn't clear yet: the "connection refused" error happens
in TCP sockets if the remote machine is turned on, but offers no ser
Sorry, I guess that I wasn't clear. I've made a module
using swig that wrap functions written in C. If I load
that module in python using:
>>> from import *
it works fine. But if I execute this same command
using PyRun_SimpleString in another code written in C,
it doesn't work, i.e. I can't load
Martin v. Löwis schreef:
> Larry argues that a license should be legally meaningful, and
> legally clear - or else there is little point in formulating
> a license in the first place.
This is difficult to do right, if you have to consider all the laws in
different countries...
--
JanC
"Be str
Haveing problems writeing a program then running it in python 2.3.5
interpreter. Called the program test.py used chmod to make it
executable in linux
#! /usr/bin/python
print 2** 8
print 'the bright side ' + 'of life'
>>> python test.py
File "", line 1
python test.py
^
Syntax
John Machin <[EMAIL PROTECTED]> wrote:
: tree.search("I went to alpha beta the other day to pick up some spam")
: could use a startpos (default=0) argument for efficiently restarting
: the search after finding the first match
Ok, that's easy to fix. I'll do that tonight.
--
http://mail.python
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Simon John wrote:
>> If you're using a GUI, then that may help you decode the platform too -
>> for example wxPython has wx.Platform, there's also platform.platform()
>> , sys.platform and os.name
>>
>> You could try impo
> I'd say Nevow! For apache setup, you might be interested in my wsgi [1]
> implementation.
Hi Sridhar,
Are you aware of Nevow's "integrability" with the webservers (CGIHTTPServer
in particular) that come packaged with Python itself ?
Thanks,
/venkat
--
http://mail.python.org/mailman/listinfo
Jan Rienyer Gadil wrote:
> @ sir Peter
> so you mean that it is correct (at least on the unpack() part)
No he doesn't mean that at all. All it means is that minor scuffles
have broken out among the spectators. Don't worry about them, batons &
water cannon will fix them; you concentrate on the foo
A. Klingenstein schrieb:
I embedded Python in a Windows C++ program. Now I want to debug my
embedded scripts which of course won't run in any IDE process.
Commercial IDEs like WingIDE can attach to external processes by
importing a module in the scripts. Is there a debugger capable of this
whic
Paul Rubin wrote:
"Marc H." <[EMAIL PROTECTED]> writes:
I'm fairly new to python, and don't know much of its inner working so
I wonder if someone could explain to me why it is so much faster in
python to open a file and load it in a list/array ?
My guess is readlines() in Python is separating on n
On Mon, 07 Mar 2005 16:06:46 -0500, rbt wrote:
> Earl Eiland wrote:
>> In Linux, if I make the first line #!/path/to/Python, all I have to do
>> to execute the program is type ./FileName (assuming my pwd is the same
>> as FileName). what's the Windows equivalent?
>> Earl
>>
>> On Mon, 2005-03-07
Marek Franke wrote:
Hi there,
we have started with some people from our LUG (Linux User Group) a 'little'
project, called LMMS (Linux Multimedia System). When it's 'finished' it
shall be a window-manager for use on TV and handle with joysticks/gamepads.
As the name says, it is for multimedia-appl
Marek Franke wrote:
Hi there,
we have started with some people from our LUG (Linux User Group) a 'little'
project, called LMMS (Linux Multimedia System). When it's 'finished' it
shall be a window-manager for use on TV and handle with joysticks/gamepads.
As the name says, it is for multimedia-appl
Martin Franklin wrote:
Harlin Seritt wrote:
I've created a ghetto-ized ComboBox that should work nicely for Tkinter
(unfortunately no dropdown capabilities yet).
I've found why it's such a pain in the @ss to create one. You have to
re-create common methods and make sure they're mapped to the right
"Raymond Hettinger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> FWIW, requests for additions to the itertools module have not fallen on
> deaf
> ears. There are no arbitrary restraints on building out this module.
> Each
> request has gotten careful thought and a couple of th
Kent Johnson wrote:
Binny V A wrote:
Hello Everyone,
I am new to python and I am trying to get a program to close a
application when the Escape Key is pressed.
Here is a version that works. The changes from yours:
- Bind , not
These amount to the same thing AFAIK
- Bind the key to the root, not
"Fredrik Bertilsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I am trying to overload the "and" operatior, but my __and__ method is
> never called.
That is because, properly speaking, 'and' and 'or' are, in Python, in-line
flow-control keywords (related to 'if' and 'else'),
Harlin Seritt wrote:
I've created a ghetto-ized ComboBox that should work nicely for Tkinter
(unfortunately no dropdown capabilities yet).
I've found why it's such a pain in the @ss to create one. You have to
re-create common methods and make sure they're mapped to the right
component (inside this
Benjamin Rutt wrote:
I have a tkinter 'Text' and 'Scrollbar' connected and working
normally. When a new line of text is inserted (because I'm monitoring
an output stream), I'd like the text and scrollbar to be scrolled to
the bottom, so the latest line of text is always shown. How to do
this? Th
On 13 Mar 2005 11:22:54 -0800, [EMAIL PROTECTED] wrote:
>I am sure this is old news, the syntax of python is crazy to me.
>There I said it, I'm sure I'll get over it or around it.
>
>I was trying to make a whois script work and was unable.
>
>May be someone with lint-like eyes can tell what's wron
Stefan Behnel schreef:
> Meaning: Put the assembler into the doc-string of a function. Then
> use a decorator to run the assembler on the function's __doc__ string
> and build an assembly function that takes the same arguments to make
> the assembly function directly callable.
That would 'disa
Philip Smith wrote:
>
> Conventions on type conversion are just one example. Without using
> strict coding conventions the richness of the language could, and
> often did, result in ambiguity. In my experience too C++ has
> defeated its own object (eg portability) - I've given up in many
> cases
Hello!
You should at least close the 'try' block, which you started
at line 68 (if i'm not mistaken):
def _whois(domainname, whoisserver):
s = None
## try until we are connected
while s == None:
try:
There is no corresponding 'except' till DomainRecord class
definition.
On Sun, 13 Mar 2005 09:25:43 -0800, jrlen balane wrote:
> i am working on an MDIParentFrame and MDIChildFrame. Now, what i want
> to do is make the ChildFrame not that easy to close by removing the
> close button (the X on the right most corner of the window) if this is
> possible...
>
> how am i
> >Have you read the BDFL's "Python Optional Typechecking Redux" ?
>
> Yes.
>
> >(http://www.artima.com/weblogs/viewpost.jsp?thread=89161)
> >It's usage of adapt assumes that "a class is a protocol", so I
> >guess that it does not work with the new version of PEP 246.
>
> Why not? There's nothin
I am sure this is old news, the syntax of python is crazy to me.
There I said it, I'm sure I'll get over it or around it.
I was trying to make a whois script work and was unable.
May be someone with lint-like eyes can tell what's wrong.
Using xemacs I had hoped that python mode would do more
for
Marek Franke wrote:
too. The whole project is just for fun. Afaik Freevo and/or MythTV are
written in C/C++ and don't have any support for joysticks (afaik!). And the
Freevo is pure python already ;)
Greetings, Roland
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 13 Mar 2005 10:46:52 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
>Bengt Richter wrote:
>> Sorry for jumping in with a largely irrelevant comment. I didn't look
>> at the code, just sought to illustrate the 6/18 thing further, in a kneejerk
>> reaction.
>> Though BTW FWIW the visual seq
> Be sure to check out freevo at http://freevo.sourceforge.net/ as it is
> quite similar to what you are describing and they are quite far along.
>
> max
Yes, there are a lot of projects like LMMS, just take a look at
www.freshmeat.net or www.sourceforge.net. Or MythTV is something like LMMS
too.
Hello all, I am still needing some help on this code, I have gone a bit
further on it. Thank you for the help. I am trying to understand how to
make the file searchable and how I am to make the deposit and withdrawl
interact with the transaction class.
class Account:
def __init__(self, initia
Joe wrote:
> On 13 Mar 2005 01:13:00 -0800, [EMAIL PROTECTED] wrote:
>
>>You should definitely have a look at Zope 3. There is good
>>documentation available and it can do a lot of good stuff.
>
> But then, the thing I hate about Zope, is that source code is not
> accessible with normal developm
Marek Franke wrote:
> Hi there,
>
> we have started with some people from our LUG (Linux User Group) a
'little'
> project, called LMMS (Linux Multimedia System). When it's 'finished'
it
> shall be a window-manager for use on TV and handle with
joysticks/gamepads.
>
> As the name says, it is for mu
On 13 Mar 2005 01:13:00 -0800, [EMAIL PROTECTED] wrote:
>You should definitely have a look at Zope 3. There is good
>documentation available and it can do a lot of good stuff.
But then, the thing I hate about Zope, is that source code is not
accessible with normal development tools since it's stu
No, I don't even know how to get it under Windows (usually I use
Linux). Switching to the US keyboard
does not help, anyway. I get the same error.
Michele
--
http://mail.python.org/mailman/listinfo/python-list
Hi there,
we have started with some people from our LUG (Linux User Group) a 'little'
project, called LMMS (Linux Multimedia System). When it's 'finished' it
shall be a window-manager for use on TV and handle with joysticks/gamepads.
As the name says, it is for multimedia-applications, like list
i am working on an MDIParentFrame and MDIChildFrame. Now, what i want
to do is make the ChildFrame not that easy to close by removing the
close button (the X on the right most corner of the window) if this is
possible...
how am i going to do this?
--
http://mail.python.org/mailman/listinfo/python
Wow, thanks so much guys!
"Michael Spencer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Brian Kazian wrote:
>> Thanks for the help, I didn't even think of that.
>>
>> I'm guessing there's no easy way to handle exponents or logarithmic
>> functions? I will be running into thes
@ sir Peter
so you mean that it is correct (at least on the unpack() part)
when i run this program on IDLE , Python 2.3 (enthought edition),
nothing is outputted on the shell, until i decide to close the shell,
wherein it tells me if i would like to kill a process...
import serial
import string
Hello,
Sorry for this maybe stupid newbie question but I didn't find any
answer in all my readings about python:
With urllib, using urlretrieve, it's possible to get the number of
blocks transferred and the total size of the file.
Is it possible to get those informations with urllib2 ?
( I have
Almost this exact parser, called fourFn.py, is included in the examples
with pyparsing (at http://pyparsing.sourceforge.net). Since it is pure
Python, you can extend the grammar with whatever builtin functions you
like. But it *is* a parser, not just a short cut.
-- Paul
--
http://mail.python.
D H wrote:
Peter Hansen wrote:
Dave Zhu wrote:
Is there any survey on scripting languages? I would
like to get information on several scripting languages
including Python, Perl, Ruby, Tcl, etc.
What kind of information? ...
See the other responses to his question.
Why would I want to do that? Did
Hi,
I'm using NumPy to build an array of a
list of names that will be of multiple
dimensions.I did do a google on this
subject, but couldn't find what I was looking
for. The problem I'm having is there are
space between each character in each name.
To fix this
I used the attribute 'tostring'. Thi
I have a tkinter 'Text' and 'Scrollbar' connected and working
normally. When a new line of text is inserted (because I'm monitoring
an output stream), I'd like the text and scrollbar to be scrolled to
the bottom, so the latest line of text is always shown. How to do
this? Thanks,
--
Benjamin Ru
D H wrote:
Ask on the wxpython or python-tutor list instead of this one. You'll
get better help than there as you've already found out.
Not likely. IMHO he got the best help he could possibly
have gotten, but clearly that's debatable. :-)
The only thing I'd agree with is what Michael Hoffman sai
I'd say Nevow! For apache setup, you might be interested in my wsgi [1]
implementation.
[1]
http://twistedmatrix.com/pipermail/twisted-web/2005-March/001293.html
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
What I am trying to do is get information
from a raised custom exception. I am catching the exception in a
main() function but it was actually raised in a separate module
function. It would be nice if I could print out where the exception
was raised from (module.functio
Dennis Lee Bieber wrote:
rx_data1=0
while (rx_data1 != 0x46):
rx_data1 = ser.read(1)
(rx_command) = unpack('1B', rx_data1)
Isn't this unpack rather redundant -- assuming ser.read(1) only
reads one byte, then rx_data1 and rx_command would be identical.
Brain fart... unpack converts the raw
1 - 100 of 139 matches
Mail list logo