<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
As I understand it, there are three geometry managers: Grids, Pack and
Place. Only the first two are of interest. <br>
<br>
Is it possible to mix them? I don't think so, but maybe I'm missing
something. Generally, they seem to apply with respect to a Frame, so I
would think only one geometry can be used in a Frame. However, if one
is used for frameA and another for frameB, can they both be used with
in a parent frame, which has its own geometry (grid or pack)?<br>
<br>
Suppose I want a parent frame to have a title and below it a 2 column
grid with say a Label and Entry. I put the latter in a frame combo in a
frame, and attach it to the parent. Do I need to put the title/label in
a frame and do the same? Let' see if the following code clarifies this.
<br>
<br>
First, the resulting dialog looks like this:<br>
<br>
-------------------------------------------------------<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; G<b>eographic Location</b><br>
&nbsp;&nbsp;&nbsp; Latitude:BOXLongitude:BOX<br>
&nbsp;Zenith x:Zenithy:BOX<b>Zenith Pixel Position</b><br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OK&nbsp;&nbsp; Cancel&nbsp;&nbsp; &lt;- Std buttons<br>
---------------------------------------------------------<br>
BOX = a rectangle for data entry. There's very little separation
between labels and entries. Title labels are in bold.<br>
<br>
Stuff is kind of jammed together, the "Zenith Pixel Position" title
should be one line up. My guess is that I need to use the weight
concept available with Grid, columnconfigure and rowconfigure to
justify and open up the data entry rows. Perhaps there's a geometry
tutor somewhere on the web. Bits and pieces of this stuff is scattered
around the web.<br>
<br>
=======================Start==========<br>
# Location/Misc Dialog Prototype<br>
from&nbsp;&nbsp; Tkinter import *<br>
from&nbsp;&nbsp; tkSimpleDialog import Dialog<br>
import tkSimpleDialog<br>
import tkMessageBox<br>
<br>
class DialogPrototype(Dialog):<br>
<br>
&nbsp;&nbsp;&nbsp; def body(self, master):<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Titles<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fLocationTitle = Frame(master)&nbsp; # fL... for frame<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fLocationTitle.pack()<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Sub entries<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fCoords = Frame(master)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fCoords.pack(side=TOP)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fZenith = Frame(master)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fZenith.pack(side=LEFT)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.title("Enter Site/Misc. Data")<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Latitude and Longitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label(fLocationTitle, text="Geographic
Location").grid(row=0,column=0)<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label(fCoords, text='Latitude:').grid(row=0, sticky=W)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.lat = Entry(fCoords, width=12)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.lat.grid(row=0, column=1)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label(fCoords, text='Longitude:').grid(row=0, column=2)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.long = Entry(fCoords, width=12)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.long.grid(row=0, column=3)<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Zenith pixels<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fZenithTitle = Frame(master) <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fZenithTitle.pack(side=TOP)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label(fZenithTitle, text="Zenith Pixel
Position").grid(row=0,column=0)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label(fZenith, text='Zenith x:').grid(row=0, sticky=W)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.zenith_x = Entry(fZenith, width=6)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.zenith_x.grid(row=0, column=1)<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label(fZenith, text='Zenith y:').grid(row=0, column=2)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.zenith_y = Entry(fZenith, width=6)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.zenith_y.grid(row=0, column=3)<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return<br>
========end==============
<div class="moz-signature">-- <br>
<meta content="text/html;" http-equiv="Content-Type">
<title>Signature.html</title>
<pre class="moz-signature" cols="76">           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)<span
 style="font-weight: bold;"></span><b><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="color: rgb(255, 153, 255);"></span><span
 style="font-family: monospace;"></span></b></b>
<span style="color: rgb(102, 0, 204);"></span><span
 style="color: rgb(102, 0, 204);"></span>

<span style="color: rgb(102, 0, 204);">                </span><font
 class="sqq"><span style="color: rgb(102, 0, 204);">&#8220;</span><span
 class="sqq" style="color: rgb(102, 0, 204);">Life is one damn thing after another."
                     -- Mark Twain </span></font>
</pre>
</div>
</body>
</html>