By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,536 Members | 1,397 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,536 IT Pros & Developers. It's quick & easy.

Modifying Entry size

P: n/a
Hello.

I'm trying to modify manually the size of a tkinter Entry .
Especialy the width (in pixel for my calc), not in character as the
width property of the widget.

Thanks for help.
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Fouff wrote:
I'm trying to modify manually the size of a tkinter Entry .
Especialy the width (in pixel for my calc), not in character as the
width property of the widget.


That's not directly supported, but you can try this:
Create a Frame, and pack or grid it in the place where you're currently
putting the Entry. Give the frame explicit width= and height= options,
and call .pack_propagate(0) on it so that it ignores the size of its
children. Now create your Entry inside that frame, and pack it with the
fill and expand options turned on.
Jason Harper
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.