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
3fe1b14c
Kaydet (Commit)
3fe1b14c
authored
Kas 18, 1998
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
A little more tweakage
üst
2858b436
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
Main.py
Tools/pynche/Main.py
+19
-4
No files found.
Tools/pynche/Main.py
Dosyayı görüntüle @
3fe1b14c
"""Pynche: The PYthon Natural Color and Hue Editor.
"""Pynche -- The PYthon Natural Color and Hue Editor.
Author: Barry Warsaw
Email: bwarsaw@python.org
Version:
%(__version__)
s
Pynche is based largely on a similar color editor I wrote years ago for the
Sunview window system. That editor was called ICE: the Interactive Color
...
...
@@ -12,7 +16,7 @@ This program currently requires Python 1.5 with Tkinter. It has only been
tested on Solaris 2.6. Feedback is greatly appreciated. Send email to
bwarsaw@python.org
Usage:
%(PROGRAM)
s [-d file] [-i file] [-X] [-h] [initialcolor]
Usage:
%(PROGRAM)
s [-d file] [-i file] [-X] [-
v] [-
h] [initialcolor]
Where:
--database file
...
...
@@ -32,6 +36,10 @@ Where:
Ignore the initialization file when starting up. Pynche will still
write the current option settings to this file when it quits.
--version
-v
print the version number
--help
-h
print this message
...
...
@@ -156,8 +164,8 @@ def main():
try
:
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'hd:i:X'
,
[
'database='
,
'initfile='
,
'ignore'
,
'help'
])
'hd:i:X
v
'
,
[
'database='
,
'initfile='
,
'ignore'
,
'help'
,
'version'
])
except
getopt
.
error
,
msg
:
usage
(
1
,
msg
)
...
...
@@ -173,6 +181,13 @@ def main():
for
opt
,
arg
in
opts
:
if
opt
in
(
'-h'
,
'--help'
):
usage
(
0
)
elif
opt
in
(
'-v'
,
'--version'
):
print
'''
\
Pynche -- The PYthon Natural Color and Hue Editor.
Author: Barry Warsaw
Email: bwarsaw@python.org
Version:
%
s'''
%
__version__
sys
.
exit
(
0
)
elif
opt
in
(
'-d'
,
'--database'
):
RGB_TXT
.
insert
(
0
,
arg
)
elif
opt
in
(
'-X'
,
'--ignore'
):
...
...
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