Re: [Pythonmac-SIG] XML Parsing

2009-02-07 Thread Bryan Smith
alternates in parenthesis. I think this is an xpath > 1.0 > vs. xpath 2.0 issue. Saxon is the only thing that supports 2.0. The perl, > python > and java libraries only support xpath 1.0. > > This sort of expression did work using xpath 2.0 (in oxygen editor): > >//a

[Pythonmac-SIG] XML Parsing

2009-02-06 Thread Bryan Smith
Hi everyone, I have another question I'm hoping someone would be kind enough to answer. I am new to parsing XML (not to mention much of Python itself) and I am trying to parse an XML file. The file I am trying to parse is this one: http://ws.audioscrobbler.com/2.0/user/bryansmith/topalbums.xml. S

Re: [Pythonmac-SIG] wx Window Flashes and Closes Immediately

2009-02-01 Thread Bryan Smith
Oh my, I feel kind of dumb. I can't believe I spent time stewing over that. Thanks! On Sun, Feb 1, 2009 at 11:50 PM, Cody Precord wrote: > Hello, > > On Feb 1, 2009, at 10:42 PM, Bryan Smith wrote: > > Hi Everyone, >> >> I am trying out a simple wx program from

[Pythonmac-SIG] wx Window Flashes and Closes Immediately

2009-02-01 Thread Bryan Smith
Hi Everyone, I am trying out a simple wx program from a book and anytime I try and run the code, the wxFrame flashes open and closes immediately. This is frustrating as the code is essentially the same as in the book. Here is the code for your viewing pleasure: import wx class wxTest(): def

[Pythonmac-SIG] py2app and Terminal

2008-12-24 Thread Bryan Smith
Hi everyone, I am just finishing up an application and I would like to create an app file for my program. That said, it's CLI based with no GUI. If I try to make an app, it only seems to work if I have a GUI. Is it possible to tell py2app to open Terminal.app first and run my program through that?