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
43935128
Kaydet (Commit)
43935128
authored
Nis 07, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Finally merged morefindertools into findertools.
üst
501d9047
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
90 deletions
+0
-90
morefindertools.py
Mac/Contrib/morefindertools/morefindertools.py
+0
-0
morefindertoolstest.py
Mac/Contrib/morefindertools/morefindertoolstest.py
+0
-86
readme.txt
Mac/Contrib/morefindertools/readme.txt
+0
-4
findertools.py
Mac/Lib/findertools.py
+0
-0
No files found.
Mac/Contrib/morefindertools/morefindertools.py
deleted
100644 → 0
Dosyayı görüntüle @
501d9047
This diff is collapsed.
Click to expand it.
Mac/Contrib/morefindertools/morefindertoolstest.py
deleted
100644 → 0
Dosyayı görüntüle @
501d9047
"""Some tests of various morefindertools functions.
This does not test the functions that are already defined and tested in findertools.
10 10 2000 erik@letterror.com
"""
import
morefindertools
import
os.path
import
MacOS
import
random
mft
=
morefindertools
print
'
\n
morefindertools version
%
s
\n
Tests coming upŠ'
%
mft
.
__version__
# miscellaneous
print
'
\t
filesharing on?'
,
mft
.
filesharing
()
# is file sharing on, off, starting up?
print
'
\t
OS version'
,
mft
.
OSversion
()
# the version of the system software
# set the soundvolume in a simple way
print
'
\t
System beep volume'
for
i
in
range
(
0
,
7
):
mft
.
volumelevel
(
i
)
MacOS
.
SysBeep
()
# Finder's windows, file location, file attributes
f
=
__file__
# get a path name that is innocent to play with and always works
mft
.
reveal
(
f
)
# reveal this file in a Finder window
mft
.
select
(
f
)
# select this file
base
,
file
=
os
.
path
.
split
(
f
)
mft
.
closewindow
(
base
)
# close the window this file is in (opened by reveal)
mft
.
openwindow
(
base
)
# open it again
mft
.
windowview
(
base
,
1
)
# set the view by list
mft
.
label
(
f
,
2
)
# set the label of this file to something orange
print
'
\t
label'
,
mft
.
label
(
f
)
# get the label of this file
# the file location only works in a window with icon view!
print
'Random locations for an icon'
mft
.
windowview
(
base
,
0
)
# set the view by icon
mft
.
windowsize
(
base
,
(
600
,
600
))
for
i
in
range
(
50
):
mft
.
location
(
f
,
(
random
.
randint
(
10
,
590
),
random
.
randint
(
10
,
590
)))
mft
.
windowsize
(
base
,
(
200
,
400
))
mft
.
windowview
(
base
,
1
)
# set the view by icon
orgpos
=
mft
.
windowposition
(
base
)
print
'Animated window location'
for
i
in
range
(
10
):
pos
=
(
100
+
i
*
10
,
100
+
i
*
10
)
mft
.
windowposition
(
base
,
pos
)
print
'
\t
window position'
,
pos
mft
.
windowposition
(
base
,
orgpos
)
# park it where it was beforeŠ
print
'Put a comment in file'
,
f
,
':'
print
'
\t
'
,
mft
.
comment
(
f
)
# print the Finder comment this file has
s
=
'This is a comment no one reads!'
mft
.
comment
(
f
,
s
)
# set the Finder comment
#
#
# the following code does not work on MacOS versions older than MacOS 9.
#
#
if
0
:
print
'MacOS9 or better specific functions'
# processes
pr
=
mft
.
processes
()
# return a list of tuples with (active_processname, creatorcode)
print
'Return a list of current active processes:'
for
p
in
pr
:
print
'
\t
'
,
p
# get attributes of the first process in the list
print
'Attributes of the first process in the list:'
pinfo
=
mft
.
processinfo
(
pr
[
0
][
0
])
print
'
\t
'
,
pr
[
0
][
0
]
print
'
\t\t
memory partition'
,
pinfo
.
partition
# the memory allocated to this process
print
'
\t\t
memory used'
,
pinfo
.
used
# the memory actuall used by this process
print
'
\t\t
is visible'
,
pinfo
.
visible
# is the process visible to the user
print
'
\t\t
is frontmost'
,
pinfo
.
frontmost
# is the process the front most one?
print
'
\t\t
has scripting'
,
pinfo
.
hasscripting
# is the process scriptable?
print
'
\t\t
accepts high level events'
,
pinfo
.
accepthighlevel
# does the process accept high level appleevents?
print
'Done.'
\ No newline at end of file
Mac/Contrib/morefindertools/readme.txt
deleted
100644 → 0
Dosyayı görüntüle @
501d9047
The morefindertools module is an extension to findertools, donated by Erik
van Blokland, erik@letterror.com. The reason it is included in Contrib in stead
of incorporated in findertools is lack of time before the release, it will be
incorporated in the next release.
Mac/Lib/findertools.py
Dosyayı görüntüle @
43935128
This diff is collapsed.
Click to expand it.
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