Re: [Pythonmac-SIG] PyObjC: Errors initializing NSAttributedString using initWithHTML

2006-01-11 Thread Michael Glassford
Bob Ippolito wrote:
> On Jan 10, 2006, at 2:16 PM, Michael Glassford wrote:
> 
> 
>>When trying to initialize an NSAttributedString like this:
>>
>>attributedString =
>>AppKit.NSAttributedString.alloc 
>>().initWithHTML_baseURL_documentAttributes_(data,
>>url, None)
>>
>>I get the error "TypeError: Need 2 arguments, got 3", although the
>>documentation makes it pretty clear that there are in fact 3  
>>arguments.
>>Similarly,
>>
>>attributedString =
>>AppKit.NSAttributedString.alloc().initWithHTML_documentAttributes_ 
>>(data,
>>url)
>>
>>gives the error "TypeError: Need 1 arguments, got 2", although the
>>documentation makes it pretty clear that there are in fact 2  
>>arguments.
> 
> 
> The reason is because the last parameter is an output parameter.   
> It's part of the result.

That's the thing I hadn't noticed. Thanks for pointing it out--I've got 
it working now.

Mike

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] MacPython documentation and webpages

2006-01-11 Thread Christopher Barker
Mark,

You got the ball rolling on this:

Mark Asbach wrote:
>  From my point of view, it would be very helpful to concentrate  
> MacPython knowledge and information in a central place like  
> www.python.org / http://wiki.python.org and replace all outdated  
> information on the other web pages by a link to that central place.  

> I would invest some time and effort in revising documentation.

Bob Ippolito wrote:
>>Are you the webmaster of pythonmac.org? If so, how is that page
>>produced? is it static html?

> Yes and yes.

>>If so, are you open to replacing it with a page that is better  
>>suited as the primary Front-End to the Python-on-OS-X world?

> Patches accepted ;)  If anyone wants to deal with it, I'm definitely  
> willing to dish out accounts.

I think we have an answer: python.org does not, in general, have a lot 
of platform specific documentation, and we'd have to get the primary 
python folks to approve anything we want to put there. I think that 
makes pythonmac.org the best place for our new, improved, "Intro Page 
for Python on OS-X".

Mark, are you willing to coordinate the writing of a new page[s]?

I suggest we have a basic intro, and then perhaps a decision tree under 
the heading:

What version of Python should I use?

That decision tree would include things like: which version of OS-X are 
you running? Do you need python 2.4 features? Do you want to bundle apps 
for others to use? etc.

And, of course, we need a pointer to a FAQ in the Wiki.

I'd also suggest that we break the pythonmac.org/packages pages down 
into separate pages, one for each python version. I think that will make 
it much clearer to folks coming to it which set of packages they should 
look at.

Anyone else?

-Chris















-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] MacPython documentation and webpages

2006-01-11 Thread Charles Hartman
Bless you guys -- this is a very helpful-looking project.

I'm ignorant, but I can write. If (for example) you want me to do any  
editing, or something like that, I'd be delighted to help.


Charles Hartman
Professor of English, Poet in Residence
Connecticut College
[EMAIL PROTECTED]
*the Scandroid* is at cherry.conncoll.edu/cohar/Programs.htm


On Jan 11, 2006, at 2:04 PM, Christopher Barker wrote:

> Mark,
>
> You got the ball rolling on this:
>
> Mark Asbach wrote:
>>  From my point of view, it would be very helpful to concentrate
>> MacPython knowledge and information in a central place like
>> www.python.org / http://wiki.python.org and replace all outdated
>> information on the other web pages by a link to that central place.
>
>> I would invest some time and effort in revising documentation.
>
> Bob Ippolito wrote:
>>> Are you the webmaster of pythonmac.org? If so, how is that page
>>> produced? is it static html?
>
>> Yes and yes.
>
>>> If so, are you open to replacing it with a page that is better
>>> suited as the primary Front-End to the Python-on-OS-X world?
>
>> Patches accepted ;)  If anyone wants to deal with it, I'm definitely
>> willing to dish out accounts.
>
> I think we have an answer: python.org does not, in general, have a lot
> of platform specific documentation, and we'd have to get the primary
> python folks to approve anything we want to put there. I think that
> makes pythonmac.org the best place for our new, improved, "Intro Page
> for Python on OS-X".
>
> Mark, are you willing to coordinate the writing of a new page[s]?
>
> I suggest we have a basic intro, and then perhaps a decision tree  
> under
> the heading:
>
> What version of Python should I use?
>
> That decision tree would include things like: which version of OS-X  
> are
> you running? Do you need python 2.4 features? Do you want to bundle  
> apps
> for others to use? etc.
>
> And, of course, we need a pointer to a FAQ in the Wiki.
>
> I'd also suggest that we break the pythonmac.org/packages pages down
> into separate pages, one for each python version. I think that will  
> make
> it much clearer to folks coming to it which set of packages they  
> should
> look at.
>
> Anyone else?
>
> -Chris
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -- 
> Christopher Barker, Ph.D.
> Oceanographer
>   
> NOAA/OR&R/HAZMAT (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115   (206) 526-6317   main reception
>
> [EMAIL PROTECTED]
> ___
> Pythonmac-SIG maillist  -  [email protected]
> http://mail.python.org/mailman/listinfo/pythonmac-sig

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


[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?

Thanks.  I do this so infrequently that I never remember where the heck 
I got these things.

-- 
Cheers,

Lou Pecora

Code 6362
Naval Research Lab
Washington, DC  20375
USA
Ph:  +202-767-6002
email:  [EMAIL PROTECTED]

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


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

2006-01-11 Thread Christopher Barker
Louis Pecora wrote:
> What are the best sites to use to install Numeric and wxPython which 
> will be used with the stock, Apple-installed Python?

pythonmac.org/packages

Robin Dunn just released a brand-new wxPython:

http://www.wxpython.org/download.php

We'll probably put it on the pythonmac site at some point.

It's also time for an update to Numeric, but the one there works fine.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


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

2006-01-11 Thread Opstad, Dave
Title: Re: [Pythonmac-SIG] Best site to get Numeric and wxPython for new Tiger 10.4 install?






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 what I use.

Dave





___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


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

2006-01-11 Thread Kevin Ollivier
Hi Louis,

On Jan 11, 2006, at 12:09 PM, Louis Pecora wrote:

> 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?

First, install Bob's TigerPython23Compat fix from here:

http://undefined.org/python/

Then, for wxPython, just go to the wxPython.org downloads page. The  
binary says it's for Panther, but it really should say "Panther and  
up". I'm not sure about the best way to get Numeric for 2.3, so I'll  
leave that question to someone else.

Kevin

> Thanks.  I do this so infrequently that I never remember where the  
> heck
> I got these things.
>
> -- 
> Cheers,
>
> Lou Pecora
>
> Code 6362
> Naval Research Lab
> Washington, DC  20375
> USA
> Ph:  +202-767-6002
> email:  [EMAIL PROTECTED]
>
> ___
> Pythonmac-SIG maillist  -  [email protected]
> http://mail.python.org/mailman/listinfo/pythonmac-sig

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


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 what I use.
>
> Dave
>

Thanks.  I also went to the wxPython site and got the Panther build.  
Also got TigerPython23Compat since it said that was necessary.  I am 
trying to find which Numeric from pythonmac.org/packages/ 
   I should use.

-- 
Cheers,

Lou Pecora

Code 6362
Naval Research Lab
Washington, DC  20375
USA
Ph:  +202-767-6002
email:  [EMAIL PROTECTED]

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


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

2006-01-11 Thread Christopher Barker
Louis Pecora wrote:
> I am 
> trying to find which Numeric from pythonmac.org/packages/ 
>    I should use.

In theory, you want one in:
Mac OS X 10.4 (stock Python 2.3.5)

However, there isn't one there. The one in:

Mac OS X 10.3 (stock Python 2.3.0)

may work. If it doesn't then you are stuck with upgrading to Python2.4 
or building Numeric yourself, which should "just work" including Vectlib 
lapack support. If you do that, it would be great if you'd build a 
package and it can be put on that site.

Apparently most Tiger users are running Python 2.4

-Chris





-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


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/ 
>>    I should use.
>
>
> In theory, you want one in:
> Mac OS X 10.4 (stock Python 2.3.5)
>
> However, there isn't one there. The one in:
>
> Mac OS X 10.3 (stock Python 2.3.0)
>
> may work. 


That worked (so far).  Thanks.

I also had to reinstall  kinds.py.  I had that package and ran the 
python setup.py install in the terminal.  Worked fine in Tiger 10.4.4.

> If it doesn't then you are stuck with upgrading to Python2.4 or 
> building Numeric yourself, which should "just work" including Vectlib 
> lapack support. If you do that, it would be great if you'd build a 
> package and it can be put on that site.
>
> Apparently most Tiger users are running Python 2.4

Yeah, I've thought about going to 2.4, but I don't need more 
installation complications for now.  If I can hold off, I will.

Gracias.

>
> -Chris



-- 
Cheers,

Lou Pecora

Code 6362
Naval Research Lab
Washington, DC  20375
USA
Ph:  +202-767-6002
email:  [EMAIL PROTECTED]

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


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

2006-01-11 Thread Christopher Barker
Louis Pecora wrote:
> Yeah, I've thought about going to 2.4, but I don't need more 
> installation complications for now.  If I can hold off, I will.

well, it's easy to install 2.4, so if there is even one more ready-built 
package for it, then you're even, more than one, and you've saved time.

-Chris





-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] ANN: wxPython 2.6.2.1

2006-01-11 Thread Robin Dunn
Announcing
--

The 2.6.2.1 release of wxPython is now available for download at
http://wxpython.org/download.php.  There have been many enhancements
and fixes implemented in this version, listed below and at
http://wxpython.org/recentchanges.php.


What is wxPython?
-

wxPython is a GUI toolkit for the Python programming language. It
allows Python programmers to create programs with a robust, highly
functional graphical user interface, simply and easily. It is
implemented as a Python extension module that wraps the GUI components
of the popular wxWidgets cross platform library, which is written in
C++.

wxPython is a cross-platform toolkit. This means that the same program
will usually run on multiple platforms without modifications.
Currently supported platforms are 32-bit Microsoft Windows, most Linux
or other Unix-like systems using GTK2, and Mac OS X 10.2+, in most
cases the native widgets are used on each platform.


Changes in 2.6.2.1
--

wxMSW: Fix for bug #1211907, popup menu indenting inconsistent with
bitmaps.

wxMac: Don't send an event for wx.RadioButton deselections, just the
selections.  This was done to make it consistent with the other
platforms.

wxMSW: Always set flat toolbar style, even under XP with themes: this
is necessary or separators aren't shown at all.

Fixes for bug #1217872, pydocview.DocService not correctly initialized.

Fix for bug #1217874, Error in parameter name in DocManager.CreateView.

Added wrappers for the wx.RendererNative class.

Added the wx.lib.splitter module, which contains the
MultiSplitterWindow class.  This class is much like the standard
wx.SplitterWindow class, except it allows more than one split, so it
can manage more than two child windows.

Docview and IDE patch from Morgan Hua with fix for bug #1217890
"Closing view crashes Python" plus some new features::

 New feature added to the IDE is 'Extensions'.  Under
 Tools|Options|Extensions, you can add calls to external programs.
 For example you can add a "Notepad" extension (under windows) that
 will exec Notepad on the currently open file.  A new "Notepad"
 menu item will appear under the Tools menu.

Some fixes to XRCed to make encoding errors a bit more user friendly.

XRCed changes from Roman Rolinsky:

 * Added new controls (Choicebook, Listbook, StatusBar,
   DatePicker), and completed style flags. Test window is opened
   for an available parent control if no specific view
   defined. Better handling of exceptions (highlighting does not
   'stick' anymore).

 * Use system clipboard for Copy/Paste.

 * Improved some dialogs (window styles, growable cols). Changed
   the range for wxSpinCtrl min/max to all integers (default 0/100
   is not always good).

Updates for wx.lib.foldpanelbar and wx.lib.hyperlink from Andrea
Gavana.

Fix for Bug #1283496: wxPython TheClipboard class causes problems for
pychecker.  Ensure the app has been created before initializing
wx.TheClipboard.

Fix for Bug #1352602: FileBrowseButtonWithHistory can't type in Value.

wxHTML: Added space after list item number.

wx.lib.printout:  Applied patch #1384440.

wxMSW:  Fix for Bug #1293225 Window_FromHWND crashes if parent is
None.

Fix for Bug #1261669, use a wx.TE_RICH2 style for the Process demo so
it doesn't fill up too soon.

Applied Patch #1354389: wxPython MenuItem SetBitmaps fix.

Applied Patch #1239456: wxPython wx.DataObject.GetAllFormats fix.

Applied Patch # #1230107 which allows image handlers to be written in
Python by deriving from wx.PyImageHandler.

Applied patch #1072210: generalize printout.py to allow text printing.

Applied patch #1243907: Give Throbber much more flexibility by
allowing the user to set the rest image, the direction, the current
index, custom sequence.  Allows user to manually step through the
sequence with Next(), Previous(), Increment(), Decrement() &
SetCurrent(). Very handy if you have multiple throbbers that you want
to synchronize with a single timer.

Fix for bug #1336711: wx.lib.calendar.CalenDlg can yield incorrect
result.

Applied patch from Morgan Hua for updates to ActiveGrid code
(pydocview, ActiveGrid IDE, etc.)

Applied patch #1326241: Supporting "setup.py install --install- 
headers=path"

Applied patch from Morgan Hua to fix bug #1219423: CommandManager
should not repeat old commands after a branch.

Applied patch #1238825 adding search backward capabilities to the
demo.  Modified to use the up/down options in the wx.FindReplaceDialog
instead of a separate menu item.

Fix for bug #1266745 and #1387725 in the wx.FindReplaceDialog on MSW.
Actually check we are using MSLU before doing the hack designed to
workaround a bug in MSLU!

wxMSW: wx.lib.iewin.IEHtmlWindow now properly handles tabbing, return
and other special keys properly.

Lots of PyCrust enhancments started by Franz Steinaeusler, Adi Sieker,
and Sebastian Haase, and which in turn were further enhanced, fixed
tweaked and 

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

2006-01-11 Thread Bill Janssen
> Apparently most Tiger users are running Python 2.4

I strongly doubt that.  Python 2.3.5 is what comes with the stock
distribution; it should be supported.

Bill
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


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

2006-01-11 Thread Bob Ippolito
On Jan 11, 2006, at 7:14 PM, Bill Janssen wrote:

>> Apparently most Tiger users are running Python 2.4
>
> I strongly doubt that.  Python 2.3.5 is what comes with the stock
> distribution; it should be supported.

It is supported, in that when I build a package or an egg I build it  
for both 2.4 and 2.3 -- but I never use Python 2.3, so those packages  
get no testing whatsoever.  For my own Python packages, I run the  
test suite with Python 2.3, but that's as far as it goes if it  
supports 2.3 at all.

I use Python 2.4 because it has fewer bugs, better performance, and a  
couple nice new features that people are starting to take advantage  
of.  New builtins like set and sorted, new modules like subprocess,  
additions to the operator module (attrgetter, itemgetter), generator  
expressions, decorators, etc.  I also need a non-vendor installation  
of Python anyway to build self-contained applications that will  
continue to work on future versions of Mac OS X, so installing an old  
version of Python would be pretty silly.

-bob

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig