mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
First stab at the launcher application. This will be run when the user
doubleclicks a .py, .pyw or .pyc file. It runs the file by invoking the relevant interpreter (either the command line Python in a terminal window or a Python.app for GUI-based scripts). Interpreter to use and the options to pass are settable through preferences. If PythonLauncher wasn't running it does its thing for one script and exits. If it was manually started before a dialog is presented where the user can set the options to use, etc. To be done: - option-drag/doubleclick should always open the interactive dialog - Terminal-window isn't done yet - Should be reimplemented in Python, but pyobjc isn't part of the core. - Various menu entries should be disabled.
This commit is contained in:
parent
c0f1e7749c
commit
3bbb617ca4
24 changed files with 1413 additions and 0 deletions
25
Mac/OSX/PythonLauncher/PreferenceWindow.nib/classes.nib
generated
Normal file
25
Mac/OSX/PythonLauncher/PreferenceWindow.nib/classes.nib
generated
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
IBClasses = (
|
||||
{CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
|
||||
{
|
||||
ACTIONS = {do_apply = id; do_filetype = id; do_reset = id; };
|
||||
CLASS = PreferencesWindowController;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {
|
||||
commandline = NSTextField;
|
||||
debug = NSButton;
|
||||
filetype = NSPopUpButton;
|
||||
inspect = NSButton;
|
||||
interpreter = NSTextField;
|
||||
nosite = NSButton;
|
||||
optimize = NSButton;
|
||||
others = NSTextField;
|
||||
tabs = NSButton;
|
||||
verbose = NSButton;
|
||||
with_terminal = NSButton;
|
||||
};
|
||||
SUPERCLASS = NSWindowController;
|
||||
}
|
||||
);
|
||||
IBVersion = 1;
|
||||
}
|
16
Mac/OSX/PythonLauncher/PreferenceWindow.nib/info.nib
generated
Normal file
16
Mac/OSX/PythonLauncher/PreferenceWindow.nib/info.nib
generated
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
|
||||
<plist version="0.9">
|
||||
<dict>
|
||||
<key>IBDocumentLocation</key>
|
||||
<string>237 -80 356 240 0 0 1280 938 </string>
|
||||
<key>IBFramework Version</key>
|
||||
<string>263.2</string>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>5</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>5S66</string>
|
||||
</dict>
|
||||
</plist>
|
BIN
Mac/OSX/PythonLauncher/PreferenceWindow.nib/objects.nib
generated
Normal file
BIN
Mac/OSX/PythonLauncher/PreferenceWindow.nib/objects.nib
generated
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue