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
4b685bf7
Kaydet (Commit)
4b685bf7
authored
Nis 17, 2018
tarafından
Andrés Delfino
Kaydeden (comit)
Serhiy Storchaka
Nis 17, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)
üst
a00d440e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
tkinter.rst
Doc/library/tkinter.rst
+5
-4
__init__.py
Lib/tkinter/__init__.py
+2
-2
No files found.
Doc/library/tkinter.rst
Dosyayı görüntüle @
4b685bf7
...
...
@@ -783,12 +783,13 @@ Menu indexes (menu.invoke(), menu.entryconfig(), etc.)
Images
^^^^^^
Bitmap/Pixelmap images can be created through the subclasses of
:class:`tkinter.Image`:
Images of different formats can be created through the corresponding subclass
of
:class:`tkinter.Image`:
* :class:`BitmapImage`
can be used for X11 bitmap data
.
* :class:`BitmapImage`
for images in XBM format
.
* :class:`PhotoImage` can be used for GIF and PPM/PGM color bitmaps.
* :class:`PhotoImage` for images in PGM, PPM, GIF and PNG formats. The latter
is supported starting with Tk 8.6.
Either type of image is created through either the ``file`` or the ``data``
option (other options are available as well).
...
...
Lib/tkinter/__init__.py
Dosyayı görüntüle @
4b685bf7
...
...
@@ -3533,7 +3533,7 @@ class Image:
self
.
tk
.
call
(
'image'
,
'width'
,
self
.
name
))
class
PhotoImage
(
Image
):
"""Widget which can display
colored images in GIF, PPM/PGM
format."""
"""Widget which can display
images in PGM, PPM, GIF, PNG
format."""
def
__init__
(
self
,
name
=
None
,
cnf
=
{},
master
=
None
,
**
kw
):
"""Create an image with NAME.
...
...
@@ -3597,7 +3597,7 @@ class PhotoImage(Image):
self
.
tk
.
call
(
args
)
class
BitmapImage
(
Image
):
"""Widget which can display
a bitmap
."""
"""Widget which can display
images in XBM format
."""
def
__init__
(
self
,
name
=
None
,
cnf
=
{},
master
=
None
,
**
kw
):
"""Create a bitmap with NAME.
...
...
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