Skip to Content
深入淺出程式設計
book

深入淺出程式設計

by David Griffiths, Paul Barry
August 2011
Intermediate to advanced
444 pages
8h 55m
Chinese
GoTop Information, Inc.
Content preview from 深入淺出程式設計
292 第八章
資料輸入小組件
編程工具
* MVC -
模型,視圖,控制單元
*
把小組件視為視圖。
*
使用資料模型讓你的資料與視圖分
離。
*
假如多個選鈕共用模型,便能夠
協同運作。
* Object API
(物件
API
-
物件提
供的應用程式介面。
*
根據需求動態地為
GUI
小組件填
值。
Python
工具
* Entry() -
tkinter
用來輸入小量
文字
-
一行。
* Text() -
tkinter
用來處理多行
文字。
* Entry
欄位從
0
開始索引。
* Text
欄位以“
row.column
”字串的
形式索引,從“
1.0
”開始。
* tkinter
控制單元 – 讓視圖在資料
改變時被通知。
* StringVar() -
能夠更新
GUI
tkinter
字串變數,「就像變魔術一
樣」。
* RadioButton() -
tkinter
中,當
你想要從一群選項中選擇一項時,
這是很有用的。
* OptionMenu() -
tkinter
中,當你
想要從一「大」群選項中選擇一項
時,這是很有用的。
第八章
編程工具箱
你已經完成第八章的閱讀,回顧一下
學到些什麼。
ch08.indd 292 2011/8/6 上午 02:44:28
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Kubernetes设计模式

Kubernetes设计模式

Bilgin Ibryam, Roland Huß
深入淺出代數

深入淺出代數

Tracey Pilone, Dan Pilone
Kafka权威指南(第2版)

Kafka权威指南(第2版)

Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty

Publisher Resources

ISBN: 9789862762691