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
39f00377
Kaydet (Commit)
39f00377
authored
Nis 03, 2012
tarafından
Andrew Svetlov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #802310: Generate always unique tkinter font names if not directly passed
üst
5af3e1af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
font.py
Lib/tkinter/font.py
+4
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/tkinter/font.py
Dosyayı görüntüle @
39f00377
...
...
@@ -8,6 +8,7 @@
__version__
=
"0.9"
import
itertools
import
tkinter
...
...
@@ -46,6 +47,8 @@ class Font:
"""
counter
=
itertools
.
count
(
1
)
def
_set
(
self
,
kw
):
options
=
[]
for
k
,
v
in
kw
.
items
():
...
...
@@ -75,7 +78,7 @@ class Font:
else
:
font
=
self
.
_set
(
options
)
if
not
name
:
name
=
"font"
+
str
(
id
(
self
))
name
=
"font"
+
str
(
next
(
self
.
counter
))
self
.
name
=
name
if
exists
:
...
...
Misc/NEWS
Dosyayı görüntüle @
39f00377
...
...
@@ -19,6 +19,8 @@ Core and Builtins
Library
-------
- Issue #802310: Generate always unique tkinter font names if not directly passed.
- Issue #14151: Raise a ValueError, not a NameError, when trying to create
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms. Patch by Popa Claudiu.
...
...
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