source example including the python shell in a wxPython application

Discussion in 'Python' started by chewie54, Nov 1, 2007.

  1. chewie54

    chewie54 Guest

    Is there an python example that shows how to include a python shell in
    a wxPython application.

    I have looked the wxPython demo but I was wondering if there are any
    others that might be helpful in seeing how to connect the shell into
    the app and allow scripting so that the shell knows all about the app
    classes and variables.

    thanks,
    chewie54, Nov 1, 2007
    #1
    1. Advertising

  2. chewie54

    Chris Mellon Guest

    Re: source example including the python shell in a wxPythonapplication

    On Nov 1, 2007 8:48 AM, chewie54 <> wrote:
    > Is there an python example that shows how to include a python shell in
    > a wxPython application.
    >
    > I have looked the wxPython demo but I was wondering if there are any
    > others that might be helpful in seeing how to connect the shell into
    > the app and allow scripting so that the shell knows all about the app
    > classes and variables.
    >
    > thanks,
    >
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    >


    There's a chapter about it in the wxPIA book, and you can look at the
    sources of the wx.py package. When you create a shell, you pass it a
    dict that it uses as its global namespace.
    Chris Mellon, Nov 1, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    321
  2. hg
    Replies:
    1
    Views:
    284
    =?iso-8859-1?B?QW5kcuk=?=
    Dec 13, 2006
  3. Christian Heimes
    Replies:
    0
    Views:
    590
    Christian Heimes
    Feb 27, 2008
  4. Gerardo Herzig
    Replies:
    1
    Views:
    1,062
    Philipp Pagel
    Feb 27, 2008
  5. D'Arcy J.M. Cain
    Replies:
    0
    Views:
    850
    D'Arcy J.M. Cain
    Feb 27, 2008
Loading...

Share This Page