This document provides an overview of using Python and GTK to build graphical user interfaces (GUIs). Some key points:
- GTK is a cross-platform GUI toolkit that can be used with Python to develop applications for Linux, Windows, and Mac.
- The document demonstrates basic GTK widgets like windows, buttons, labels and layout containers. It also covers using event handlers and object-oriented programming with GTK.
- More advanced topics covered include using threads to prevent the GUI from freezing during long operations, loading interfaces from UI files, and building a weather checking application with model-view architecture.
18. 數值指定
不需要宣告形態
● String ● Boolean
●
var = "this is String" ●
var = True
● Integer ● Float
●
var = 1 ●
var = 0.1
String var = "this is String";
int var = 1;
boolean var = true;
float var = 0.1;