Tkinter w.pack()?

W

W. eWatson

Where in the world is a description of pack() for Tkinter widgets? Is it
some sort of general method for all widgets? I'm looking in a few docs that
use it without ever saying where it is described. For one,
<http://effbot.org/tkinterbook/label.htm>. In the NM Tech pdf on Tkinter,
it's not found anywhere. I see Universal methods for widgets, but no mention
of pack(). package, packed, but no pack.

While I'm at it, what is w in the result of w = Label(parent, image=photo)?
Just a widget pointer, address?
--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>
 
R

r

Where in the world is a description of pack() for Tkinter widgets? Is it
some sort of general method for all widgets? I'm looking in a few docs that
use it without ever saying where it is described. For one,
<http://effbot.org/tkinterbook/label.htm>. In the NM Tech pdf on Tkinter,
it's not found anywhere. I see Universal methods for widgets, but no mention
of pack(). package, packed, but no pack.

did you try here :)
http://effbot.org/tkinterbook/pack.htm
 
W

W. eWatson

r said:
To expand on this there exists three geometry mangers [grid, pack,
place]. I personally use pack() the most, grid() almost never, and
place -- well never. But each one has it's strengths and weaknesses.

w.grid()
http://effbot.org/tkinterbook/grid.htm

w.place()
http://effbot.org/tkinterbook/place.htm
There seems to be a pattern here. :)
Everything you need to know about Tkinter exists here:
http://effbot.org/tkinterbook/

and at the NMT site i showed you before
The word pack doesn't exist on the NMT pdf. Maybe there's a newer one?

--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>
 
R

r

The word pack doesn't exist on the NMT pdf. Maybe there's a newer one?

Only the grid manager is discussed at NMT. I just like how at NMT the
widget attributes are in a table and then a list the widget methods
follows below that -- much better navigation.

I talked again to John at NMT and he assured me very soon he's going
to make all the updates. It would probably help if you sent him a nice
message of encouragement like -- 'Can you please update the
documentation, i really like the sites layout?' -- but please don't
forget to thank him for all his contributions to the Python community.

I am currently crusading to have all the old Python tuts and
documentation updated(among other crusades). This was my second win
and i hope that more will follow. The python docs out there need a
dusting off and spit shining.
 
W

W. eWatson

Gabriel said:
There is a PDF version of "An Introduction to Tkinter" here:
http://www.pythonware.com/library/
Thanks. I have it but it's an odd one to search on "pack(". There may be
over 100 reference to pack(. It's probably explained there somewhere, but
how many times do I want to press the search key? I have it printed out too.
I guess I need to eyeball it. It's probably faster. Maybe find the section
(geometry?) where it and others like it are found. There is an index, but
it's a pitiful one page.

Found in Chapter 34.

--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>
 
W

W. eWatson

r said:
Only the grid manager is discussed at NMT. I just like how at NMT the
widget attributes are in a table and then a list the widget methods
follows below that -- much better navigation.

I talked again to John at NMT and he assured me very soon he's going
to make all the updates. It would probably help if you sent him a nice
message of encouragement like -- 'Can you please update the
documentation, i really like the sites layout?' -- but please don't
forget to thank him for all his contributions to the Python community.

I am currently crusading to have all the old Python tuts and
documentation updated(among other crusades). This was my second win
and i hope that more will follow. The python docs out there need a
dusting off and spit shining.
I fully agree with your assessment of their state.

I might not want him to update the NMT. :) Why would that be. I just had it
printed. Another $8! I'm kidding, of course.

Not only is it a good layout, I think it's the best layout out there, IMHO.
I'll contact him. I think one of his other pdf files needs updating too.
Possibly the one for PIL.

--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>
 
G

Gabriel Genellina

Thanks. I have it but it's an odd one to search on "pack(". There may be
over 100 reference to pack(. It's probably explained there somewhere,
but how many times do I want to press the search key? I have it printed
out too. I guess I need to eyeball it. It's probably faster. Maybe find
the section (geometry?) where it and others like it are found. There is
an index, but it's a pitiful one page.

Uh? The very first occurence of "pack" is in the Table of Contents, "The
pack geometry manager". (You may want to improve your search skills :) )
 
W

W. eWatson

W

W. eWatson

Gabriel said:
Uh? The very first occurence of "pack" is in the Table of Contents, "The
pack geometry manager". (You may want to improve your search skills :) )
Yes, that's correct, but I was looking for "pack(". It all depends on one's
perspective on how to search. I'll not labor the point.

--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>
 
S

Steve Holden

W. eWatson said:
Well, that's an interesting "link". Another side of Google facilities?
Maybe you're using Snagit or its brethern? However, I'm interested in
searching a pdf, which, of course, doesn't yet exist.
OK, someone asked if you'd seen the HTML pages. You replied that you had
them bookmarked but they were difficult to search. So I simply
demonstrated that a search of the site for "pack" gave the right page as
its first result.

Maybe you *do* want a PDF, but it will be less searchable than the
existing HTML, so I am somewhat confused about why.

regards
Steve
 
W

W. eWatson

Steve said:
OK, someone asked if you'd seen the HTML pages. You replied that you had
them bookmarked but they were difficult to search. So I simply
demonstrated that a search of the site for "pack" gave the right page as
its first result.

Maybe you *do* want a PDF, but it will be less searchable than the
existing HTML, so I am somewhat confused about why.

regards
Steve
So what are you telling me? I should use Google to search the web site? If
so, I guess I missed the method you used. Apparently, it hinges on the key
"site:" The use of your video tool camouflaged your intent, IMHO.

--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>
 
S

Steve Holden

W. eWatson said:
So what are you telling me? I should use Google to search the web site?
If so, I guess I missed the method you used. Apparently, it hinges on
the key "site:" The use of your video tool camouflaged your intent, IMHO.
The use of "letmegooglethatforyou" (not my video tool, by the way) is to
point out that with the right search string you could have answered the
question for yourself.

Since you didn't appear to know that Google allowed you to search a
single site (something I perhaps take for granted) I am glad that point
wasn't lost. Yes, you can just search the PIL documentation. Isn't the
Internet great? ;-)

regards
Steve
 
W

W. eWatson

....
The use of "letmegooglethatforyou" (not my video tool, by the way) is to
point out that with the right search string you could have answered the
question for yourself.

Since you didn't appear to know that Google allowed you to search a
single site (something I perhaps take for granted) I am glad that point
wasn't lost. Yes, you can just search the PIL documentation. Isn't the
Internet great? ;-)

regards
Steve
Yes, I agree on the internet, and I now see "letme...com. So, I've now tried
in my browser's link window:
site:effbot.org/tkinterbook tkfiledialog, and get "site is not a registered
protocol."

If I put the "site:..." in the Google window,it works fine. In fact it's
quite clever.

I thought some months ago, I found Google commands that would operate in the
browser link window. Guess not.

BTW, isn't there an O'Reilly book on Google hacks of this sort? Where else
does one find out about these Google tools?

--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>
 
M

MRAB

W. eWatson said:
...
Yes, I agree on the internet, and I now see "letme...com. So, I've now
tried in my browser's link window:
site:effbot.org/tkinterbook tkfiledialog, and get "site is not a
registered protocol."

If I put the "site:..." in the Google window,it works fine. In fact it's
quite clever.

I thought some months ago, I found Google commands that would operate in
the browser link window. Guess not.

BTW, isn't there an O'Reilly book on Google hacks of this sort? Where
else does one find out about these Google tools?
Google? :)

http://www.google.com/support/websearch/bin/answer.py?hl=en&answer=136861
 
S

Steve Holden

W. eWatson said:
...
Yes, I agree on the internet, and I now see "letme...com. So, I've now
tried in my browser's link window:
site:effbot.org/tkinterbook tkfiledialog, and get "site is not a
registered protocol."

If I put the "site:..." in the Google window,it works fine. In fact it's
quite clever.

I thought some months ago, I found Google commands that would operate in
the browser link window. Guess not.

BTW, isn't there an O'Reilly book on Google hacks of this sort? Where
else does one find out about these Google tools?
I seem to pick them up as I go along. This group is actually a great
source of google-fu enhancements - I believe this is where I found out
about "letmegooglethatforyou".

Of course you can do any Google search and then look at what Google puts
in your Location: bar. Saving that URL means you can repeat the same
search later, but you can also analyze it to find out about some useful
tricks (and "letme..." uses the same everything except for the domain
name). So your site search would also work with

http://www.google.com/search?q=site:effbot.org+tkinterbook+pack

Of course it would be relatively easy to write a Python program that
used the browser module to do this kind of search ...

regards
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top