You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gui-programming.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,10 @@ def click_icon(event):
51
51
52
52
`activebackground` - the background colour of the widget when it is active/under the cursor
53
53
54
-
-`Entry` - a single-line text input field. It can be used to get user input.
54
+
-`Entry` - a single-line text input field. It can be used to get user input.
55
+
56
+
-`entry.insert()` - used to insert text into the entry field at a specific position or set an initial value
57
+
55
58
```python
56
59
entry.insert(0, "Please enter your name")
57
60
entry.insert(5, "*****")
@@ -93,7 +96,7 @@ for item in ["Laudrup", "McCoist", "Albertz", "Ferguson"]:
93
96
# insert the item at the END of the listbox
94
97
hof_gers.insert(tk.END, item)
95
98
```
96
-
*`Canvas` - a widget that can be used to draw shapes, images, and text. Tkinter does not support 3D graphics. For complex 3D graphics, libraries such as [PyOpenGL](https://pyopengl.sourceforge.net/) and [Visualisation Toolkit (VTK)](https://pypi.org/project/vtk/) would be more suitable.
99
+
*`Canvas` - a widget that can be used to draw shapes, images, and text in a window. Tkinter does not support 3D graphics. For complex 3D graphics, libraries such as [PyOpenGL](https://pyopengl.sourceforge.net/) and [Visualisation Toolkit (VTK)](https://pypi.org/project/vtk/) would be more suitable.
0 commit comments