Re: [Pythonmac-SIG] Adding Apps - Pycrust too?

2006-04-26 Thread Ronald Oussoren


On 26-apr-2006, at 0:04, Brendan Simons wrote:




Just tried, and neither the IDLE nor PyCrust
interactive shells supports wx (or any other gui
framework) out of the box.  IDLE complains about
needing to use Pythonw, and PyCrust just hangs
(probably due to the issue Bob mentioned).


The IDLE one is a bug that will be fixed with the next release.



If the interactive shell in IDLE can be made to
interact with gui's, then it will do I suppose.  (It's
not as nice as PyCrust, but that's a killer feature).


If anyone is looking for a nice self-contained project, making IDLE a  
better OSX citizen would be one. This does require tkinter  
programming and probably some research on how to do some things with  
Tk and porting that to python.


Ronald



smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Adding Apps - Pycrust too?

2006-04-25 Thread Bob Ippolito

On Apr 25, 2006, at 3:04 PM, Brendan Simons wrote:

>
> -On Apr 25, 2006, at 1:03 PM, Charles Hartman wrote:
>
>>
>> On Apr 25, 2006, at 3:40 PM, Brendan Simons wrote:
>>
>>> While you're (re)considering adding Build
> Applet.app
>>> to the distribution, can I suggest another useful
> app?
>>>
>>> PyCrust is a great little interactive Python shell
>>> that adds introspection and code completion.  It's
>>> written in wx.python and comes packaged in a .app
>>> bundle with a nice icon :)  You can get a
>>> (pre-release) copy of the universal binary version
>>> here:
>>>
>>>
> http://prdownloads.sourceforge.net/wxpython/wxPython2.6-osx-docs-
>>> demos-2.6.3.2rc1-universal10.4-py2.4.dmg
>>>
>>> The source code is managed as part of wx.python,
> but
>>> this app in particular is pretty stable, and is
> useful
>>> outside of wx. (imho)
>>>
>>> It would be a lot nicer to send newbies to pycrust
>>> then to the command line for their first look at
>>> Python.
>>
>> As representative perpetual ignoramus & honorary
> newbie, I agree. I
>> never much noticed PyCrust until "wxPython in
> Action" brought it to
>> my attention, but I think it's great. For me, this
> is the replacement
>> for the late unlamented PythonIDE. And -- if I
> understand rightly --
>> because it doesn't have IDLE's Tkinter underpinnings
> it doesn't make
>> writing GUI code with wxPython difficult. (I suppose
> its wxPython
>> underpinnings could make it difficult to write
> Tkinter code.)
>
>> This is incorrect.  IDLE should work just fine with
> wxPython, it runs
>> code in a subprocess.  PyCrust on the other hand
> probably does have
>> problems, though.
>
>> -bob
>
> Just tried, and neither the IDLE nor PyCrust
> interactive shells supports wx (or any other gui
> framework) out of the box.  IDLE complains about
> needing to use Pythonw, and PyCrust just hangs
> (probably due to the issue Bob mentioned).
>
> If the interactive shell in IDLE can be made to
> interact with gui's, then it will do I suppose.  (It's
> not as nice as PyCrust, but that's a killer feature).

IDLE will work, it needs a tweak that's not currently present in  
Universal Python.  It was discussed on the list a couple weeks ago,  
I'm not sure if we've made that change to the branch or not.

-bob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Adding Apps - Pycrust too?

2006-04-25 Thread Christopher Barker
Brendan Simons wrote:
>>> this app in particular is pretty stable, and is
> useful outside of wx. (imho)

Yes, it's useful outside of wx, but it's useless without wx, so it makes 
sense to distribute it with wx.

> PyCrust just hangs

It should work with wx, that's what it's designed for,. However, it 
doesn't spawn another process, so you don't want to create another wxApp.

Try this is a pycrust session:

 >> import wx
 >> f = wx.Frame(None, title="Test Frame")
 >> f.Show()

-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  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Adding Apps - Pycrust too?

2006-04-25 Thread gandreas
>
>> -bob
>
> Just tried, and neither the IDLE nor PyCrust
> interactive shells supports wx (or any other gui
> framework) out of the box.  IDLE complains about
> needing to use Pythonw, and PyCrust just hangs
> (probably due to the issue Bob mentioned).
>
> If the interactive shell in IDLE can be made to
> interact with gui's, then it will do I suppose.  (It's
> not as nice as PyCrust, but that's a killer feature).

I just tried this with ScrIDE  (using the Pythonw Rich Shell interactive window):

 >>> from wxPython.wx import *
 >>> class main_window(wxFrame):
... def __init__(self, parent, id, title):
... wxFrame.__init__(self, parent, -1, title, size = (200, 100),
... style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
... self.control = wxTextCtrl(self, -1, style=wxTE_MULTILINE)
... self.Show(true)
... 
 >>> class App(wxApp):
... def OnInit(self):
... frame = main_window(None, -1, "wxPython: (A Demonstration)")
... self.SetTopWindow(frame)
... return true
... 
 >>> app = App(0)
 >>> app.MainLoop()


Seems to work, complete with things like completion, doc strings and  
the like (but having not done any wx work in a decade, it's hard to  
tell if there are problems)




Glenn Andreas  [EMAIL PROTECTED]
   wicked fun!
Mad, Bad, and Dangerous to Know

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Adding Apps - Pycrust too?

2006-04-25 Thread Brendan Simons

-On Apr 25, 2006, at 1:03 PM, Charles Hartman wrote:

>
> On Apr 25, 2006, at 3:40 PM, Brendan Simons wrote:
>
>> While you're (re)considering adding Build
Applet.app
>> to the distribution, can I suggest another useful
app?
>>
>> PyCrust is a great little interactive Python shell
>> that adds introspection and code completion.  It's
>> written in wx.python and comes packaged in a .app
>> bundle with a nice icon :)  You can get a
>> (pre-release) copy of the universal binary version
>> here:
>>
>>
http://prdownloads.sourceforge.net/wxpython/wxPython2.6-osx-docs-
>> demos-2.6.3.2rc1-universal10.4-py2.4.dmg
>>
>> The source code is managed as part of wx.python,
but
>> this app in particular is pretty stable, and is
useful
>> outside of wx. (imho)
>>
>> It would be a lot nicer to send newbies to pycrust
>> then to the command line for their first look at
>> Python.
>
> As representative perpetual ignoramus & honorary
newbie, I agree. I
> never much noticed PyCrust until "wxPython in
Action" brought it to
> my attention, but I think it's great. For me, this
is the replacement
> for the late unlamented PythonIDE. And -- if I
understand rightly --
> because it doesn't have IDLE's Tkinter underpinnings
it doesn't make
> writing GUI code with wxPython difficult. (I suppose
its wxPython
> underpinnings could make it difficult to write
Tkinter code.)

>This is incorrect.  IDLE should work just fine with
wxPython, it runs  
>code in a subprocess.  PyCrust on the other hand
probably does have  
>problems, though.

>-bob

Just tried, and neither the IDLE nor PyCrust
interactive shells supports wx (or any other gui
framework) out of the box.  IDLE complains about
needing to use Pythonw, and PyCrust just hangs
(probably due to the issue Bob mentioned).  

If the interactive shell in IDLE can be made to
interact with gui's, then it will do I suppose.  (It's
not as nice as PyCrust, but that's a killer feature).

Nevermind then, 
   Brendan
--
Brendan Simons

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Adding Apps - Pycrust too?

2006-04-25 Thread Bob Ippolito

On Apr 25, 2006, at 1:03 PM, Charles Hartman wrote:

>
> On Apr 25, 2006, at 3:40 PM, Brendan Simons wrote:
>
>> While you're (re)considering adding Build Applet.app
>> to the distribution, can I suggest another useful app?
>>
>> PyCrust is a great little interactive Python shell
>> that adds introspection and code completion.  It's
>> written in wx.python and comes packaged in a .app
>> bundle with a nice icon :)  You can get a
>> (pre-release) copy of the universal binary version
>> here:
>>
>> http://prdownloads.sourceforge.net/wxpython/wxPython2.6-osx-docs-
>> demos-2.6.3.2rc1-universal10.4-py2.4.dmg
>>
>> The source code is managed as part of wx.python, but
>> this app in particular is pretty stable, and is useful
>> outside of wx. (imho)
>>
>> It would be a lot nicer to send newbies to pycrust
>> then to the command line for their first look at
>> Python.
>
> As representative perpetual ignoramus & honorary newbie, I agree. I
> never much noticed PyCrust until "wxPython in Action" brought it to
> my attention, but I think it's great. For me, this is the replacement
> for the late unlamented PythonIDE. And -- if I understand rightly --
> because it doesn't have IDLE's Tkinter underpinnings it doesn't make
> writing GUI code with wxPython difficult. (I suppose its wxPython
> underpinnings could make it difficult to write Tkinter code.)

This is incorrect.  IDLE should work just fine with wxPython, it runs  
code in a subprocess.  PyCrust on the other hand probably does have  
problems, though.

-bob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Adding Apps - Pycrust too?

2006-04-25 Thread Charles Hartman

On Apr 25, 2006, at 3:40 PM, Brendan Simons wrote:

> While you're (re)considering adding Build Applet.app
> to the distribution, can I suggest another useful app?
>
> PyCrust is a great little interactive Python shell
> that adds introspection and code completion.  It's
> written in wx.python and comes packaged in a .app
> bundle with a nice icon :)  You can get a
> (pre-release) copy of the universal binary version
> here:
>
> http://prdownloads.sourceforge.net/wxpython/wxPython2.6-osx-docs- 
> demos-2.6.3.2rc1-universal10.4-py2.4.dmg
>
> The source code is managed as part of wx.python, but
> this app in particular is pretty stable, and is useful
> outside of wx. (imho)
>
> It would be a lot nicer to send newbies to pycrust
> then to the command line for their first look at
> Python.

As representative perpetual ignoramus & honorary newbie, I agree. I  
never much noticed PyCrust until "wxPython in Action" brought it to  
my attention, but I think it's great. For me, this is the replacement  
for the late unlamented PythonIDE. And -- if I understand rightly --  
because it doesn't have IDLE's Tkinter underpinnings it doesn't make  
writing GUI code with wxPython difficult. (I suppose its wxPython  
underpinnings could make it difficult to write Tkinter code.)

Charles Hartman

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig