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
44b6f84e
Kaydet (Commit)
44b6f84e
authored
Kas 29, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More information about Tix support, contributed by Mike Clarkson.
üst
6995bb61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
0 deletions
+101
-0
tkinter.tex
Doc/lib/tkinter.tex
+101
-0
No files found.
Doc/lib/tkinter.tex
Dosyayı görüntüle @
44b6f84e
...
...
@@ -1403,6 +1403,107 @@ geometry manager based on attachment rules for all Tk widgets.
%\end{figure}
%end{latexonly}
\subsection
{
Tix Commands
}
\begin
{
classdesc
}{
tixCommand
}{}
The
\ulink
{
tix commands
}
{
http:
//
tix.sourceforge.net
/
dist
/
current
/
man
/
html
/
TixCmd
/
tix.htm
}
provide access to miscellaneous elements of
\refmodule
{
Tix
}
's internal
state and the
\refmodule
{
Tix
}
application context. Most of the information
manipulated by these methods pertains to the application as a whole,
or to a screen or display, rather than to a particular window.
To view the current settings, the common usage is:
\begin
{
verbatim
}
import Tix
root
=
Tix.Tk
()
print root.tix
_
configure
()
\end
{
verbatim
}
\end
{
classdesc
}
\begin
{
methoddesc
}{
tix
_
configure
}{
\optional
{
cnf,
}
**
kw
}
Query or modify the configuration options of the Tix application
context. If no option is specified, returns a dictionary all of the
available options. If option is specified with no value, then the
method returns a list describing the one named option
(
this list will
be identical to the corresponding sublist of the value returned if no
option is specified
)
. If one or more option
-
value pairs are
specified, then the method modifies the given option
(
s
)
to have the
given value
(
s
)
; in this case the method returns an empty string.
Option may be any of the configuration options.
\end
{
methoddesc
}
\begin
{
methoddesc
}{
tix
_
cget
}{
option
}
Returns the current value of the configuration option given by
\var
{
option
}
. Option may be any of the configuration options.
\end
{
methoddesc
}
\begin
{
methoddesc
}{
tix
_
getbitmap
}{
name
}
Locates a bitmap file of the name
\code
{
name.xpm
}
or
\code
{
name
}
in
one of the bitmap directories
(
see the
\method
{
tix
_
addbitmapdir
()
}
method
)
. By using
\method
{
tix
_
getbitmap
()
}
, you can avoid hard
coding the pathnames of the bitmap files in your application. When
successful, it returns the complete pathname of the bitmap file,
prefixed with the character
\samp
{
@
}
. The returned value can be used to
configure the
\code
{
bitmap
}
option of the Tk and Tix widgets.
\end
{
methoddesc
}
\begin
{
methoddesc
}{
tix
_
addbitmapdir
}{
directory
}
Tix maintains a list of directories under which the
\method
{
tix
_
getimage
()
}
and
\method
{
tix
_
getbitmap
()
}
methods will
search for image files. The standard bitmap directory is
\file
{
\$
TIX
_
LIBRARY
/
bitmaps
}
. The
\method
{
tix
_
addbitmapdir
()
}
method
adds
\var
{
directory
}
into this list. By using this method, the image
files of an applications can also be located using the
\method
{
tix
_
getimage
()
}
or
\method
{
tix
_
getbitmap
()
}
method.
\end
{
methoddesc
}
\begin
{
methoddesc
}{
tix
_
filedialog
}{
\optional
{
dlgclass
}}
Returns the file selection dialog that may be shared among different
calls from this application. This method will create a file selection
dialog widget when it is called the first time. This dialog will be
returned by all subsequent calls to
\method
{
tix
_
filedialog
()
}
. An
optional dlgclass parameter can be passed as a string to specified
what type of file selection dialog widget is desired. Possible
options are
\code
{
tix
}
,
\code
{
FileSelectDialog
}
or
\code
{
tixExFileSelectDialog
}
.
\end
{
methoddesc
}
\begin
{
methoddesc
}{
tix
_
getimage
}{
self, name
}
Locates an image file of the name
\file
{
name.xpm
}
,
\file
{
name.xbm
}
or
\file
{
name.ppm
}
in one of the bitmap directories
(
see the
\method
{
tix
_
addbitmapdir
()
}
method above
)
. If more than one file with
the same name
(
but different extensions
)
exist, then the image type is
chosen according to the depth of the X display: xbm images are chosen
on monochrome displays and color images are chosen on color
displays. By using
\method
{
tix
_
getimage
()
}
, you can avoid hard coding
the pathnames of the image files in your application. When successful,
this method returns the name of the newly created image, which can be
used to configure the
\code
{
image
}
option of the Tk and Tix widgets.
\end
{
methoddesc
}
\begin
{
methoddesc
}{
tix
_
option
_
get
}{
name
}
Gets the options manitained by the Tix scheme mechanism.
\end
{
methoddesc
}
\begin
{
methoddesc
}{
tix
_
resetoptions
}{
newScheme, newFontSet
\optional
{
,
newScmPrio
}}
Resets the scheme and fontset of the Tix application to
\var
{
newScheme
}
and
\var
{
newFontSet
}
, respectively. This affects only
those widgets created after this call. Therefore, it is best to call
the resetoptions method before the creation of any widgets in a Tix
application.
The optional parameter
\var
{
newScmPrio
}
can be given to reset the
priority level of the Tk options set by the Tix schemes.
Because of the way Tk handles the X option database, after Tix has
been has imported and inited, it is not possible to reset the color
schemes and font sets using the
\method
{
tix
_
config
()
}
method.
Instead, the
\method
{
tix
_
resetoptions
()
}
method must be used.
\end
{
methoddesc
}
\input
{
libturtle
}
...
...
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