實做文字框框
簡單的格子
1 | from tkinter import * |
結果
使用show參數隱藏字元
使用show參數
1 | addressE = Entry(root, show = "*") |
結果
Enrty的get( )方法
嘗試使用get函數
1 | def printmsg(): |
結果
Entry的insert( )方法
為預設內容
1 | # 省略 |
結果
Enrty的delete( )方法
加在函數裡面
1 | def printmsg(): |
結果
使用eval表達式
輸入型式的計算機 :point_down:
1 | from tkinter import * |
結果