Menu

scripting a wxWindows app

2003-01-02
2003-01-21
  • Brian Pratt

    Brian Pratt - 2003-01-02

    First of all let me add my voice to those praising the creators of Python, wxWindows, wxPython, and of course Boa Constructor.  Mind-blowingly great stuff.

    I'd like to build a wxWindows app that exposes Python as an end-user scripting engine.  I'd like it to have one always-present (but optionally hidden) window that is the python shell, and other windows that show graphics etc based on the current state of the app (all in an MDI frame, for win32 anyway).  My menu and dialog event handling code would be implemented in terms of pumping commands into the python shell - this allows for a tidy script record capability (just cut and paste from the shell window).  It would be ideal for the shell to be Scintilla based, with all the cool python-aware autocomplete stuff etc.  It seems like this should all be developed within Boa Constructor, probably.

    Like any good coder, I'm lazy and am wondering if there are any existing smallish examples of this kind of app out there?  I've googled around quite a bit but haven't really landed anything quite right yet.

    Thanks,

    Brian

     
    • Anonymous

      Anonymous - 2003-01-21

      If you get a solution to this, could you share it?  I'm also interested in this.

      Right now my solution is that you can run the wxpython Gui app or you can script in pycrust or the regular python commandline or whatever the low level stuff that the gui is controlling.  But it would be cool to be able to open up a python interp. page for running scripts that hooks into the same interpreter that the gui is using. 

      e.g., I could use a pull down menu or gui button to send a command to some device on a com port, or in "power user mode" (i.e., python command line window in the gui) I could use the same python objects from a script. 

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.