Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
4775d0a3
Kaydet (Commit)
4775d0a3
authored
May 07, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Relocating file to mac.
üst
0a52bdfd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
63 deletions
+0
-63
libframework.tex
Doc/lib/libframework.tex
+0
-0
libminiae.tex
Doc/lib/libminiae.tex
+0
-63
No files found.
Doc/lib/libframework.tex
deleted
100644 → 0
Dosyayı görüntüle @
0a52bdfd
This diff is collapsed.
Click to expand it.
Doc/lib/libminiae.tex
deleted
100644 → 0
Dosyayı görüntüle @
0a52bdfd
\section
{
Standard Module
\module
{
MiniAEFrame
}}
\stmodindex
{
MiniAEFrame
}
\label
{
module-MiniAEFrame
}
The module
\module
{
MiniAEFrame
}
provides a framework for an application
that can function as an Open Scripting Architecture
\index
{
Open Scripting Architecture
}
(OSA) server, i.e. receive and process
AppleEvents
\index
{
AppleEvents
}
. It can be used in conjunction with
\module
{
FrameWork
}
\refstmodindex
{
FrameWork
}
or standalone.
This module is temporary, it will eventually be replaced by a module
that handles argument names better and possibly automates making your
application scriptable.
The
\module
{
MiniAEFrame
}
module defines the following classes:
\begin{classdesc}
{
AEServer
}{}
A class that handles AppleEvent dispatch. Your application should
subclass this class together with either
\class
{
MiniApplication
}
or
\class
{
FrameWork.Application
}
. Your
\method
{__
init
__
()
}
method should
call the
\method
{__
init
__
()
}
method for both classes.
\end{classdesc}
\begin{classdesc}
{
MiniApplication
}{}
A class that is more or less compatible with
\class
{
FrameWork.Application
}
but with less functionality. Its
event loop supports the apple menu, command-dot and AppleEvents; other
events are passed on to the Python interpreter and/or Sioux.
Useful if your application wants to use
\class
{
AEServer
}
but does not
provide its own windows, etc.
\end{classdesc}
\subsection
{
AEServer Objects
}
\label
{
aeserver-objects
}
\begin{methoddesc}
[AEServer]
{
installaehandler
}{
classe, type, callback
}
Installs an AppleEvent handler.
\var
{
classe
}
and
\var
{
type
}
are the
four-character OSA Class and Type designators,
\code
{
'****'
}
wildcards
are allowed. When a matching AppleEvent is received the parameters are
decoded and your callback is invoked.
\end{methoddesc}
\begin{methoddesc}
[AEServer]
{
callback
}{_
object, **kwargs
}
Your callback is called with the OSA Direct Object as first positional
parameter. The other parameters are passed as keyword arguments, with
the 4-character designator as name. Three extra keyword parameters are
passed:
\code
{_
class
}
and
\code
{_
type
}
are the Class and Type
designators and
\code
{_
attributes
}
is a dictionary with the AppleEvent
attributes.
The return value of your method is packed with
\function
{
aetools.packevent()
}
and sent as reply.
\end{methoddesc}
Note that there are some serious problems with the current
design. AppleEvents which have non-identifier 4-character designators
for arguments are not implementable, and it is not possible to return
an error to the originator. This will be addressed in a future
release.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment