<!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>
G<b>eographic Location</b><br>
Latitude:BOXLongitude:BOX<br>
Zenith x:Zenithy:BOX<b>Zenith Pixel Position</b><br>
<br>
OK Cancel <- 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 Tkinter import *<br>
from tkSimpleDialog import Dialog<br>
import tkSimpleDialog<br>
import tkMessageBox<br>
<br>
class DialogPrototype(Dialog):<br>
<br>
def body(self, master):<br>
<br>
# Titles<br>
fLocationTitle = Frame(master) # fL... for frame<br>
fLocationTitle.pack()<br>
<br>
# Sub entries<br>
fCoords = Frame(master)<br>
fCoords.pack(side=TOP)<br>
fZenith = Frame(master)<br>
fZenith.pack(side=LEFT)<br>
<br>
self.title("Enter Site/Misc. Data")<br>
<br>
# Latitude and Longitude<br>
Label(fLocationTitle, text="Geographic
Location").grid(row=0,column=0)<br>
<br>
Label(fCoords, text='Latitude:').grid(row=0, sticky=W)<br>
self.lat = Entry(fCoords, width=12)<br>
self.lat.grid(row=0, column=1)<br>
<br>
Label(fCoords, text='Longitude:').grid(row=0, column=2)<br>
self.long = Entry(fCoords, width=12)<br>
self.long.grid(row=0, column=3)<br>
<br>
# Zenith pixels<br>
fZenithTitle = Frame(master) <br>
fZenithTitle.pack(side=TOP)<br>
Label(fZenithTitle, text="Zenith Pixel
Position").grid(row=0,column=0)<br>
Label(fZenith, text='Zenith x:').grid(row=0, sticky=W)<br>
self.zenith_x = Entry(fZenith, width=6)<br>
self.zenith_x.grid(row=0, column=1)<br>
<br>
Label(fZenith, text='Zenith y:').grid(row=0, column=2)<br>
self.zenith_y = Entry(fZenith, width=6)<br>
self.zenith_y.grid(row=0, column=3)<br>
<br>
return<br>
========end==============<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<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);">“</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>