On 3/3/08, Mike D <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm using XML Reader (xml.sax.xmlreader.XMLReader) to create an rss
> reader.
>
> I can parse the file but am unsure how to extract the elements I require.
> For example: For each element I want the tit
\>ftype python.file
python.file="C:\Python25\python.exe" "%1" %*
I am using Python 2.5.2 from http://www.python.org/ running on Windows
Vista. Would ActiveState's version be a better choice here?
~Mike
--
http://mail.python.org/mailman/listinfo/python-list
> If you run a python file, ie. just double clicking it the only
> argument you will have will be the filename of the script. If you
> create a shortcut to the script and in the target box add your
> arguments (if you have quotation marks place them after not inside)
> you will see your arguments
I am having some problems with command line arguments in Windows. The same
code under Linux works fine.
In Windows I only get one argument no matter how many arguments are passed
on the command line. I think there is some problem with the way the .py
files are associated causing this. I'm just
> So my question is this - what is the easiest way to interface to this
> "serial" device?
>
http://pyserial.sourceforge.net/
or perhaps
http://pyusb.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
match.groups()[0] = "Activity_Time"
time_manips = ("""COMPUTE %s = SUBSTR(%s,(INDEX(%s,'T'))+1) .
COMPUTE %s = number(%s, TIME8).
VARIABLE LABEL %s.
VARIABLE LEVEL %s (SCALE).
FORMATS %s (TIME8).
VARIABLE WIDTH %s (8).
EXECUTE.""") %(Var, Var,
Var,time_variables[Var],Var,time_variables[Var],time_variables[Var],time_variables[Var],time_variables[Var])
print(time_manips)
All help welcome, or if a different approach is better please let me
know
Mike
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm using XML Reader (xml.sax.xmlreader.XMLReader) to create an rss reader.
I can parse the file but am unsure how to extract the elements I require.
For example: For each element I want the title and description.
I have some stub code; I want to create a list of objects which include a
the server?
>
> Just to close the loop I think think this is a problem with the ssh
> server.
>
> ~Sean
If it's not the server, then please post the issue to the wxPython
list. They can probably help:
http://wxpython.org/maillist.php
Mike
--
http://mail.python.org/mailman/listinfo/python-list
simple as installing the appropriate compat-* libraries.
Is this possible? If so, what are the steps to do it? Has anyone
ever tried to do something similar?
I apologize if this is a ridiculously simple question, but things like
this always throw me for a loop.
Thanks in advance for any assi
c.sabren.com/python/wmi_cookbook.html
Tell us what you want to do and we'll tell you if (and maybe how) you
can do it with Python.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
th the code that Robert gave you. I'm not sure of
the exact syntax, but I would think you could do an IF statement that
creates the custom definition and returns it if Python 2.4 or less is
installed and return the normal version for 2.5 if it is installed.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
at the beginning of your file by importing the sys
module. Something like this:
# untested
import sys
version = sys.version.split(' ')[0]
if '2.5' not in version:
# use custom all() script
HTH
Mike
--
http://mail.python.org/mailman/listinfo/python-list
his in a cross-platform way:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134892
And a Windows only module:
http://effbot.org/librarybook/msvcrt.htm
HTH
Mike
--
http://mail.python.org/mailman/listinfo/python-list
7;s sat on my "would be nice" list for a long
time. Unlike separate lexing/parsing systems, it's a little more
involved for SimpleParse to do that without losing the generality of the
parsing approach (i.e. the flexibility of a non-lexed approach).
HTH,
Mike
--
http://mail.python.org/mailman/listinfo/python-list
efer exiv2 as it is much
> faster:http://picurl.net/development/wiki/Exiv2vsExifTool
>
> I hope this gives enough pointers for people to bring EXIF & IPTC
> support to Python and Phatch.
>
> Good luck,
> Stani
> --
> Phatch - PHoto bATCH processor -http://photobatch.stani.be
> SPE- Python Editor & IDE -http://pythonide.stani.be
I'll keep you posted,
Mike
--
http://mail.python.org/mailman/listinfo/python-list
t;&"/"@")
word:= [a-zA-Z], [a-zA-Z0-9_]*
the ?- lookahead is reasonably inefficient, but lookahead is always
going around discarding partial results anyway, so it's no worse than
most other formulations.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 22, 2:39 am, "SPE - Stani's Python Editor"
<[EMAIL PROTECTED]> wrote:
> On Feb 22, 1:41 am, Mike Driscoll <[EMAIL PROTECTED]> wrote:
>
> > On Feb 20, 4:19 am, Stani <[EMAIL PROTECTED]> wrote:
> > > Even without python-pyexiv2 Phatch feat
guy's been doing it for a while now as a college course:
http://mcsp.wartburg.edu/zelle/python/python-first.html
Mike
--
http://mail.python.org/mailman/listinfo/python-list
import servicemanager
>
> servicemanager.LogInfoMsg("aservice - Recieved stop signal")
> self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING)
> self.isAlive = False
>
> if __name__ == '__main__':
> win32serviceutil.HandleCommandLine(BlobCheck)
I would recommend cross-posting this to the PyWin32 mailing list.
They'll either know what to do or tell you you can't. You can sign up
here: http://mail.python.org/mailman/listinfo/python-win32
Mike
--
http://mail.python.org/mailman/listinfo/python-list
can give me advice.
>
> But... Phatch is designed with flexibility in mind. If someone can point me
> to a
> free python library for Windows for EXIF and other metadata, I'll be happy to
> integrate support for it in Phatch. Ideas anyone?
>
> Or you could write a python wrapper around the executable.
>
> Stani
> --
> Phatch -http://photobatch.stani.be
> SPE -http://pythonide.stani.be
Thanks,
Mike
--
http://mail.python.org/mailman/listinfo/python-list
he wxPython list where you'll get wx geeks to
answer your question and you can learn a lot from them too. Here's a
link where you can sign up: http://wxpython.org/maillist.php
Mike
--
http://mail.python.org/mailman/listinfo/python-list
nvention, this argument is always named self. In the __init__
method, self refers to the newly created object; in other class
methods, it refers to the instance whose method was called. Although
you need to specify self explicitly when defining the method, you do
not specify it when calling the method; Python will add it for you
automatically."
Hope that helps.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
ut the
> > lib he includes? Same folder as the example?
>
> Library modules (like Pmw) generally belong in site-packages (/usr/lib/
> python2.x/site-packages in most unixes... not sure about windows).
>
> HTH,
>
> Pete
On Windows, most packages go here (adjust as needed for your setup):
C:\Python24\Lib\site-packages
Mike
--
http://mail.python.org/mailman/listinfo/python-list
think is now included with Python be default from 2.4 on up. It
should be noted that PMW is not included with the standard Python
distro though.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
DELETE_WINDOW" in Tkinter. The following article details its usage
near the bottom of the page under the heading "Protocols":
http://www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm
It actually mentions your problem specifically. I've never done it as
I
On Feb 16, 3:06 pm, Vamp4L <[EMAIL PROTECTED]> wrote:
> Thanks Mike,
> Simple enough! I was wandering about the close method too, I had to
> hack that together from what I knew about python already. I'll be
> sure to join that mailing list.
If you get the chance, che
Wayne Watson (Nevada City, CA)
>
> Web Page:
wxPython can do a right-click menu like that and I know that PIL has
been integrated into it as well. They have a Demo on the wxPython.org
website that shows off all the official widgets as well as some custom
scripts. If yo
parent
Then change your close event handler to this:
def OnButtonClose(self, evt):
dlg = wx.MessageDialog(self, "Are you sure you want to exit?",
"Exit", wx.YES_NO | wx.ICON_QUESTION)
if dlg.ShowModal() == wx.ID_YES:
self.frame.Close()
dl
-4
>
>
> --HTML Example End--
Pyparsing, ElementTree and lxml are all good candidates as well.
BeautifulSoup takes care of malformed html though.
http://pyparsing.wikispaces.com/
http://effbot.org/zone/element-index.htm
http://codespeak.net/lxml/
Mike
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 13, 8:05 am, Juan_Pablo <[EMAIL PROTECTED]> wrote:
> import win32com.client
> is posible in linux ?
No. It's a Windows only Python extension.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
I have a simple requirement: A user belongs to groups and groups contain
items.
Based on user/group I want to display items.
Based on user I want to display groups.
What would be the best method of implementing this? A dictionary of objects?
I'd usually just use a database but I feel it's quite
flag IDLE when I first installed Python, so if you
upgraded it recently, the firewall may be an issue.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
I was just trying to do it with the CSV module
--
http://mail.python.org/mailman/listinfo/python-list
Hi Chris that's exactley what i wanted to do,
Many thanks
--
http://mail.python.org/mailman/listinfo/python-list
just saw i needed to change record.startswith to row.startswith
but i get hte following traceback error
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\pythonwin\pywin\framework
\scriptutils.py", line 310, in RunScript
exec codeObject in __main__.__dict__
File "Y:\te
dule description but i can't find anything that
i hould be using?
Can anyone offer an advice?
Cheers again
Mike
working_CSV = "//filer/common/technical/Research/E2C/Template_CSV/
DFAExposureToConversionQueryTool.csv"
save_file = "//filer/common/technical/Research/E2C/Templa
On Feb 11, 2008 12:14 PM, Guilherme Polo <[EMAIL PROTECTED]> wrote:
> 2008/2/11, Mike Driscoll <[EMAIL PROTECTED]>:
> > On Feb 10, 6:41 am, Janwillem <[EMAIL PROTECTED]> wrote:
> > > Guilherme Polo wrote:
> > > > 2008/2/10, Janwillem &l
(it's pascal and freepascal has a problem I have to dive
> into).
What is your application supposed to do? In the meantime, I recommend
looking at this control:
http://xoomer.alice.it/infinity77/main/ThumbnailCtrl.html
You can probably get what you need from it. I also highly recom
Cheers for the help, the second way looked to be the best in the end,
and thanks for the boolean idea
Mike
working_CSV = "//filer/common/technical/Research/E2C/Template_CSV/
DFAExposureToConversionQueryTool.csv"
save_file = open("//filer/common/technical/Research/E2C/Template
nes number where i can see Transaction ID and
then write out everything from this point into a new datafile.
Would a better solution be just to use readlines and search for the
string with a counter and then write out a file from there?
Any help is greatly appreciated
Mike
working_CSV = "
obvioulsy
this doesn't work but any help would be great.
import csv
f = file(working_CSV, 'rb')
new_data = 0 # a counter to find where the line starts with
"Transaction ID"
reader = csv.reader(f)
for data in reader:
read data file
write new CSV
Cheers
Mike
--
http:/
t; Any help and explanation or code sample GREATLY appreciated.
>
> Do I have to rewrite class I am using (CLI client) to work with
> threads to make this happen
>
> Thanks,
This is a confusing post as Dennis pointed out. I am glad he was so
analytical. Anyway, if you had post
sorry i meant a code example that i pass the id_dsa.pub file contents
too
so i am not reliant on the host system to have the ssh-agent.
On Feb 6, 3:09 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> Mike Hjorleifsson wrote:
> > Thanks for the response, is there an exam
Thanks for the response, is there an example bit of code somewhere i
could digest ?
On Feb 6, 1:35 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > I wrote a lil module using paramiko's module to send a file via
> > sftp.. it works great using the username and password.
> > I would prefer to u
I wrote a lil module using paramiko's module to send a file via
sftp.. it works great using the username and password.
I would prefer to use id_dsa.pub to have an autologon and not save
the
password anywhere on the disk.. I cant find a good example of this.
Can anyone help ?
--
http://mail.python.
At first glance it looks like a replace for _button_cart with the
dictionary items listed in the curly braces
and stuffing them into a list item (cartitems)
On Feb 2, 8:47 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> > for item in cart.values():
> > v = _button_cart % {"idx": idx,
on windows you can put this in HKEY_Local_Machine\Software\Microsoft
\Windows\Current Version\Run and it will run at logon (or fast user
switch) for each user
or if you only want to do it for a specific user you need to determine
their CSLID and put it in the same locale under the HKEY_USERS\Users
Anyone know how to get idle working on OSX 10.5 (Leopard) ?
--
http://mail.python.org/mailman/listinfo/python-list
maller problem domain than optimising *every* language).
> And is it possible to use IronPython in Linux?
>
Yes, running on Mono, though again, I don't believe Mono has had the
optimisation effort put in to make it competitive with MS's platforms.
Just my view from out in the boonies,
Mike
--
http://mail.python.org/mailman/listinfo/python-list
o
that there's some Linux variant out there that will display the
minimize button regardless.
If all you want is a non-modal dialog, you might look at the wx.Dialog
widget or one of the popup widgets. There's also a Toaster widget...
I found this link about Tkinter:
http://mail.
ur import until after you
have the context setup and see if that lets glGetString return a valid
pointer.
HTH,
Mike
--
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
--
http://mail.python.org/mailman/listinfo/python-list
In a comment Guido made on a recent bug report for the 'freeze'
utility, he stated:
"I think nobody really cares about freeze any more -- it isn't
maintained."
That being the case, what is the preferred/best replacement for freeze
on a *nix platform? I'm looking for something that, like freeze,
ugh it would be much
safer.
I'll continue to investigate, thanks for your input.
On Feb 1, 2008 11:00 AM, Steve Holden <[EMAIL PROTECTED]> wrote:
> Mike D wrote:
> > Steve,
> >
> > Thanks for the response. My question really comes down to, as you
> > suggest
? Really?
I think I should have said process start up, for example a long running
process that can supply the object to new ones, loaded on webserver start
up.
I appreciate comments, It is purely so I can understand python and program
design better.
Regards,
Mike
On Feb 1, 2008 12:09 AM, S
ble, what would be a good way of providing a new structure as it is
updated.
If anyone could give me some advice or point me in the correct direction I'd
really appreciate it.
Thanks in advance,
Mike.
--
http://mail.python.org/mailman/listinfo/python-list
n a file or "file-like" object
and have your other thread read from it periodically. I'm not sure
that the link above mentions that.
Hope that helps!
Mike
--
http://mail.python.org/mailman/listinfo/python-list
't a hypothetical question?
> steveo at syslang.net
I think the issue is that you are using the old style of wxPython. The
new style is wx.Something, so in this case, you want wx.NewId(). See
sample code below:
import wx
new_id = wx.NewId()
This helps the developer know what library that funct
7.1
What OS and wxPython version are you using?
You may want to post to the wxPython user's group too. They can tell
you if it is an OS dependent bug or not: http://wxpython.org/maillist.php
Mike
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 26, 7:23 am, Dox33 <[EMAIL PROTECTED]> wrote:
> I ran into a very strange behaviour of raw_input().
> I hope somebody can tell me how to fix this.
===CUT===
> *** Thirst, redirect stderr to file, STRANGE behaviour..
> From the command prompt I run:
> python script.py 2> stderr_catch.txt
gt; Could anyone suggest any really good program ideas and information on
> how to implement them? I heartily welcome any good ideas.
Why not do a search on SourceForge and see what's being programmed in
Python? Then you could get ideas and/or join some of those projects.
Mike
--
htt
:00 AM" - (the trick for the date types in Perl is to add: "use
> Win32::OLE::Variant;"
>
> There has to be a way:^)
>
> snip
You could try posting to the PyWin32 group too. They would probably
know.
http://mail.python.org/mailman/listinfo/python-win32
Mike
--
http://mail.python.org/mailman/listinfo/python-list
:00:00
>
> What do I to get exactly what's in the field?
>
> Thanks,
>
> Lee G
I don't know for sure, so I practiced my Google-Fu and found this
recipe which might be of use to you:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52267
I also found this script, w
On Jan 24, 5:13 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "Ben Finney" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
> | Mike Kent <[EMAIL PROTECTED]> writes:
> |
> | > A bug issue has been opened in the Python Trac
> If it weren't for the documentation...
>
> "If the prompt argument is present, it is written to *standard output*
> without a trailing newline."
>
> --
> mvh Björn
I have reported this issue to the python-dev mailing list, and Guido
agrees that this is a bug in Python. It turns out that the ke
ember of
> something like that in C++ but I cant find anythin like that for python.
>
> SMALLp
See the try statement:
http://docs.python.org/ref/try.html
http://www.network-theory.co.uk/docs/pytut/HandlingExceptions.html
http://docs.python.org/api/exceptionHandling.html
Mike
--
http://
k you
can just use the latest version. Just download it, unzip it somewhere
convenient and then navigate to that location using the command line.
Then type the following (as long as Python is in your system path):
python setup.py install
or if Python isn't on your path:
path\to\python\python
ia perl,
>
> Thanks,
>
> Barry.
If you want to do this in Perl, then why are you asking on a Python
list? In Python, there are many ways to accomplish this task. Take a
look at SQLAlchemy, SQLObject, pymssql or the adodb package.
http://pymssql.sourceforge.net/
www.sqlalchemy.org
http
pen exes or
pictures, but most files that are in plain text it opens with no
problem. Editra has its own site: http://editra.org/
The mailing list for wxPython can be found here:
http://wxpython.org/maillist.php
Mike
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel, thank you for clarifying the source of this behavior. Still,
I'm surprised it would be hard-coded into Python. Consider an
interactive program, that asks the user several questions, and
displays paragraphs of information based on those questions. The
paragraphs are output using print, a
It's often useful for debugging to print something to stderr, and to
route the error output to a file using '2>filename' on the command
line.
However, when I try that with a python script, all prompt output from
raw_input goes to stderr. Consider the following test program:
=== Start test.py ===
On Jan 22, 5:31 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
> On Jan 22, 10:57 am, Mike Driscoll <[EMAIL PROTECTED]> wrote:> Hi,
>
> > I need to parse a fairly complex HTML page that has XML embedded in
> > it. I've done parsing before with the xml.dom.minid
0, in -toplevel-
for row in tree.iterfind("//Row"):
AttributeError: 'etree._ElementTree' object has no attribute
'iterfind'
Is there some kind of newer version of lxml?
Mike
--
http://mail.python.org/mailman/listinfo/python-list
John and Stefan,
On Jan 23, 5:33 am, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Mike Driscoll wrote:
> > I got lxml to create a tree by doing the following:
>
> > from lxml import etree
> > from StringIO import StringIO
>
> > parser = etree
On Jan 23, 9:03 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> print "foo"
> print "bar"
>
> has a newline in between "foo" and "bar"
>
> print "foo",
> print "bar"
>
> has a space in between "foo" and "bar"
>
> How prevent ANYTHING from going in between "foo" and "bar" ??
>
> (Without defini
fUnseparablePythonSymbols
I can't get it to load unless I use Google's cached version though.
Hope that helps and that I'm not too far off the mark!
Mike
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 22, 3:35 pm, Stef Mientki <[EMAIL PROTECTED]> wrote:
> Mike Driscoll wrote:
> > On Jan 17, 3:56 pm, Stef Mientki <[EMAIL PROTECTED]> wrote:
>
> >> hello,
>
> >> I've a program (not written in Python) that generates a few thousands
>
l import etree
from StringIO import StringIO
parser = etree.HTMLParser()
tree = etree.parse(filename, parser)
xml_string = etree.tostring(tree)
context = etree.iterparse(StringIO(xml_string))
However, when I iterate over the contents of "context", I can't figure
out how t
; > Joel
> > P.S. Please CC a copy of reply to my email ID if possible.
IDLE does breakpoints...you might fine the ActiveState distro more to
your liking too. It's a little bit more fleshed out as an IDE than
IDLE is. Or you could go full blown and use Eclipse with the Python
plug-in.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
. Can someone give me some pointers?
I am currently using Python 2.5 on Windows XP. I will be using
Internet Explorer 6 since the document will not display correctly in
Firefox.
Thank you very much!
Mike
--
http://mail.python.org/mailman/listinfo/python-list
y files?
You should also check out the py2exe website as it has a tutorial, a
link to their mailing list, etc:
http://www.py2exe.org/
Mike
--
http://mail.python.org/mailman/listinfo/python-list
ore I knew the name IIRC)).
> P.S. we have revived a thread started in 1999!
>
For some of us 1999 is well into our Pythonic life-cycle :)
Have fun,
Mike
--
____
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http:
that
> in windows. Or to get to their "Documents and Settings" directory?
>
> Thanks in advance for the help.
>
> -Daniel Folkes
I personally use Tim Golden's excellent win32 API wrapper, the
winshell script. You can find it here:
http://timgolden.me.uk/python/winshell.html
Mike
--
http://mail.python.org/mailman/listinfo/python-list
hink the OP may be referring to this:
6-11 Conversion.
(a) Create a program that will convert from an integer to an
Internet Protocol (IP) address in the four-octet format of WWW.XXX.YYY.ZZZ
(b) Update your program to be able to do the vice verse of the
above.
It could be a 12 digit
ux user #458601 -http://counter.li.org.
Well, there's DocUtils:
http://docutils.sourceforge.net/
And here are some others:
http://peak.telecommunity.com/protocol_ref/protocols-example1.html
And finally, there's this:
http://www.python.org/community/sigs/current/doc-sig/otherlangs/
Mike
--
http://mail.python.org/mailman/listinfo/python-list
ges.html
This old post also mentions something similar:
http://mail.python.org/pipermail/python-list/2007-October/463065.html
And here's a cookbook recipe that claims to do it as well using
decorators:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/426620
Hopefully that will get you going.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 16, 12:45 pm, "Erik Lind" <[EMAIL PROTECTED]> wrote:
> "Mike Driscoll" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
>
> > On Jan 15, 2:20 pm, "Erik Lind" <[EMAIL PROTECTED]> wrote:
> >> That
On Jan 15, 2008 5:08 PM, Astan Chee <[EMAIL PROTECTED]> wrote:
>
> Mike Driscoll wrote:
> On Jan 14, 9:02 pm, Astan Chee <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> I have a python module that keeps on crashing with various windows
> errors (not BSOD but the les
On Jan 15, 2:20 pm, "Erik Lind" <[EMAIL PROTECTED]> wrote:
> That all looks cool. I will experiment more. I'm a bit slow on this as only
> two weeks old so far.
>
> Thanks for the patience
No problem. I'm pretty slow with some toolkits too...s
te has a special version of Python that includes a
COM browser and you can install it without harming your current
installation. At least, I've had no problems. Other than that, you'll
probably be spending a lot of time on MSDN.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
ample, "press any button to stop"
>
> def HandleSomething(self, event):
> .
> while generating_control: == something:
> run
> else
> stop
I forgot to provide a link to a fairly straight-forward explanation of
event propagati
print 'Stop!'
event.Skip()
def onDone(self, event):
print 'Done!'
if __name__ == '__main__':
app = wx.PySimpleApp()
Closer().Show()
app.MainLoop()
FYI: There is an excellent wxPython group that you can join over on
the wxPython.org website.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
al program
> to restart python everytime it crashes?
> Thanks again for all the help.
> Astan
If you're not going to catch the error that is causing the crash, then
I think your only option is to restart your application with an
external program. However, maybe someone else will have a b
python's user
group, which you can find at the wxPython website: www.wxpython.org
Mike
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 12 Jan 2008 10:45:25 -0800 (PST) Richard Szopa <[EMAIL PROTECTED]>
wrote:
> Hello all,
>
> I am playing around w/ Python's object system and decorators and I
> decided to write (as an exercise) a decorator that (if applied to a
> method) would call the superclass' method of the same name
On Sat, 12 Jan 2008 16:13:08 +0100 "Jorgen Bodde" <[EMAIL PROTECTED]> wrote:
> > Normally you'd split up the bulk of the code into a module which gets
> > installed into site-packages and a piece of stand-alone front-end code which
> > imports the module and executes whatever you need to do and get
On Fri, 11 Jan 2008 20:55:07 -0800 (PST) George Sakkis <[EMAIL PROTECTED]>
wrote:
> On Jan 11, 5:24 pm, Mike Meyer <[EMAIL PROTECTED]>
> wrote:
> > On Fri, 11 Jan 2008 14:05:11 -0800 (PST) George Sakkis <[EMAIL PROTECTED]>
> > wrote:
> > > I mainta
ot;If you ever teach a yodeling class, probably the hardest thing |
> `\ is to keep the students from just trying to yodel right off. |
> _o__) You see, we build to that." -- Jack Handey |
> Ben Finney
I would recommend Lutz's other book, the wonderfu
On Fri, 11 Jan 2008 18:11:41 -0500 "Faber J. Fedor" <[EMAIL PROTECTED]> wrote:
> On 10/01/08 22:53 -0500, Mike Meyer wrote:
> > Personally, I think it would be more pythonic to not try and use two
> > different APIs to walk the list of jobs (... One Way To Do
On Sat, 12 Jan 2008 09:47:26 +1100 Ben Finney <[EMAIL PROTECTED]> wrote:
> Paul Sijben <[EMAIL PROTECTED]> writes:
> > I know that I can not stop a dedicated hacker deconstructing my code.
> A direct consequence of this is that you can not stop *anyone* from
> deconstructing your code if it's in t
On Fri, 11 Jan 2008 22:18:22 GMT Neil Hodgson <[EMAIL PROTECTED]> wrote:
> Marty:
> > I recently faced a similar issue doing something like this:
> > data_out = []
> > for i in range(len(data_in)):
> > data_out.append([])
>
> Another way to write this is
> data_out = [[]] * le
901 - 1000 of 2746 matches
Mail list logo