第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法在tkinter中將我的按鈕放置到指定的一側(cè)

無法在tkinter中將我的按鈕放置到指定的一側(cè)

紫衣仙女 2021-05-06 18:49:33
我在python 3.6中使用了tkinter,所以我可以學(xué)習(xí)GUI編程。我試圖創(chuàng)建一個按鈕。當(dāng)我嘗試pack按,,或按鈕時left,沒有得到輸出,而frame命令的工作正常。請幫助我。提前致謝。righttopbottomside=top         from tkinter import *         import tkinter as tk         root = tk.Tk()         topframe = Frame(root)         topframe.pack()         bottomframe = Frame(root)         bottomframe.pack(side=BOTTOM)         button1 = Button(topframe, text="helo boys", fg="green")         button1.pack()         button2 = Button(topframe, text="how are you", fg="red")         button2.pack(side=LEFT)         button3 = Button(bottomframe, text="we are fine", fg="blue")         button3.pack(side=RIGHT)         root.mainloop()      
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 221 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號