This example shows how to build a GUI by using tkinter.
1. Import tkinter
2. build a window named "win".
3. window format 1: title()
4. window format 2: geometry() determine size and initial position(x,y)
5. window format 3: maxsize() set max size of a window
6. Build Button component and give a string to text
7. Use pack to arrange Button on left side
8. Build Label component and give a string to text
9. Use pack to arrange Build Label on right side
10. use mainloop() to keep window running for monitoring and handling events
這個範例介紹如何使用tkinter建立圖形視窗。
We will share more tutorial videos with people who want to learn LabVIEW and Python welcome to subscribe this channel.
未來會陸續更新影片,讓想學習LabVIEW和Python的朋友可以看影片學習,歡迎訂閱此頻道。
其他網址/related websites:
https://labview-tech.blogspot.com/
https://fishark.pixnet.net/blog
email: jacklee3633 @gmail.com
Line: lvnet
留言列表