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
92ca16c3
Kaydet (Commit)
92ca16c3
authored
Eki 23, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Modified to work together with BBPy
Re-enabled splash screen
üst
d804bab7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
mactwit_app.py
Mac/Tools/twit/mactwit_app.py
+15
-0
twit.py
Mac/Tools/twit/twit.py
+4
-5
twit.rsrc.hqx
Mac/Tools/twit/twit.rsrc.hqx
+0
-0
No files found.
Mac/Tools/twit/mactwit_app.py
Dosyayı görüntüle @
92ca16c3
...
...
@@ -17,6 +17,7 @@ import mactwit_stack
import
mactwit_browser
import
mactwit_edit
import
macfs
import
string
# Resource-id (for checking existence)
ID_MODULES
=
512
...
...
@@ -37,6 +38,7 @@ class Twit(FrameWork.Application, TwitCore.Application, MiniAEFrame.AEServer):
AE
.
AESetInteractionAllowed
(
AppleEvents
.
kAEInteractWithAll
)
self
.
installaehandler
(
'aevt'
,
'odoc'
,
self
.
ae_open_doc
)
self
.
installaehandler
(
'aevt'
,
'quit'
,
self
.
do_quit
)
self
.
installaehandler
(
'pyth'
,
'EXEC'
,
self
.
do_bbpyexec
)
# BBpy execute event
self
.
dbg_menu_bar
=
Menu
.
GetMenuBar
()
self
.
setstate
(
sessiontype
)
...
...
@@ -175,6 +177,19 @@ class Twit(FrameWork.Application, TwitCore.Application, MiniAEFrame.AEServer):
fss
,
changed
=
object
.
Resolve
()
self
.
runfile
(
fss
.
as_pathname
())
def
do_bbpyexec
(
self
,
object
=
None
,
NAME
=
None
,
**
args
):
if
type
(
object
)
<>
type
(
''
):
if
AE
.
AEInteractWithUser
(
AppleEvents
.
kAEDefaultTimeout
)
==
0
:
EasyDialogs
.
Message
(
'EXEC AppleEvent arg should be a string'
)
return
if
self
.
state
<>
'none'
:
if
AE
.
AEInteractWithUser
(
AppleEvents
.
kAEDefaultTimeout
)
==
0
:
if
not
self
.
asknewsession
():
return
stuff
=
string
.
splitfields
(
object
,
'
\r
'
)
stuff
=
string
.
joinfields
(
stuff
,
'
\n
'
)
self
.
runstring
(
stuff
)
def
do_run
(
self
,
*
args
):
if
not
self
.
asknewsession
():
return
...
...
Mac/Tools/twit/twit.py
Dosyayı görüntüle @
92ca16c3
...
...
@@ -12,9 +12,8 @@ Jack Jansen, CWI, August 1996."""
import
os
if
os
.
name
==
'mac'
:
# Not supported in distributed 1.4b3:
## import MacOS
## MacOS.splash(515) # Try to show the splash screen
import
MacOS
MacOS
.
splash
(
515
)
# Try to show the splash screen
import
mactwit_app
;
twit_app
=
mactwit_app
else
:
try
:
...
...
@@ -32,8 +31,8 @@ import sys
def
main
():
twit_app
.
Initialize
()
##
if os.name == 'mac':
##
MacOS.splash()
if
os
.
name
==
'mac'
:
MacOS
.
splash
()
twit_app
.
Twit
(
'none'
,
None
)
def
run
(
statement
,
globals
=
None
,
locals
=
None
):
...
...
Mac/Tools/twit/twit.rsrc.hqx
Dosyayı görüntüle @
92ca16c3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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