




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1交互界面設(shè)計(jì)6.1tkinter基礎(chǔ)GUI介紹26.1tkinter基礎(chǔ)GUI介紹36.1tkinter基礎(chǔ)4步法創(chuàng)建tkinter窗口第一步,導(dǎo)入tkinter模塊;第二步,申請(qǐng)frame或Toplevel控件作為容器使用;第三步,創(chuàng)建其他控件;第四步,通過GM(geometrymanager)管理整個(gè)控件區(qū)域組織。46.1tkinter基礎(chǔ)4步法創(chuàng)建tkinter窗口56.1tkinter基礎(chǔ)4步法創(chuàng)建tkinter窗口66.1tkinter基礎(chǔ)4步法創(chuàng)建tkinter窗口76.1tkinter基礎(chǔ)4步法創(chuàng)建tkinter窗口86.1tkinter基礎(chǔ)4步法創(chuàng)建tkinter窗口96.1tkinter基礎(chǔ)4步法創(chuàng)建tkinter窗口106.1tkinter基礎(chǔ)4步法創(chuàng)建tkinter窗口116.1tkinter基礎(chǔ)4步法創(chuàng)建tkinter窗口126.2tkinter控件的屬性與函數(shù)tkinter窗口136.2tkinter控件的屬性與函數(shù)tkinter窗口146.2tkinter控件的屬性與函數(shù)tkinter窗口156.2tkinter控件的屬性與函數(shù)標(biāo)簽Label166.2tkinter控件的屬性與函數(shù)標(biāo)簽Label176.2tkinter控件的屬性與函數(shù)標(biāo)簽Label186.2tkinter控件的屬性與函數(shù)標(biāo)簽Label196.2tkinter控件的屬性與函數(shù)標(biāo)簽Label206.2tkinter控件的屬性與函數(shù)標(biāo)簽Label216.2tkinter控件的屬性與函數(shù)按鈕Button226.2tkinter控件的屬性與函數(shù)按鈕Button236.2tkinter控件的屬性與函數(shù)按鈕Button246.2tkinter控件的屬性與函數(shù)按鈕Button256.2tkinter控件的屬性與函數(shù)按鈕Button266.2tkinter控件的屬性與函數(shù)文本框控件Entry276.2tkinter控件的屬性與函數(shù)文本框控件Entry286.2tkinter控件的屬性與函數(shù)文本框控件Entry296.2tkinter控件的屬性與函數(shù)復(fù)選框Checkbutton306.2tkinter控件的屬性與函數(shù)復(fù)選框Checkbutton316.2tkinter控件的屬性與函數(shù)復(fù)選框Checkbutton326.2tkinter控件的屬性與函數(shù)復(fù)選框Checkbutton336.2tkinter控件的屬性與函數(shù)復(fù)選框Checkbutton346.2tkinter控件的屬性與函數(shù)菜單Menu356.2tkinter控件的屬性與函數(shù)菜單Menu366.2tkinter控件的屬性與函數(shù)菜單Menu376.2tkinter控件的屬性與函數(shù)菜單Menu386.2tkinter控件的屬性與函數(shù)菜單Menu396.2tkinter控件的屬性與函數(shù)菜單Menu406.2tkinter控件的屬性與函數(shù)Menubutton菜單按鈕416.2tkinter控件的屬性與函數(shù)Menubutton菜單按鈕426.2tkinter控件的屬性與函數(shù)Menubutton菜單按鈕436.2tkinter控件的屬性與函數(shù)Listbox列表框446.2tkinter控件的屬性與函數(shù)Listbox列表框456.2tkinter控件的屬性與函數(shù)Listbox列表框466.2tkinter控件的屬性與函數(shù)Listbox列表框476.2tkinter控件的屬性與函數(shù)Listbox列表框486.2tkinter控件的屬性與函數(shù)Listbox列表框496.2tkinter控件的屬性與函數(shù)Scale滑動(dòng)條506.2tkinter控件的屬性與函數(shù)Scale滑動(dòng)條516.2tkinter控件的屬性與函數(shù)Scale滑動(dòng)條526.2tkinter控件的屬性與函數(shù)Scrollbar滾動(dòng)條536.2tkinter控件的屬性與函數(shù)Scrollbar滾動(dòng)條546.2tkinter控件的屬性與函數(shù)Scrollbar滾動(dòng)條556.2tkinter控件的屬性與函數(shù)Scrollbar滾動(dòng)條566.2tkinter控件的屬性與函數(shù)Scale滑動(dòng)條576.2tkinter控件的屬性與函數(shù)Canvas畫布586.2tkinter控件的屬性與函數(shù)Canvas畫布596.2tkinter控件的屬性與函數(shù)Canvas畫布606.2tkinter控件的屬性與函數(shù)Canvas畫布616.2tkinter控件的屬性與函數(shù)Text多行文本626.2tkinter控件的屬性與函數(shù)Text多行文本636.2tkinter控件的屬性與函數(shù)Text多行文本646.2tkinter控件的屬性與函數(shù)Text多行文本656.2tkinter控件的屬性與函數(shù)Canvas畫布666.2tkinter控件的屬性與函數(shù)文本框控件Entry676.2tkinter控件的屬性與函數(shù)其他控件686.2tkinter控件的屬性與函數(shù)其他控件696.2tkinter控件的屬性與函數(shù)其他控件706.3tkinter控件的模塊messagebox模塊716.3tkinter控件的模塊messagebox模塊726.3tkinter控件的模塊simpledialog模塊736.3tkinter控件的模塊simpledialog模塊746.3tkinter控件的模塊simpledialog模塊756.3tkinter控件的模塊simpledialog模塊766.3tkinter控件的模塊tkinter.filedialog模塊776.3tkinter控件的模塊tkinter.filedialog模塊786.3tkinter控件的模塊tkinter.filedialog模塊796.3tkinter控件的模塊tkinter.filedialog模塊806.3tkinter控件的模塊colorchooser模塊816.3tkinter控件的模塊colorchooser模塊826.4綜合案例分析836.4綜合案例分析設(shè)計(jì)思路第1步:定義按鈕位置,略作修改為四行['7','8','9','/']、['4','5','6','*']、['1','2','3','-']、['0','.','=','+'];第2步:按鈕事件創(chuàng)建功能,包括所有按鈕;第3步:計(jì)算公式,采用eval()函數(shù);第4步:創(chuàng)建一個(gè)tk窗口;第5步:顯示部分,包括文本框輸入和標(biāo)簽顯示;第6步:創(chuàng)建所有計(jì)算器按鈕;第7步:進(jìn)入消息循環(huán)。846.4綜合案例分析856.4綜合案例分析設(shè)計(jì)思路:需要兩個(gè)文件,即包含Gui類的文件(GUIS.py)和應(yīng)用文件(GUI應(yīng)用.py)。Gui類方法包括__init__(self,title='BOM錄入界面')、text_box(self,label)、text_area(self,label)、ch
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 采購(gòu)鈑金件加工合同
- 業(yè)務(wù)代理合同細(xì)節(jié)約定與
- 礦山經(jīng)營(yíng)權(quán)轉(zhuǎn)讓合同2025
- 跨行業(yè)無(wú)息資金支持合作合同
- 度員工薪資合同關(guān)系委托書
- 2025年代購(gòu)商品合同協(xié)議
- 2025年中國(guó)交通銀行個(gè)人房屋按揭貸款合同范文
- 勞動(dòng)合同支付報(bào)酬的相關(guān)規(guī)定
- 2025年建材訂購(gòu)合同(石材類)
- 2025年錄音制品版權(quán)交易合同
- 人教鄂教版-科學(xué)-三年級(jí)下冊(cè)-知識(shí)點(diǎn)
- 2024-2034年中國(guó)注射用賴氨匹林行業(yè)市場(chǎng)競(jìng)爭(zhēng)格局及投資前景展望報(bào)告
- 供應(yīng)鏈可持續(xù)采購(gòu)實(shí)踐
- 菌菇智慧方艙栽培及食用菌菌包中心生產(chǎn)基地項(xiàng)目可行性研究報(bào)告
- 生物工程畢業(yè)設(shè)計(jì)開題報(bào)告
- 園林垃圾處理政策解讀
- GT 42456-2023 工業(yè)自動(dòng)化和控制系統(tǒng)信息安全 IACS組件的安全技術(shù)要求
- 《胎心監(jiān)護(hù)及判讀》
- 養(yǎng)老院管理-護(hù)理員-績(jī)效考核表
- 奧爾夫技能考核方案
- 指數(shù)函數(shù)及其圖像與性質(zhì)教案
評(píng)論
0/150
提交評(píng)論