471,325 Members | 1,484 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Tkinter pack_forget() and destroy()

When I am done with a widget that is packed in a Frame, is it safe to
call destroy() method on the widget after calling its pack_forget() or
grid_forget() method?

--

Thanks,
Rajendran.
Jun 28 '07 #1
2 5702
On Thu, 28 Jun 2007 07:45:08 +0200, Rajendran Appavu <ra*****@gmail.com>
wrote:
When I am done with a widget that is packed in a Frame, is it safe to
call destroy() method on the widget after calling its pack_forget() or
grid_forget() method?
Since I do that all the time, I'd say yes... Did you have a problem? Or do
you ask just to be sure?

HTH
--
python -c "print ''.join([chr(154 - ord(c)) for c in
'U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965$l7+-'])"
Jun 28 '07 #2
I asked just to be sure.

Thank you.

Rajendran.
On 6/28/07, Eric Brunel <se***********@no.spamwrote:
On Thu, 28 Jun 2007 07:45:08 +0200, Rajendran Appavu <ra*****@gmail.com>
wrote:
When I am done with a widget that is packed in a Frame, is it safe to
call destroy() method on the widget after calling its pack_forget() or
grid_forget() method?

Since I do that all the time, I'd say yes... Did you have a problem? Or do
you ask just to be sure?

HTH
--
python -c "print ''.join([chr(154 - ord(c)) for c in
'U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965$l7+-'])"
--
http://mail.python.org/mailman/listinfo/python-list

--

Thanks,
Rajendran.
Jun 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.