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
ad8381a8
Kaydet (Commit)
ad8381a8
authored
Ara 31, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use the Carbon scrap manager interface if the old interface isn't available.
üst
420ed403
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
Wlists.py
Mac/Tools/IDE/Wlists.py
+7
-2
Wtext.py
Mac/Tools/IDE/Wtext.py
+8
-2
Wwindows.py
Mac/Tools/IDE/Wwindows.py
+7
-2
No files found.
Mac/Tools/IDE/Wlists.py
Dosyayı görüntüle @
ad8381a8
...
@@ -176,8 +176,13 @@ class List(Wbase.SelectableWidget):
...
@@ -176,8 +176,13 @@ class List(Wbase.SelectableWidget):
selitems
.
append
(
str
(
self
.
items
[
i
]))
selitems
.
append
(
str
(
self
.
items
[
i
]))
text
=
string
.
join
(
selitems
,
'
\r
'
)
text
=
string
.
join
(
selitems
,
'
\r
'
)
if
text
:
if
text
:
Scrap
.
ZeroScrap
()
if
hasattr
(
Scrap
,
'PutScrap'
):
Scrap
.
PutScrap
(
'TEXT'
,
text
)
Scrap
.
ZeroScrap
()
Scrap
.
PutScrap
(
'TEXT'
,
text
)
else
:
Scrap
.
ClearCurrentScrap
()
sc
=
Scrap
.
GetCurrentScrap
()
sc
.
PutScrapFlavor
(
'TEXT'
,
0
,
text
)
def
can_copy
(
self
,
*
args
):
def
can_copy
(
self
,
*
args
):
return
len
(
self
.
getselection
())
<>
0
return
len
(
self
.
getselection
())
<>
0
...
...
Mac/Tools/IDE/Wtext.py
Dosyayı görüntüle @
ad8381a8
...
@@ -430,7 +430,10 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
...
@@ -430,7 +430,10 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
selbegin
,
selend
=
self
.
ted
.
WEGetSelection
()
selbegin
,
selend
=
self
.
ted
.
WEGetSelection
()
if
selbegin
==
selend
:
if
selbegin
==
selend
:
return
return
Scrap
.
ZeroScrap
()
if
hasattr
(
Scrap
,
'ZeroScrap'
):
Scrap
.
ZeroScrap
()
else
:
Scrap
.
ClearCurrentScrap
()
self
.
ted
.
WECopy
()
self
.
ted
.
WECopy
()
self
.
updatescrollbars
()
self
.
updatescrollbars
()
...
@@ -438,7 +441,10 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
...
@@ -438,7 +441,10 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
selbegin
,
selend
=
self
.
ted
.
WEGetSelection
()
selbegin
,
selend
=
self
.
ted
.
WEGetSelection
()
if
selbegin
==
selend
:
if
selbegin
==
selend
:
return
return
Scrap
.
ZeroScrap
()
if
hasattr
(
Scrap
,
'ZeroScrap'
):
Scrap
.
ZeroScrap
()
else
:
Scrap
.
ClearCurrentScrap
()
self
.
ted
.
WECut
()
self
.
ted
.
WECut
()
self
.
updatescrollbars
()
self
.
updatescrollbars
()
self
.
selview
()
self
.
selview
()
...
...
Mac/Tools/IDE/Wwindows.py
Dosyayı görüntüle @
ad8381a8
...
@@ -564,8 +564,13 @@ def FrontWindowInsert(stuff):
...
@@ -564,8 +564,13 @@ def FrontWindowInsert(stuff):
"Can't find window or widget to insert text into; copy to clipboard instead?"
,
"Can't find window or widget to insert text into; copy to clipboard instead?"
,
1
)
==
1
:
1
)
==
1
:
from
Carbon
import
Scrap
from
Carbon
import
Scrap
Scrap
.
ZeroScrap
()
if
hasattr
(
Scrap
,
'PutScrap'
):
Scrap
.
PutScrap
(
'TEXT'
,
stuff
)
Scrap
.
ZeroScrap
()
Scrap
.
PutScrap
(
'TEXT'
,
stuff
)
else
:
Scrap
.
ClearCurrentScrap
()
sc
=
Scrap
.
GetCurrentScrap
()
sc
.
PutScrapFlavor
(
'TEXT'
,
0
,
stuff
)
# not quite based on the same function in FrameWork
# not quite based on the same function in FrameWork
...
...
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