Join Barron Stone for an in-depth discussion in this video Entering single-line text with the Entry widget, part of Python GUI Development with Tkinter.
When you need your user to enter a short text string,…for example, a username or password,…you should use the entry widget.…It provides a simple, one line text entry box…for the user to type in the information.…However, it is limited to only one line,…so if you need the user to enter multiple lines of text,…then you'll need to use the text widget,…which is covered in later video segments.…I've already imported the TK enter package,…as well as the TK enter module,…and created a top level route window here.…So, let's go ahead and create an entry widget.…
We do so by calling the TTK module,…and then the entry constructor method.…The first parameter, of course, is the parent widget,…which will be my top level window.…Then I'm also going to set the property for width,…and I'll set that to 30.…Now, let's use the pack method…to add the entry widget to our top level window.…So, I did here with this width method,…that controls the size of the entry field.…That's specified in number of characters, not pixels.…
Now, it doesn't limit…
Author
Released
7/30/2014- Installing Python 3 and Tcl/Tk for Mac or Windows
- Creating and configuring themed Tk widgets
- Decorating the GUI with text labels and images
- Capturing input from buttons, menus, and entry fields
- Presenting choices with check boxes and radio buttons
- Using geometry managers to lay out the GUI
- Organizing widgets inside of frames and windows
- Handling user actions with event-driven programming
- Creating a simple drawing tool with the Canvas
- Prompting users with pop-up dialog boxes
Skill Level Intermediate
Duration
Views
Related Courses
-
3ds Max 2015 Essential Training
with Aaron F. Ross10h 43m Beginner -
3ds Max 2013 Essential Training
with Aaron F. Ross7h 9m Beginner -
Git Essential Training
with Kevin Skoglund6h 25m Beginner
-
Introduction
-
Welcome1m 16s
-
What you should know1m 32s
-
-
1. Getting Started with Python and Tkinter
-
Saying hello to Tkinter2m 1s
-
2. Tkinter Concepts
-
Handling user events3m 21s
-
Revisiting Hello, Tkinter!3m 58s
-
3. Basic Widgets
-
Capturing input with buttons6m 45s
-
4. Organizational Widgets
-
5. Advanced Widgets
-
Building cascading menus11m 5s
-
Configuring widget styles9m 50s
-
6. Geometry Management
-
Using the Pack geometry manager13m 37s
-
Using the Grid geometry manager10m 58s
-
Using the Place geometry manager10m 11s
-
-
7. Event Handling
-
Binding to keyboard events9m 24s
-
Binding to mouse events8m 22s
-
Binding to virtual events6m 52s
-
Binding to multiple events5m 19s
-
8. Building an Application
-
Planning the design1m 46s
-
Creating the widgets7m 10s
-
Laying out of the widgets8m 46s
-
Binding to events5m 52s
-
Finishing the GUI with style5m 55s
-
Conclusion
-
Next steps1m 1s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Entering single-line text with the Entry widget