python-mode.el and wxPython app

Alex Rice alrice at swcp.com
Sat May 1 22:41:23 EDT 1999


Hi, I'm using python-mode 3.90, Emacs 20.3.1 (win32) and Python 1.5.1
Can't get my GUI app to display when I C-c C-c it from within Emacs. 

Here is what I am doing:

C-c C-! to start Python interpreter buffer
C-c C-c in my source code buffer
Then I see this in python buffer:

 Python 1.5.1 (#0, Apr 13 1998, 20:22:04) [MSC 32 bit (Intel)] on win32
 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
 >>> ## working on region in file d:/tmp/python--248317Wgx...
 starting main()...

Then my app never appears. However, if from a dos command prompt, I do

 >>> python d:/tmp/python--248317Wgx
 starting main()...

then I see my app appear. This is a wxPython GUI app.

Here is from my .emacs

 (setq auto-mode-alist
      (cons '("\\.py$" . python-mode) auto-mode-alist))
 (setq interpreter-mode-alist
      (cons '("python" . python-mode)
            interpreter-mode-alist))
 (autoload 'python-mode "python-mode" "Python editing mode." t)
 (setq py-python-command "d:/Program Files/Python/python.exe")
 (setq py-temp-directory "d:/tmp")

What am I doing wrong here? TIA!

(lisp-illiterate'ly-yours)

Alex Rice




More information about the Python-list mailing list