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: Python Tkinter How To Use The Message Widget For Blocks of Text/HowToUseTheMessageWidgetForBlocksofText.py
+38-1Lines changed: 38 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,44 @@
7
7
root=Tk()
8
8
root.title("Python Tkinter How To Use The Message Widget For Blocks of Text")
9
9
root.iconbitmap("Python Tkinter How To Use The Message Widget For Blocks of Text/icons/hulk.ico")
10
-
root.geometry("500x400")
10
+
root.geometry("500x800")
11
+
12
+
defchange():
13
+
my_message.config(text="And now something complety defferent!")
14
+
15
+
# First One
16
+
frame1=LabelFrame(root, text="Left Justified")
17
+
frame1.pack(pady=20)
18
+
19
+
my_message=Message(frame1, text="This is some \n long text i am typing so that we can lok at it, isn look ",
20
+
font=("Helvetica", 18),
21
+
aspect=150,
22
+
justify=LEFT)
23
+
my_message.pack(pady=10, padx=10)
24
+
25
+
# Seconds One
26
+
frame2=LabelFrame(root, text="Right Justified")
27
+
frame2.pack(pady=20)
28
+
29
+
my_message2=Message(frame2, text="This is some \n long text i am typing so that we can lok at it, isn look ",
30
+
font=("Helvetica", 18),
31
+
aspect=150,
32
+
justify=RIGHT)
33
+
my_message2.pack(pady=10, padx=10)
34
+
35
+
# Thrird One
36
+
frame3=LabelFrame(root, text="Center Justified")
37
+
frame3.pack(pady=20)
38
+
39
+
my_message3=Message(frame3, text="This is some \n long text i am typing so that we can lok at it, isn look ",
0 commit comments