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
179048fc
Kaydet (Commit)
179048fc
authored
Tem 10, 2001
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
__init__(): Use augmented assignments.
üst
8e4fa072
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
TextViewer.py
Tools/pynche/TextViewer.py
+5
-3
No files found.
Tools/pynche/TextViewer.py
Dosyayı görüntüle @
179048fc
...
@@ -4,7 +4,7 @@ The TextViewer allows you to see how the selected color would affect various
...
@@ -4,7 +4,7 @@ The TextViewer allows you to see how the selected color would affect various
characteristics of a Tk text widget. This is an output viewer only.
characteristics of a Tk text widget. This is an output viewer only.
In the top part of the window is a standard text widget with some sample text
In the top part of the window is a standard text widget with some sample text
in it. You are free to edit this text in any way you want (
TBD
: allow you to
in it. You are free to edit this text in any way you want (
BAW
: allow you to
change font characteristics). If you want changes in other viewers to update
change font characteristics). If you want changes in other viewers to update
text characteristics, turn on Track color changes.
text characteristics, turn on Track color changes.
...
@@ -20,6 +20,8 @@ import ColorDB
...
@@ -20,6 +20,8 @@ import ColorDB
ADDTOVIEW
=
'Text Window...'
ADDTOVIEW
=
'Text Window...'
class
TextViewer
:
class
TextViewer
:
def
__init__
(
self
,
switchboard
,
master
=
None
):
def
__init__
(
self
,
switchboard
,
master
=
None
):
self
.
__sb
=
switchboard
self
.
__sb
=
switchboard
...
@@ -91,13 +93,13 @@ and choosing a color.'''))
...
@@ -91,13 +93,13 @@ and choosing a color.'''))
l
=
Label
(
frame
,
text
=
text
)
l
=
Label
(
frame
,
text
=
text
)
l
.
grid
(
row
=
row
,
column
=
0
,
sticky
=
E
)
l
.
grid
(
row
=
row
,
column
=
0
,
sticky
=
E
)
self
.
__labels
.
append
(
l
)
self
.
__labels
.
append
(
l
)
row
=
row
+
1
row
+=
1
col
=
1
col
=
1
for
text
in
(
'Foreground'
,
'Background'
):
for
text
in
(
'Foreground'
,
'Background'
):
l
=
Label
(
frame
,
text
=
text
)
l
=
Label
(
frame
,
text
=
text
)
l
.
grid
(
row
=
1
,
column
=
col
)
l
.
grid
(
row
=
1
,
column
=
col
)
self
.
__labels
.
append
(
l
)
self
.
__labels
.
append
(
l
)
col
=
col
+
1
col
+=
1
#
#
# radios
# radios
self
.
__radios
=
[]
self
.
__radios
=
[]
...
...
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