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
001734ca
Kaydet (Commit)
001734ca
authored
Ara 07, 2003
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixed long standing typo
üst
ff294fea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
PythonIDEMain.py
Mac/Tools/IDE/PythonIDEMain.py
+13
-13
No files found.
Mac/Tools/IDE/PythonIDEMain.py
Dosyayı görüntüle @
001734ca
...
...
@@ -13,9 +13,9 @@ from Carbon import File
from
Carbon
import
Files
if
MacOS
.
runtimemodel
==
'macho'
:
EL
IPSE
S
=
'...'
EL
LIPSI
S
=
'...'
else
:
EL
IPSE
S
=
'
\xc9
'
EL
LIPSI
S
=
'
\xc9
'
def
runningOnOSX
():
from
gestalt
import
gestalt
...
...
@@ -74,16 +74,16 @@ class PythonIDE(Wapplication.Application):
def
makeusermenus
(
self
):
m
=
Wapplication
.
Menu
(
self
.
menubar
,
"File"
)
newitem
=
FrameWork
.
MenuItem
(
m
,
"New"
,
"N"
,
'new'
)
openitem
=
FrameWork
.
MenuItem
(
m
,
"Open"
+
EL
IPSE
S
,
"O"
,
'open'
)
openbynameitem
=
FrameWork
.
MenuItem
(
m
,
"Open File by Name"
+
EL
IPSE
S
,
"D"
,
'openbyname'
)
openitem
=
FrameWork
.
MenuItem
(
m
,
"Open"
+
EL
LIPSI
S
,
"O"
,
'open'
)
openbynameitem
=
FrameWork
.
MenuItem
(
m
,
"Open File by Name"
+
EL
LIPSI
S
,
"D"
,
'openbyname'
)
self
.
openrecentmenu
=
FrameWork
.
SubMenu
(
m
,
"Open Recent"
)
self
.
makeopenrecentmenu
()
FrameWork
.
Separator
(
m
)
closeitem
=
FrameWork
.
MenuItem
(
m
,
"Close"
,
"W"
,
'close'
)
saveitem
=
FrameWork
.
MenuItem
(
m
,
"Save"
,
"S"
,
'save'
)
saveasitem
=
FrameWork
.
MenuItem
(
m
,
"Save as"
+
EL
IPSE
S
,
None
,
'save_as'
)
saveasitem
=
FrameWork
.
MenuItem
(
m
,
"Save as"
+
EL
LIPSI
S
,
None
,
'save_as'
)
FrameWork
.
Separator
(
m
)
saveasappletitem
=
FrameWork
.
MenuItem
(
m
,
"Save as Applet"
+
EL
IPSE
S
,
None
,
'save_as_applet'
)
saveasappletitem
=
FrameWork
.
MenuItem
(
m
,
"Save as Applet"
+
EL
LIPSI
S
,
None
,
'save_as_applet'
)
FrameWork
.
Separator
(
m
)
instmgritem
=
FrameWork
.
MenuItem
(
m
,
"Package Manager"
,
None
,
'openpackagemanager'
)
gensuiteitem
=
FrameWork
.
MenuItem
(
m
,
"Generate OSA Suite..."
,
None
,
'gensuite'
)
...
...
@@ -104,7 +104,7 @@ class PythonIDE(Wapplication.Application):
selallitem
=
FrameWork
.
MenuItem
(
m
,
"Select all"
,
"A"
,
"selectall"
)
sellineitem
=
FrameWork
.
MenuItem
(
m
,
"Select line"
,
"L"
,
"selectline"
)
FrameWork
.
Separator
(
m
)
finditem
=
FrameWork
.
MenuItem
(
m
,
"Find"
+
EL
IPSE
S
,
"F"
,
"find"
)
finditem
=
FrameWork
.
MenuItem
(
m
,
"Find"
+
EL
LIPSI
S
,
"F"
,
"find"
)
findagainitem
=
FrameWork
.
MenuItem
(
m
,
"Find again"
,
'G'
,
"findnext"
)
enterselitem
=
FrameWork
.
MenuItem
(
m
,
"Enter search string"
,
"E"
,
"entersearchstring"
)
replaceitem
=
FrameWork
.
MenuItem
(
m
,
"Replace"
,
None
,
"replace"
)
...
...
@@ -117,12 +117,12 @@ class PythonIDE(Wapplication.Application):
runitem
=
FrameWork
.
MenuItem
(
m
,
"Run window"
,
"R"
,
'run'
)
runselitem
=
FrameWork
.
MenuItem
(
m
,
"Run selection"
,
None
,
'runselection'
)
FrameWork
.
Separator
(
m
)
moditem
=
FrameWork
.
MenuItem
(
m
,
"Module browser"
+
EL
IPSE
S
,
"M"
,
self
.
domenu_modulebrowser
)
moditem
=
FrameWork
.
MenuItem
(
m
,
"Module browser"
+
EL
LIPSI
S
,
"M"
,
self
.
domenu_modulebrowser
)
FrameWork
.
Separator
(
m
)
mm
=
FrameWork
.
SubMenu
(
m
,
"Preferences"
)
FrameWork
.
MenuItem
(
mm
,
"Set Scripts folder"
+
EL
IPSE
S
,
None
,
self
.
do_setscriptsfolder
)
FrameWork
.
MenuItem
(
mm
,
"Editor default settings"
+
EL
IPSE
S
,
None
,
self
.
do_editorprefs
)
FrameWork
.
MenuItem
(
mm
,
"Set default window font"
+
EL
IPSE
S
,
None
,
self
.
do_setwindowfont
)
FrameWork
.
MenuItem
(
mm
,
"Set Scripts folder"
+
EL
LIPSI
S
,
None
,
self
.
do_setscriptsfolder
)
FrameWork
.
MenuItem
(
mm
,
"Editor default settings"
+
EL
LIPSI
S
,
None
,
self
.
do_editorprefs
)
FrameWork
.
MenuItem
(
mm
,
"Set default window font"
+
EL
LIPSI
S
,
None
,
self
.
do_setwindowfont
)
self
.
openwindowsmenu
=
Wapplication
.
Menu
(
self
.
menubar
,
'Windows'
)
self
.
makeopenwindowsmenu
()
...
...
@@ -146,7 +146,7 @@ class PythonIDE(Wapplication.Application):
path
=
os
.
path
.
join
(
os
.
getcwd
(),
"Scripts"
)
if
not
os
.
path
.
exists
(
path
):
os
.
makedirs
(
path
)
f
=
open
(
os
.
path
.
join
(
path
,
"Place your scripts here"
+
EL
IPSE
S
),
"w"
)
f
=
open
(
os
.
path
.
join
(
path
,
"Place your scripts here"
+
EL
LIPSI
S
),
"w"
)
f
.
close
()
fsr
=
File
.
FSRef
(
path
)
self
.
scriptsfolder
=
fsr
.
FSNewAliasMinimal
()
...
...
@@ -196,7 +196,7 @@ class PythonIDE(Wapplication.Application):
W
.
Message
(
"Can't open file of type '
%
s'."
%
ftype
)
def
getabouttext
(
self
):
return
"About Python IDE"
+
EL
IPSE
S
return
"About Python IDE"
+
EL
LIPSI
S
def
do_about
(
self
,
id
,
item
,
window
,
event
):
Splash
.
about
()
...
...
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