[Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/Terminal Terminal_Suite.py,1.2,1.3 __init__.py,1.2,1.3
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Fri, 28 Mar 2003 14:07:24 -0800
- Previous message: [Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/StdSuites AppleScript_Suite.py,1.2,1.3 Macintosh_Connectivity_Clas.py,1.2,1.3 QuickDraw_Graphics_Suite.py,1.2,1.3 Standard_Suite.py,1.2,1.3 Type_Names_Suite.py,1.2,1.3 __init__.py,1.2,1.3
- Next message: [Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior CodeWarrior_suite.py,1.2,1.3 Metrowerks_Shell_Suite.py,1.2,1.3 __init__.py,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/Terminal
In directory sc8-pr-cvs1:/tmp/cvs-serv21742/Terminal
Modified Files:
Terminal_Suite.py __init__.py
Log Message:
Regenerated (from resource files) with sorting version of gensuitemodule.
This is a first step towards regenerating the modules with newer, MacOSX,
versions of these programs, and using the programmatic interface to
get at the terminology in stead of poking in resource files.
Index: Terminal_Suite.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/Terminal/Terminal_Suite.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Terminal_Suite.py 23 Mar 2003 22:07:28 -0000 1.2
--- Terminal_Suite.py 28 Mar 2003 22:07:21 -0000 1.3
***************
*** 13,25 ****
class Terminal_Suite_Events:
! def run(self, _no_object=None, _attributes={}, **_arguments):
! """run: Run the Terminal application
Keyword argument _attributes: AppleEvent attribute dictionary
"""
! _code = 'aevt'
! _subcode = 'oapp'
if _arguments: raise TypeError, 'No optional args expected'
! if _no_object != None: raise TypeError, 'No direct arg expected'
--- 13,27 ----
class Terminal_Suite_Events:
! def count(self, _object=None, _attributes={}, **_arguments):
! """count: Return the number of elements of a particular class within an object
! Required argument: a reference to the objects to be counted
Keyword argument _attributes: AppleEvent attribute dictionary
+ Returns: the number of objects counted
"""
! _code = 'core'
! _subcode = 'cnte'
if _arguments: raise TypeError, 'No optional args expected'
! _arguments['----'] = _object
***************
*** 32,44 ****
return _arguments['----']
! def quit(self, _no_object=None, _attributes={}, **_arguments):
! """quit: Quit the Terminal application
Keyword argument _attributes: AppleEvent attribute dictionary
"""
! _code = 'aevt'
! _subcode = 'quit'
! if _arguments: raise TypeError, 'No optional args expected'
! if _no_object != None: raise TypeError, 'No direct arg expected'
--- 34,54 ----
return _arguments['----']
! _argmap_do_script = {
! 'with_command' : 'cmnd',
! 'in_' : 'kfil',
! }
!
! def do_script(self, _object, _attributes={}, **_arguments):
! """do script: Run a UNIX shell script or command
! Required argument: data to be passed to the Terminal application as the command line
! Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter
! Keyword argument in_: the window in which to execute the command
Keyword argument _attributes: AppleEvent attribute dictionary
"""
! _code = 'core'
! _subcode = 'dosc'
! aetools.keysubst(_arguments, self._argmap_do_script)
! _arguments['----'] = _object
***************
*** 51,65 ****
return _arguments['----']
! def count(self, _object=None, _attributes={}, **_arguments):
! """count: Return the number of elements of a particular class within an object
! Required argument: a reference to the objects to be counted
Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: the number of objects counted
"""
! _code = 'core'
! _subcode = 'cnte'
if _arguments: raise TypeError, 'No optional args expected'
! _arguments['----'] = _object
--- 61,73 ----
return _arguments['----']
! def quit(self, _no_object=None, _attributes={}, **_arguments):
! """quit: Quit the Terminal application
Keyword argument _attributes: AppleEvent attribute dictionary
"""
! _code = 'aevt'
! _subcode = 'quit'
if _arguments: raise TypeError, 'No optional args expected'
! if _no_object != None: raise TypeError, 'No direct arg expected'
***************
*** 72,92 ****
return _arguments['----']
! _argmap_do_script = {
! 'with_command' : 'cmnd',
! 'in_' : 'kfil',
! }
!
! def do_script(self, _object, _attributes={}, **_arguments):
! """do script: Run a UNIX shell script or command
! Required argument: data to be passed to the Terminal application as the command line
! Keyword argument with_command: data to be passed to the Terminal application as the command line, deprecated, use direct parameter
! Keyword argument in_: the window in which to execute the command
Keyword argument _attributes: AppleEvent attribute dictionary
"""
! _code = 'core'
! _subcode = 'dosc'
! aetools.keysubst(_arguments, self._argmap_do_script)
! _arguments['----'] = _object
--- 80,92 ----
return _arguments['----']
! def run(self, _no_object=None, _attributes={}, **_arguments):
! """run: Run the Terminal application
Keyword argument _attributes: AppleEvent attribute dictionary
"""
! _code = 'aevt'
! _subcode = 'oapp'
! if _arguments: raise TypeError, 'No optional args expected'
! if _no_object != None: raise TypeError, 'No direct arg expected'
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/lib-scriptpackages/Terminal/__init__.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** __init__.py 23 Mar 2003 22:07:28 -0000 1.2
--- __init__.py 28 Mar 2003 22:07:22 -0000 1.3
***************
*** 5,15 ****
import aetools
Error = aetools.Error
- import Terminal_Suite
import Invisible_Suite
_code_to_module = {
- 'trmx' : Terminal_Suite,
'tpnm' : Invisible_Suite,
}
--- 5,15 ----
import aetools
Error = aetools.Error
import Invisible_Suite
+ import Terminal_Suite
_code_to_module = {
'tpnm' : Invisible_Suite,
+ 'trmx' : Terminal_Suite,
}
***************
*** 17,26 ****
_code_to_fullname = {
- 'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
'tpnm' : ('Terminal.Invisible_Suite', 'Invisible_Suite'),
}
- from Terminal_Suite import *
from Invisible_Suite import *
def getbaseclasses(v):
--- 17,26 ----
_code_to_fullname = {
'tpnm' : ('Terminal.Invisible_Suite', 'Invisible_Suite'),
+ 'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
}
from Invisible_Suite import *
+ from Terminal_Suite import *
def getbaseclasses(v):
***************
*** 43,47 ****
getbaseclasses(window)
getbaseclasses(application)
- getbaseclasses(application)
getbaseclasses(StdSuites.Type_Names_Suite.small_integer)
getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color)
--- 43,46 ----
***************
*** 84,87 ****
--- 83,87 ----
getbaseclasses(StdSuites.Type_Names_Suite.point)
getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle)
+ getbaseclasses(application)
#
***************
*** 91,95 ****
'cwin' : window,
'capp' : application,
- 'capp' : application,
'shor' : StdSuites.Type_Names_Suite.small_integer,
'tr16' : StdSuites.Type_Names_Suite.RGB16_color,
--- 91,94 ----
***************
*** 132,140 ****
'QDpt' : StdSuites.Type_Names_Suite.point,
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
}
! class Terminal(Terminal_Suite_Events,
! Invisible_Suite_Events,
aetools.TalkTo):
_signature = 'trmx'
--- 131,140 ----
'QDpt' : StdSuites.Type_Names_Suite.point,
'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle,
+ 'capp' : application,
}
! class Terminal(Invisible_Suite_Events,
! Terminal_Suite_Events,
aetools.TalkTo):
_signature = 'trmx'
- Previous message: [Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/StdSuites AppleScript_Suite.py,1.2,1.3 Macintosh_Connectivity_Clas.py,1.2,1.3 QuickDraw_Graphics_Suite.py,1.2,1.3 Standard_Suite.py,1.2,1.3 Type_Names_Suite.py,1.2,1.3 __init__.py,1.2,1.3
- Next message: [Python-checkins] python/dist/src/Lib/plat-mac/lib-scriptpackages/CodeWarrior CodeWarrior_suite.py,1.2,1.3 Metrowerks_Shell_Suite.py,1.2,1.3 __init__.py,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]