Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / html / python / lib / node721.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="lib.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="lib.html" title='Python Library Reference' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='index' href='genindex.html' title='Index' />
10<link rel='last' href='about.html' title='About this document...' />
11<link rel='help' href='about.html' title='About this document...' />
12<link rel="next" href="node722.html" />
13<link rel="prev" href="tkinter-basic-mapping.html" />
14<link rel="parent" href="module-Tkinter.html" />
15<link rel="next" href="node722.html" />
16<meta name='aesop' content='information' />
17<title>16.1.5 How Tk and Tkinter are Related</title>
18</head>
19<body>
20<DIV CLASS="navigation">
21<div id='top-navigation-panel' xml:id='top-navigation-panel'>
22<table align="center" width="100%" cellpadding="0" cellspacing="2">
23<tr>
24<td class='online-navigation'><a rel="prev" title="16.1.4 Mapping Basic Tk"
25 href="tkinter-basic-mapping.html"><img src='../icons/previous.png'
26 border='0' height='32' alt='Previous Page' width='32' /></A></td>
27<td class='online-navigation'><a rel="parent" title="16.1 Tkinter "
28 href="module-Tkinter.html"><img src='../icons/up.png'
29 border='0' height='32' alt='Up One Level' width='32' /></A></td>
30<td class='online-navigation'><a rel="next" title="16.1.6 Handy Reference"
31 href="node722.html"><img src='../icons/next.png'
32 border='0' height='32' alt='Next Page' width='32' /></A></td>
33<td align="center" width="100%">Python Library Reference</td>
34<td class='online-navigation'><a rel="contents" title="Table of Contents"
35 href="contents.html"><img src='../icons/contents.png'
36 border='0' height='32' alt='Contents' width='32' /></A></td>
37<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
38 border='0' height='32' alt='Module Index' width='32' /></a></td>
39<td class='online-navigation'><a rel="index" title="Index"
40 href="genindex.html"><img src='../icons/index.png'
41 border='0' height='32' alt='Index' width='32' /></A></td>
42</tr></table>
43<div class='online-navigation'>
44<b class="navlabel">Previous:</b>
45<a class="sectref" rel="prev" href="tkinter-basic-mapping.html">16.1.4 Mapping Basic Tk</A>
46<b class="navlabel">Up:</b>
47<a class="sectref" rel="parent" href="module-Tkinter.html">16.1 Tkinter </A>
48<b class="navlabel">Next:</b>
49<a class="sectref" rel="next" href="node722.html">16.1.6 Handy Reference</A>
50</div>
51<hr /></div>
52</DIV>
53<!--End of Navigation Panel-->
54
55<H2><A NAME="SECTION0018150000000000000000">
5616.1.5 How Tk and Tkinter are Related</A>
57</H2>
58<P>
59<span class="note"><b class="label">Note:</b>
60This was derived from a graphical image; the image will be used
61 more directly in a subsequent version of this document.</span>
62
63<P>
64From the top down:
65<DL>
66<DT><STRONG>Your App Here (Python)</STRONG></DT>
67<DD>A Python application makes a <tt class="module"><a href="module-Tkinter.html">Tkinter</a></tt> call.
68
69<P>
70</DD>
71<DT><STRONG>Tkinter (Python Module)</STRONG></DT>
72<DD>This call (say, for example, creating a button widget), is
73implemented in the <em>Tkinter</em> module, which is written in
74Python. This Python function will parse the commands and the
75arguments and convert them into a form that makes them look as if they
76had come from a Tk script instead of a Python script.
77
78<P>
79</DD>
80<DT><STRONG>tkinter (C)</STRONG></DT>
81<DD>These commands and their arguments will be passed to a C function
82in the <em>tkinter</em> - note the lowercase - extension module.
83
84<P>
85</DD>
86<DT><STRONG>Tk Widgets (C and Tcl)</STRONG></DT>
87<DD>This C function is able to make calls into other C modules,
88including the C functions that make up the Tk library. Tk is
89implemented in C and some Tcl. The Tcl part of the Tk widgets is used
90to bind certain default behaviors to widgets, and is executed once at
91the point where the Python <tt class="module"><a href="module-Tkinter.html">Tkinter</a></tt> module is
92imported. (The user never sees this stage).
93
94<P>
95</DD>
96<DT><STRONG>Tk (C)</STRONG></DT>
97<DD>The Tk part of the Tk Widgets implement the final mapping to ...
98
99<P>
100</DD>
101<DT><STRONG>Xlib (C)</STRONG></DT>
102<DD>the Xlib library to draw graphics on the screen.
103</DD>
104</DL>
105
106<P>
107
108<DIV CLASS="navigation">
109<div class='online-navigation'>
110<p></p><hr />
111<table align="center" width="100%" cellpadding="0" cellspacing="2">
112<tr>
113<td class='online-navigation'><a rel="prev" title="16.1.4 Mapping Basic Tk"
114 href="tkinter-basic-mapping.html"><img src='../icons/previous.png'
115 border='0' height='32' alt='Previous Page' width='32' /></A></td>
116<td class='online-navigation'><a rel="parent" title="16.1 Tkinter "
117 href="module-Tkinter.html"><img src='../icons/up.png'
118 border='0' height='32' alt='Up One Level' width='32' /></A></td>
119<td class='online-navigation'><a rel="next" title="16.1.6 Handy Reference"
120 href="node722.html"><img src='../icons/next.png'
121 border='0' height='32' alt='Next Page' width='32' /></A></td>
122<td align="center" width="100%">Python Library Reference</td>
123<td class='online-navigation'><a rel="contents" title="Table of Contents"
124 href="contents.html"><img src='../icons/contents.png'
125 border='0' height='32' alt='Contents' width='32' /></A></td>
126<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
127 border='0' height='32' alt='Module Index' width='32' /></a></td>
128<td class='online-navigation'><a rel="index" title="Index"
129 href="genindex.html"><img src='../icons/index.png'
130 border='0' height='32' alt='Index' width='32' /></A></td>
131</tr></table>
132<div class='online-navigation'>
133<b class="navlabel">Previous:</b>
134<a class="sectref" rel="prev" href="tkinter-basic-mapping.html">16.1.4 Mapping Basic Tk</A>
135<b class="navlabel">Up:</b>
136<a class="sectref" rel="parent" href="module-Tkinter.html">16.1 Tkinter </A>
137<b class="navlabel">Next:</b>
138<a class="sectref" rel="next" href="node722.html">16.1.6 Handy Reference</A>
139</div>
140</div>
141<hr />
142<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
143</DIV>
144<!--End of Navigation Panel-->
145<ADDRESS>
146See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
147</ADDRESS>
148</BODY>
149</HTML>