Re: [Pythonmac-SIG] Installing wxPython with ActivePython and OSX

2006-04-24 Thread Louis Pecora
Kevin Ollivier wrote: > Hi Trent, Bob, etc. > > Sorry for the late reply. It's been a busy week. I've altered > wxPython's downloads page to hopefully be clearer and more up-to- > date. As for the ANSI/Unicode issue, I made Unicode a little more > prominent but ANSI still gets quite a lot of d

Re: [Pythonmac-SIG] wxPython -- some disappointment using it.

2006-04-18 Thread Louis Pecora
Christopher Barker wrote: > Louis Pecora wrote: >> I really do numerical calcs, but occasionally need a simple GUI >> dialog or open a window to plot in (very simple) > > Take a look at wxmpl. It helps you embed a matplotlib window in a > wxPython app. It's pretty ha

Re: [Pythonmac-SIG] wxPython -- some disappointment using it.

2006-04-13 Thread Louis Pecora
Alex Tweedly wrote: > > I'm pretty clueless about how everything (including the whole > "framework" thing) fits together on OS X, but I'd suggest trying this ... > > run python, and do > >> import sys >> print sys.path > > and see if it contains the PythonCard directory as you expect it. If > it

Re: [Pythonmac-SIG] wxPython -- some disappointment using it.

2006-04-13 Thread Louis Pecora
Alex Tweedly wrote: > > You should also look, then, at Pythoncard ( www.pythoncard.org ) > Excellent for simple UIs, simple for excellent UIs :-) > Got it, ran sudo python setup.py install, seemed to go OK. Ran minimaltest and it could not find PythonCard module. I have a path to the PythonCard

Re: [Pythonmac-SIG] wxPython -- getting Traceback on errors (was: some disappointment using it.)

2006-04-13 Thread Louis Pecora
Charles Hartman wrote: > It occurs to me that if you added an OnExit() handler to your app -- > any app that's giving quit-too-soon trouble. The handler could simply > put up a wx.MessageBox, which gets an OK from the user. This would > pause the app on the way out, and therefore permit the norm

Re: [Pythonmac-SIG] wxPython -- some disappointment using it.

2006-04-12 Thread Louis Pecora
Alex Tweedly wrote: > Louis Pecora wrote: > > >> Thanks for the link and the hint on boa. I've heard of the latter, but >> >> never looked into it. I really do numerical calcs, but occasionally >> need a simple GUI dialog or open a window to plot in (very

Re: [Pythonmac-SIG] wxPython -- some disappointment using it.

2006-04-12 Thread Louis Pecora
Stewart Midwinter wrote: > > thank you Charles, thank you Saggau (and thank you Daniel for posing > the question). I'm also new to wxPython, though I've been working > with Wax (a more pythonic layer on top of wxPython) for some months > now), and I also was having a devil of a time trying to deb

Re: [Pythonmac-SIG] wxPython -- some disappointment using it.

2006-04-12 Thread Louis Pecora
Mark Thalman wrote: > Louis, > > If you don't need cross-platform compatibility, why not use EasyDialogs? > > http://python.org/doc/2.4.1/mac/module-EasyDialogs.html > Yes, I've messed with them a little. Really very nice ... and tempting. I'm on the fence. I got this wxPython book and it look

Re: [Pythonmac-SIG] wxPython -- some disappointment using it.

2006-04-12 Thread Louis Pecora
Kevin Ollivier wrote: > Hi Louis, > > On Apr 11, 2006, at 2:43 PM, Louis Pecora wrote: > >> I bought the wxPython in Action book and started trying the simple >> examples in Chap. 1. One thing I have run into is rather >> disappointing. Many errors (e.g. I typed

Re: [Pythonmac-SIG] wxPython -- some disappointment using it.

2006-04-12 Thread Louis Pecora
Saggau wrote: > Charles is right: > http://www.wxpython.org/docs/api/wx.App-class.html > > Have you looked at boa-constructor on sourceforge? > boa-constructor.sourceforge.net > > I used to use it when I was a bigger-than-I-am-now linux geek and > found it

[Pythonmac-SIG] wxPython -- some disappointment using it.

2006-04-11 Thread Louis Pecora
I bought the wxPython in Action book and started trying the simple examples in Chap. 1. One thing I have run into is rather disappointing. Many errors (e.g. I typed return true, instead of return True) do not give the beloved Python tracback. That's one of the nice things that made me choose

Re: [Pythonmac-SIG] Help

2006-04-11 Thread Louis Pecora
> >> I am new to Python and find it fascinating but am having a >> difficult time finding out how to >> install it on my imac system. My operating system is Mac OSX 10.4. >> Any suggestion for a newbie? >> >> Many thanks. >> >> Mark >> ___ >>

[Pythonmac-SIG] wxPython book. First example misbehaves on my Mac ?? What's happening?

2006-04-10 Thread Louis Pecora
I just got the wxPython in Action book (Rappin and Dunn). Looks good. I've been fooling around with the first two (very trivial) examples, but their behavior is not what is expected. They run, a window (frame) opens, but then immediately closes and the application quits. No errors. Just "n

Re: [Pythonmac-SIG] Upgrading to Python 2.4 and handling packages (e.g. Numeric, wxPython, etc.)

2006-03-24 Thread Louis Pecora
Christopher Barker wrote: > Louis Pecora wrote: > >>> >> bdist_mpkg >>> >>> at the shell prompt, all by itself (it's a script) should do it. If >>> there is a setup.py in the directory you type that in, it should use >>> it. >>

Re: [Pythonmac-SIG] Upgrading to Python 2.4 and handling packages (e.g. Numeric, wxPython, etc.)

2006-03-23 Thread Louis Pecora
Christopher Barker wrote: > Why don't you build a package out of this? If you install Py2app, you > can run: bdist_mpkg and you'll get a nice package that you can give to > Bob to put on the site. > > OK, I tried this. installed Py2app (2.4.1 Frameworks version) no problem. But now I have trou

[Pythonmac-SIG] Upgrading to Python 2.4 and handling packages (e.g. Numeric, wxPython, etc.)

2006-03-23 Thread Louis Pecora
Info on converting over installed Python packages to non-Apple Python for those who are newbies or are not gurus (includes me): Bob Ippolito was right. When you upgrade to a non-Apple python you have to re-install all the "add-on" packages like Numeric. You also have to set your paths in the

Re: [Pythonmac-SIG] I have Python 2.4.1 but no site packages. What did I miss?

2006-03-23 Thread Louis Pecora
Bob Ippolito wrote: > On Mar 22, 2006, at 1:26 PM, Louis Pecora wrote: > > >> A few months ago I installed (at the prodding of gurus here) Python >> 2.4.1. I tried to use it today (haven't used it for a while since the >> install) and it cannot find Numer

[Pythonmac-SIG] I have Python 2.4.1 but no site packages. What did I miss?

2006-03-22 Thread Louis Pecora
A few months ago I installed (at the prodding of gurus here) Python 2.4.1. I tried to use it today (haven't used it for a while since the install) and it cannot find Numeric. I checked and I have no 2.4 directory (under /Library) for site packages. They're all in the 2.3 directory. Likewise I h

Re: [Pythonmac-SIG] My stab at a new page

2006-02-10 Thread Louis Pecora
Bob Ippolito wrote: > > The largest issue is that you can't legally redistribute the Python > interpreter that ships with Mac OS X, so you can't create standalone > applications. Even if you could, it wouldn't have a chance of being > backwards compatible with the way that Apple builds thing

Re: [Pythonmac-SIG] New Page, first proposal

2006-02-08 Thread Louis Pecora
Charles Hartman wrote: > I'm afraid that you're right about this, and I think it's the biggest > obstacle to the project of getting (non-Unix) Mac users interested in > Python when they go looking for a language, or just looking to get > started on programming. > > Does the old PythonIDE come

Re: [Pythonmac-SIG] Fwd: New Page, first proposal

2006-02-08 Thread Louis Pecora
Charles, First, good start. You've really thought this through and I see the replies are coming fast and hard. Second, Chris Barker ( I called you Baker before, my apologies) had some good replies most of which I agree with. I will add what little I have to his. I think the issue of a st

Re: [Pythonmac-SIG] a beginner's list

2006-02-08 Thread Louis Pecora
Bill Janssen wrote: > I think a "jargon list" is a great idea! > > Bill > ___ > Absolutely. I read a thread that had so much about Eggs and Cheese Shop that I thought I was reading my shopping list. I'm still not quite sure what these are even tho

Re: [Pythonmac-SIG] a beginner's list (Or: everyone's talking; no-one's listening)

2006-02-08 Thread Louis Pecora
Charles Hartman wrote: > > On Feb 8, 2006, at 11:18 AM, Louis Pecora wrote: > > > I'd like to get some feedback on the organization I proposed before I > start trying to flesh anything out. The better the organization before > I start, the less confusing (not to mentio

[Pythonmac-SIG] More on Beginner's list - the 2.4.1 Install

2006-02-08 Thread Louis Pecora
OK, you guys have twisted this non-pro's arm enough. I just installed Python 2.4.1 on my Tiger machine from Bob Ippolito's site (not the active state one, but the framework). Yes, I followed up with the TigerFix install. But I still get Python 2.3.5 when I start python in my terminal. HAHAHA

Re: [Pythonmac-SIG] a beginner's list (Or: everyone's talking; no-one's listening)

2006-02-08 Thread Louis Pecora
has wrote: > So there's two options to this whole "let's market Mac Python" thing. Either > go for the "my way or the highway" approach, which'll largely look after > itself but cater to only a subset of the possible market and let Ruby take > the rest. OR agree to work alongside one another as

Re: [Pythonmac-SIG] install again?

2006-02-06 Thread Louis Pecora
Charles Hartman wrote: > Me & my big mouth. OK, I will take a serious look at the page, and > see whether I can construct something that at least gets to the point > of having blanks that someone with knowledge can fill in. > > Charles > > Charles, It might not be a big job. If you get it

Re: [Pythonmac-SIG] install again?

2006-02-06 Thread Louis Pecora
Christopher Barker wrote: > > I don't think there is blaming: more like expression of frustration and > suggestions for improvement. > > Charles, if you want to help, here's my suggestion: > > Re-write the main pythonmac.org page, then post your version to this > list for discussion. If it is well

Re: [Pythonmac-SIG] install again?

2006-02-06 Thread Louis Pecora
linda.s wrote: > On 2/6/06, Larry Meyn <[EMAIL PROTECTED]> wrote: > >> Create the following text file and save it as ".bash_profile" in your home >> directory. >> --Larry >> >> # .bash_profile >> >> # Get the aliases and functions >> if [ -f ~/.bashrc ]; then >> . ~/.bashrc >> fi >> >> #

Re: [Pythonmac-SIG] Newbie environment questions

2006-01-17 Thread Louis Pecora
Ken, Chris gave some good advice there on reload and iPython. You can also run python from inside some code editors. I use BBEdit (a full featured code editor for $), but plenty of people use TextWrangler (free little brother of BBEdit). You edit the code, select run from a menu (I usually

Re: [Pythonmac-SIG] Best site to get Numeric and wxPython for new Tiger 10.4 install?

2006-01-11 Thread Louis Pecora
Christopher Barker wrote: > Louis Pecora wrote: > >> I am trying to find which Numeric from pythonmac.org/packages/ >> <http://pythonmac.org/packages/> I should use. > > > In theory, you want one in: > Mac OS X 10.4 (stock Python 2.3.5) > > However,

Re: [Pythonmac-SIG] Best site to get Numeric and wxPython for new Tiger 10.4 install?

2006-01-11 Thread Louis Pecora
Opstad, Dave wrote: > On 1/11/06 12:09 PM, "Louis Pecora" <[EMAIL PROTECTED]> wrote: > > > What are the best sites to use to install Numeric and wxPython which > > will be used with the stock, Apple-installed Python? > > http://pythonmac.org/packages/ is

[Pythonmac-SIG] Best site to get Numeric and wxPython for new Tiger 10.4 install?

2006-01-11 Thread Louis Pecora
I just upgraded to Tiger (archive and install) and need to reinstall some of the Python packages. Googling shows many sites some of which are outdated, some ... who knows? What are the best sites to use to install Numeric and wxPython which will be used with the stock, Apple-installed Python?

Re: [Pythonmac-SIG] Solution to some SWIG Install problems on Mac OS X

2005-12-14 Thread Louis Pecora
Christopher Barker wrote: >HI all, > >Perhaps this is getting bit off-topic, but other seemed interested, so here >goes. By the way, I didn't intend to send my whole diatribe about Windows >security to the list, sorry about that. > > Nah. I LOVED it! :-) > Well, matplotlib and wxPython

Re: [Pythonmac-SIG] Distutils for research?

2005-12-13 Thread Louis Pecora
Bob Ippolito wrote: >> >> Bob or anyone, >> >> I have started to look over distutils, but a question immediately comes >> to mind. With the idea of trying to avoid learning what I don't need, >> I gotta ask: >> >> Is distutils more for distributing packages/modules than developing? > > > No, i

Re: [Pythonmac-SIG] Distutils for research?

2005-12-13 Thread Louis Pecora
Bob Ippolito wrote: > > On Dec 13, 2005, at 10:39 AM, Louis Pecora wrote: > >> I will be honest and admit I do not grok disutils. I sense power >> there, >> but have not had the guts nor time to explore it. If you have a simple >> example that is easy

Re: [Pythonmac-SIG] Solution to some SWIG Install problems on Mac OS X

2005-12-13 Thread Louis Pecora
Rob Managan wrote: >While I have not tried WxPython I have built C modules for python >using SWIG and python's distutils. That trades the headaches of >makefiles for writing a setup.py file. I can give an example and they >really are not that bad once you have done it once! > > > I will be ho

Re: [Pythonmac-SIG] Solution to some SWIG Install problems on Mac OS X

2005-12-13 Thread Louis Pecora
Christopher Barker wrote: >Hi Lou, > >I'm glad you got this working. Thanks for posting the resolution to your >problems, it's good to have this stuff archived. If time permits, I hope top >do some SWIGing myself, so perhaps we can help each other out. > > Sounds good to me. I have mostly mad

[Pythonmac-SIG] Solution to some SWIG Install problems on Mac OS X

2005-12-08 Thread Louis Pecora
If you are a newbie or non-guru (like me) and are are having some problems installing SWIG on Mac OS X (10.3.9, but version may not matter for the problems below), you should be aware of some problems I had and their solutions. Many thanks to several people on the email lists for Pythonmac-sig

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-07 Thread Louis Pecora
Rob Managan wrote: > Since crazy things happen I will ask. I assume that you can run gcc > from the command line? Yes. Just tried it. > Next question. What shell are you running? Mine is set to tcsh but > newer Macs tend to run bash. I typed "shell" and it came back: tcsh: shell: Command no

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-07 Thread Louis Pecora
Christopher Barker wrote: >David M. Cooke wrote: > > >>Experience has shown that compiling Scipy with gcc 4.0 on a Mac doesn't >>work (various really annoying problems with how Fortran libraries end up >>being linked and so on). So it's suggested that you use 3.3. >> >> > >There is the same

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-07 Thread Louis Pecora
Rob, Here is the output of the 'make' command after my ./configure command. Again the only difference from your successful output in the beginning is my output shows g++ being used in place of gcc for you. But then in line 5 (I think I counted right) an error of some type occurs. What the he

[Pythonmac-SIG] SWIG Install problem. configure output.

2005-12-07 Thread Louis Pecora
Rob, Here is the output of my ./configure command for SWIG Install. There are some differences from your successful ouput. Not sure you want to see all this, but if you have the time here are where the differences in our configure output are. Lines marked with "+" are in addition to lines yo

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-07 Thread Louis Pecora
David M. Cooke wrote: >On Tue, Dec 06, 2005 at 05:41:21PM -0500, Louis Pecora wrote: > > >>Rob Managan wrote: >> >> >> >>>PS the command to switch to gcc 3.3 seems to be >>> >>>'sudo gcc_select 3.3' >>> >&g

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-06 Thread Louis Pecora
Rob Managan wrote: > PS the command to switch to gcc 3.3 seems to be > > 'sudo gcc_select 3.3' > > Not sure if you had to do this with scipy or not. H... I don't know about this one. What has this to do with Scipy? -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375

Re: [Pythonmac-SIG] SWIG Install problem.

2005-12-06 Thread Louis Pecora
Rob Managan wrote: > [cut] > > [mangrove:~/Documents/My_Downloads/swig-1.3.27] managan% make > make all-am > depbase=`echo CParse/cscanner.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \ > if gcc -DHAVE_CONFIG_H -I../Source/Include -I../Source/CParse > -I../Source/Include -I../Source/DOH -I../Sou

[Pythonmac-SIG] SWIG Install problem.

2005-12-06 Thread Louis Pecora
I'm trying to install the SWIG The README says to treat Mac OS X like a Unix (makes sense) and do the following, % ./configure % make % make install ./configure seemed to run ok. No errors that I could see in the long print out. When I try the first make I get, louispec% mak

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
[EMAIL PROTECTED] wrote: > Pyrex will make the experience of moving from Python to C modules > much more pleasant. You can start with a pure Python version and then > migrate line by line to C written in near-Python syntax. It also > takes care of all the boring bookkeeping, and it is portab

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Christopher Barker wrote: > Louis Pecora wrote: > >> Christopher Barker wrote: > > >> Yeow, Chris, you really have a lot to say about what I'm interested >> in. Thanks very much! > > > That's because I'm in the same boat. I keep bouncing

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Nicholas Riley wrote: > Perhaps you can describe some of the bottlenecks you're experiencing, > >or post some code fragments? The lsprof profiler has worked for me: > > > > Thanks for the pointer, Nick. I have no particular example righ

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Kevin Dangoor wrote: > Earlier in the year, Phillip Eby was optimizing his RuleDispatch > >package. There were many tweaks he was able to do *completely in >Python* that resulted in a decent speedup. Here's one of his posting >on the topic: > >http://dirtsimple.org/2005/02/optimization-surprises.h

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Brian Ray wrote: > Rewriting as "C" extensions is a good approach. But as you already > said, it may be time consuming. Maybe break the program in small > chunks to see where the bottle neck really exists. If your looking for > the culprit, I would recommend taking a look at hotshot >

[Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
I am seeking opinions on the best approaches to speed up Python on my Mac (OS X 10.3.9). I know about the profiling and find the bottlenecks approach, but then the choices of what to do are not clear. I have in the past written a few C modules and turned them into importable Python modules, bu

Re: [Pythonmac-SIG] Selecting in BBEdit & Python Indenting style(spaces)

2005-11-30 Thread Louis Pecora
Rob Managan wrote: > Because in a mixed environment some one will take a file that has > >tabs and add spaces or vice versa. As soon as lines have a mixture of >tabs and spaces then the display does ugly things when you change >editors. > >I run into this all the time in C with those I develop w

Re: [Pythonmac-SIG] Selecting in BBEdit & Python Indenting style(spaces)

2005-11-29 Thread Louis Pecora
Kent Quirk wrote: >Just because there seems to be an orgy of people agreeing that Tabs are the >One True Way, I feel a need to point out that there are those of us who >fervently believe that Tabs Are Evil. The reason is that tabs are interpreted >differently in different places, and they're in

[Pythonmac-SIG] Selecting in BBEdit & Python Indenting style (spaces)

2005-11-29 Thread Louis Pecora
Chris Barker asked: >Side note: does anyone know how to do selection, cut and paste by columns in BBEdit? You hold down the option key while selecting, but you cannot do this in the soft wrap mode. You have to set the window to hard wrap at some column number.

[Pythonmac-SIG] Drawing to the Clipboard in wxPython?

2005-10-28 Thread Louis Pecora
I have been searching for ways to draw to the clipboard rather than the wxWindow/screen in a wxPython app. I did this a long time ago in C on Mac OS 8. Then I could paste into drawing programs or MS Word or whatever as a graphical object. I could even edit the graphic in drawing programs. I

Re: [Pythonmac-SIG] Errors with simple_plot in matplotlib: type is wrong for / operator?

2005-07-26 Thread Louis Pecora
John Hunter wrote: >>>>>>"Louis" == Louis Pecora <[EMAIL PROTECTED]> writes: >>>>>> >>>>>> > >Louis> numerix Numeric 22.0 > >My guess is that upgrading Numeric will fix this problem. > >J

Re: [Pythonmac-SIG] Errors with simple_plot in matplotlib: type is wrong for / operator?

2005-07-26 Thread Louis Pecora
John Hunter wrote: >>>>>>"Louis" == Louis Pecora <[EMAIL PROTECTED]> writes: >>>>>> >>>>>> >Louis> *This is deep in matplotlib. Anyone know what's happening? > >Louis> Here's what li

[Pythonmac-SIG] Errors with simple_plot in matplotlib: type is wrong for / operator?

2005-07-26 Thread Louis Pecora
I got my Python back up and running thanks to help from Bob Impolito and Robert Kern (site packages and .pth files and new system install). * I have installed wxPython and matplotlib. But when I run the simple_plot.py program: #!/usr/bin/pythonw from pylab import * figure(1) t = arange(0.0,

[Pythonmac-SIG] Can't get re-installed python to recognize old paths.

2005-07-22 Thread Louis Pecora
After a lot of hair pulling (long story) I re-installed OS X 10.3 (archive and install) and then upgraded to 10.3.9. Python seems to work and other problems seem to be gone, but when I try to import my original modules it can't find them. I looked in the folder .MacOSX and see that Enviroment

[Pythonmac-SIG] Trouble installing CVS module kinds

2005-07-21 Thread Louis Pecora
I installed 2.4.1 from Bob (easy), but it was missing Numeric. I installed that, but that was missing the "kinds" module which my code imports. Robert Kern kindly informed me that kinds is no longer a part of Numeric, but I could get it from CVS and he showed me how (which is good since I hav

[Pythonmac-SIG] 2.4.1 Installed and roughly working, but modules missing.

2005-07-20 Thread Louis Pecora
I installed Bob I.'s 2.4.1 version and I can get it up and running in Terminal using /usr/local/bin/python. But in running it from Terminal or BBEdit Python cannot find the module 'kinds'. At first it couldn't find the Numeric module, but I installed that and then the 'kinds' problem came u

Re: [Pythonmac-SIG] 'import site' failed. Trouble starting python. What does this mean?

2005-07-19 Thread Louis Pecora
Bob Ippolito wrote: >On Jul 19, 2005, at 3:36 AM, Louis Pecora wrote: > > > >>I've been having trouble running Python from BBEdit and the MacPython >>IDE (neither works) so I tried to start from the terminal. I get this >>message: >> >>louispec% p

[Pythonmac-SIG] 'import site' failed. Trouble starting python. What does this mean?

2005-07-19 Thread Louis Pecora
I've been having trouble running Python from BBEdit and the MacPython IDE (neither works) so I tried to start from the terminal. I get this message: louispec% python -v # installing zipimport hook import zipimport # builtin # installed zipimport hook 'import site' failed; traceback: ImportError

[Pythonmac-SIG] Python preferences hosed? What to do?

2005-07-04 Thread Louis Pecora
I run Python from BBEdit although I have used the Python IDE, too. All was fine up to a week ago, then today running from BBEdit through the terminal caused a long delay then an error message that Numeric could not be found. The Python IDE would not start up (long delay then a 'quit' automati

Re: [Pythonmac-SIG] Where to go for wxPython help & tutorials?

2005-06-16 Thread Louis Pecora
Robert Kern wrote: >Louis Pecora wrote: > > > >>Because matplotlib presents the plot at the end of the program. My >>programs are written to be interactive and continue running, i.e. >>calculate something or massage data, plot the result, close the plot

Re: [Pythonmac-SIG] Where to go for wxPython help & tutorials?

2005-06-16 Thread Louis Pecora
Chris Barker wrote: > Larry Meyn wrote: > >> I feel the same way. However, you might want to look at the >> floatcanvas module and FloatCanvasDemo.py that come with the >> wxPython distribution. I've found it a very useful starting point >> for data plotting scripts, especially if you are in

[Pythonmac-SIG] Where to go for wxPython help & tutorials?

2005-06-16 Thread Louis Pecora
I'd like to use wxPython to open some simple windows and draw/plot figures from data. But learning this apparently nice GUI has been haphazard. I've looked over documention that comes with the installation and it appears incomplete. Suggestions in the docs are to look to the examples and dem

Re: [Pythonmac-SIG] Re: Binary Matplotlib package, working. Need to keep script running after plotting.

2005-03-07 Thread Louis Pecora
Chris Barker wrote: Louis Pecora wrote: You pretty much got it. OK. I've enclosed a little script that demonstrates calling up some stock dialogs in a script with wxPython. really the only trick is that you need to initialize an app first. Look through the wx docs to see what standard di

Re: [Pythonmac-SIG] Using Matplotlib interactive/GUI - How to?

2005-03-07 Thread Louis Pecora
Chris Barker wrote: Charles Moad wrote: I don't think this file is ever explicitly made for you. You can download a sample from his website, http://matplotlib.sourceforge.net/.matplotlibrc. Download this and put it in your home dir. Yes, there is one there by default: /System/Library/Framewo

[Pythonmac-SIG] Re: Binary Matplotlib package, working. Need to keep script running after plotting.

2005-03-07 Thread Louis Pecora
Chris Barker wrote: How about the developer tools and/or X-windows? -Chris Hi Chris, Yes, I have the dev. tools and and X11 stuff. I have some old code that opens an X window and does very simple drawing. That works after compiling using g++ and linking to /usr/X11R6/lib/libX11.a. But note, I

[Pythonmac-SIG] Trouble installing Tk binary on OS X 10.3.8. Help.

2005-03-06 Thread Louis Pecora
I need to install the Tk binary to get matplotlib to display plots. When I ran the package manager I got the error: Cannot open http://www.python.org/packman/version-0.3/darwin-7.8.0-Power_Macintosh.plist: HTTP Error 404: Not found I went to the MacPython site and got the URL for MacOSX 10.3,

[Pythonmac-SIG] Using Matplotlib interactive/GUI - How to?

2005-03-05 Thread Louis Pecora
I installed Chris Barker's compiled matplotlib and it works fine for producing a graphics file (THANK YOU CHRIS. NICELY DONE!). I've used it from interactive, MacPython, and BBEdit (TextWrangler will probably work, too, since it's related). I would like to use matplot lib in the GUI and, most

Re: [Pythonmac-SIG] More on stdin and python scripts in BBEdit and TextWrangler

2005-03-04 Thread Louis Pecora
Martina Oefelein wrote: just use pythonw instead of python. ciao Martina I have been tempted to look into several variations on Python, but I am wary of having to spend too much time installing other packages that are interdependent and having to tweak them to get it all to work. Maybe I'm maki

[Pythonmac-SIG] More on stdin and python scripts in BBEdit and TextWrangler

2005-03-04 Thread Louis Pecora
I contacted the software company for BBEdit and TextWrangler re: my problem with using stdin (e.g raw_input) when running a script from within the program (Unix Output window, not a terminal run window). Several people were interested so I thought I'd post the reply: scripts which are run d

[Pythonmac-SIG] Re: Getting stdin using TextWrangler or BBEdit, but not MacPython

2005-03-03 Thread Louis Pecora
Bob Ippolito wrote: I don't know a damn thing about TextWrangler, but this works with any Python that has a working stdin: while True: text = raw_input("Input 2 ints and a float: ") try: i1, i2, f1 = [t(v) for (t, v) in zip((int, int, float), text.split())] except ValueError,

[Pythonmac-SIG] Re: Getting stdin using TextWrangler or BBEdit, but not MacPython

2005-03-03 Thread Louis Pecora
Bob Ippolito wrote: I don't know a damn thing about TextWrangler, but this works with any Python that has a working stdin: while True: text = raw_input("Input 2 ints and a float: ") try: i1, i2, f1 = [t(v) for (t, v) in zip((int, int, float), text.split())] except ValueError,

[Pythonmac-SIG] Re: Getting stdin using TextWrangler or BBEdit, but not MacPython

2005-03-03 Thread Louis Pecora
Charles Hartman wrote: In TextWrangler something like this while 1: c = raw_input() if c == 'quit': break print c works fine, if you choose Run in Terminal or Run with Debugger. If you try to choose Output to New Window, it just quits immediately. But

Getting stdin using TextWrangler or BBEdit, but not MacPython (was: [Pythonmac-SIG] One IDE can find sys._buf, the other can't. What's going on?)

2005-03-03 Thread Louis Pecora
Bob Ippolito wrote: As far as this code goes, you might be able to just get away with it if you do: # check for MacPython IDE if hasattr(sys.stdout, '_buf'): sys.stdout._buf = ... You're right this is a test that would shut off the _buf part of the code if I were not using MacPython. It re

[Pythonmac-SIG] One IDE can find sys._buf, the other can't. What's going on?

2005-03-03 Thread Louis Pecora
I ran some test code in the MacPython IDE and then from BBEdit (should be same as TextWrangle that some of you use). It runs in the Mac IDE, but I get this error in BBEdit: File "Drive:Users:louispecora:Code:python:general:general.py"; Line 132: AttributeError: 'file' object has no attribute

Re: [Pythonmac-SIG] Main Python on Mac version?

2005-02-18 Thread Louis Pecora
Bob Ippolito wrote: On Feb 17, 2005, at 18:15, Jack Jansen wrote: MacOSX 10.3, no special requirements: Use Apple-supplied Python with the MacPython Additions Tell them to install anyway -- or make it a forced component of MacPython Additions. As long as it doesn't hurt. And maybe a simpl

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-17 Thread Louis Pecora
Chris Barker wrote: By the way, I've often thought of forming a company that would produce just what we've been talking about here, but with a bit of a twist: A set of Python environments for doing specialized development. Some ideas are: --A database app environment, as easy to use as FileMake

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-14 Thread Louis Pecora
Robert Kern wrote: It's called "Enthon." There will be a new release (for Windows and Linux) with more stuff, like matplotlib, Soon(TM). http://www.enthought.com/downloads/downloads.htm There will be a Mac release A Little Later Than Soon(TM). http://www.scipy.org/wikis/featurerequests/MacEnthon

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-14 Thread Louis Pecora
Bob Ippolito wrote: Well, either the current state if Python tools is good enough or it isn't. Perhaps the threat of a new user not sticking with Python is suitable motivation for some developers, but obviously not all of them, because then Python would do everything for everyone already :) Py

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-14 Thread Louis Pecora
Michael Hudson wrote: Well, I think this is a subjective judgement -- a matter of familiarity. I "play" with Python all the time. A good start is to enhance your interactive experience somewhat. Three options spring to mind: 1) Get readline support working. If you're still using Apple's Pyth

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-14 Thread Louis Pecora
Troy Rollins wrote: Well, I've transitioned between tools like Director, REALbasic, and Revolution, and extremely quickly moved into creating non-trivial applications. With Python, it is far less condusive to "playing" and therefore seems to hold me somewhere around the print "hello world" stage. Y

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-13 Thread Louis Pecora
Jon Schull wrote: Bob Ippolito wrote: Open source developers work on whatever they want or need to work on, so the particular problems you have will get solved when someone with the time, skill, and motivation to do so decides to scratch that itch. If you want to speed this proc

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-13 Thread Louis Pecora
Brendan Simons wrote: That was a big obstacle against many of the text editors I tried to use. TextWrangler, however, has good Python support, including cmd-r to run the present script. They've even written a parser for traceback, so when I get a runtime error, TW drops me right where I ma

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-11 Thread Louis Pecora
Brendan Simons wrote: The IDE thread is a recurring one. Here's my experience as another Python newbie. I tried SPE, PythonCard, PyOxice, PyPE, eclipse and wing (under x11). All work, but I found that each one had enough quirks (mostly UI inconsistencies, but some are downright unstable) th

Re: [Pythonmac-SIG] Binary Matplotlib package

2005-02-03 Thread Louis Pecora
Chris Barker wrote: Hi all, I think I've successfully build a binary matplotlib package for use with Apple's Python on OS-X 10.3.* In theory the only other thing it requires is Numeric, and I have a package for that too (courtesy of Bob Ippolito). It's almost 5 MB, so I haven't included it here