Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Tkinter w.pack()?

Reply
Thread Tools

Tkinter w.pack()?

 
 
W. eWatson
Guest
Posts: n/a
 
      01-29-2009
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/>

 
Reply With Quote
 
 
 
 
r
Guest
Posts: n/a
 
      01-29-2009
On Jan 28, 10:12*pm, "W. eWatson" <(E-Mail Removed)> wrote:
> 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
 
Reply With Quote
 
 
 
 
r
Guest
Posts: n/a
 
      01-29-2009
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


Everything you need to know about Tkinter exists here:
http://effbot.org/tkinterbook/

and at the NMT site i showed you before
 
Reply With Quote
 
W. eWatson
Guest
Posts: n/a
 
      01-29-2009
r wrote:
> On Jan 28, 10:12 pm, "W. eWatson" <(E-Mail Removed)> wrote:
>> 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

Thanks. I have the site bookmarked, but it's hard to search. I posted a
comment to them that they should have it in pdf form.

--
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/>

 
Reply With Quote
 
W. eWatson
Guest
Posts: n/a
 
      01-29-2009
r wrote:
> 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/>

 
Reply With Quote
 
Gabriel Genellina
Guest
Posts: n/a
 
      01-29-2009
En Thu, 29 Jan 2009 02:57:04 -0200, W. eWatson <(E-Mail Removed)>
escribió:

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


There is a PDF version of "An Introduction to Tkinter" here:
http://www.pythonware.com/library/

--
Gabriel Genellina

 
Reply With Quote
 
r
Guest
Posts: n/a
 
      01-29-2009
On Jan 28, 10:57*pm, "W. eWatson" <(E-Mail Removed)> wrote:
> 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.
 
Reply With Quote
 
Steve Holden
Guest
Posts: n/a
 
      01-29-2009
W. eWatson wrote:
> r wrote:
>> On Jan 28, 10:12 pm, "W. eWatson" <(E-Mail Removed)> wrote:
>>> 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

> Thanks. I have the site bookmarked, but it's hard to search. I posted a
> comment to them that they should have it in pdf form.
>

http://letmegooglethatforyou.com/?q=...interbook+pack

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

 
Reply With Quote
 
W. eWatson
Guest
Posts: n/a
 
      01-29-2009
Gabriel Genellina wrote:
> En Thu, 29 Jan 2009 02:57:04 -0200, W. eWatson <(E-Mail Removed)>
> escribió:
>
>> The word pack doesn't exist on the NMT pdf. Maybe there's a newer one?

>
> 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/>

 
Reply With Quote
 
W. eWatson
Guest
Posts: n/a
 
      01-29-2009
r wrote:
> On Jan 28, 10:57 pm, "W. eWatson" <(E-Mail Removed)> wrote:
>> 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.

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/>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: What is the differences between tkinter in windows and Tkinter inthe other platform? Hidekazu IWAKI Python 0 12-15-2009 05:58 AM
What is the differences between tkinter in windows and Tkinter in theother platform? Hidekazu IWAKI Python 1 12-14-2009 03:44 PM
from Tkinter import *,win = Tk() "from Tkinter import *" Pierre Dagenais Python 0 08-03-2008 10:33 PM
Re: [Tkinter-discuss] Please help -- Tkinter Scale widget withDoubleVar is acting weird Jeff Epler Python 0 08-23-2004 02:31 PM
Re: [Tkinter-discuss] Please help -- Tkinter Scale widget withDoubleVar is acting weird Jeff Epler Python 0 08-20-2004 12:07 PM



Advertisments