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
7092f4ce
Kaydet (Commit)
7092f4ce
authored
Tem 29, 2006
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Bug #1519571] Document some missing functions: setup(), title(), done()
üst
dafb1e59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
libturtle.tex
Doc/lib/libturtle.tex
+39
-0
No files found.
Doc/lib/libturtle.tex
Dosyayı görüntüle @
7092f4ce
...
...
@@ -27,6 +27,45 @@ Set angle measurement units to degrees.
Set angle measurement units to radians.
\end{funcdesc}
\begin{funcdesc}
{
setup
}{
**kwargs
}
Sets the size and position of the main window. Keywords are:
\begin{itemize}
\item
\code
{
width
}
: either a size in pixels or a fraction of the screen.
The default is 50
\%
of the screen.
\item
\code
{
height
}
: either a size in pixels or a fraction of the screen.
The default is 50
\%
of the screen.
\item
\code
{
startx
}
: starting position in pixels from the left edge
of the screen.
\code
{
None
}
is the default value and
centers the window horizontally on screen.
\item
\code
{
starty
}
: starting position in pixels from the top edge
of the screen.
\code
{
None
}
is the default value and
centers the window vertically on screen.
\end{itemize}
Examples:
\begin{verbatim}
# Uses default geometry: 50
% x 50% of screen, centered.
setup()
# Sets window to 200x200 pixels, in upper left of screen
setup (width=200, height=200, startx=0, starty=0)
# Sets window to 75
% of screen by 50% of screen, and centers it.
setup(width=.75, height=0.5, startx=None, starty=None)
\end{verbatim}
\end{funcdesc}
\begin{funcdesc}
{
title
}{
title
_
str
}
Set the window's title to
\var
{
title
}
.
\end{funcdesc}
\begin{funcdesc}
{
done
}{}
Enters the Tk main loop. The window will continue to
be displayed until the user closes it or the process is killed.
\end{funcdesc}
\begin{funcdesc}
{
reset
}{}
Clear the screen, re-center the pen, and set variables to the default
values.
...
...
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