label = tk.Label(window, text="Guess a number that can be anything from '10' to '50', you have 5 chances !!!", fg="black", bg="white", font=("Arial Bold", 25))
label.grid(row=0)
inp = tk.Entry(window)
inp.grid(row=1)
输出应该如下所示:
猜一个数字可以是从'10‘到’50‘.
我试图在大型演示文稿中对齐文本框。每一张幻灯片都包含不同的形状,但只有一个文本框中有文本,我希望这个文本框与幻灯片的中心对齐。目前,我有一行代码可以使文本中心在它自己的文本框中对齐,但我想知道是否有一种方法可以在幻灯片的中间使文本框对齐?
Sub TextSize()
Dim oSl As Slide
Dim oSh As Shape
With ActivePresentation
For Each oSl In .Slides
For Each oSh In oSl.Shapes
With oSh
If