Python GUI programming with PySide.pdf
(
1348 KB
)
Pobierz
Python GUI programming with
PySide
Speaker: BigLittle
Date: 2013/03/04
CLI vs. GUI
CLI
(Command Line Interface)
•
Take less resources.
•
User have much more
control of their system.
•
Only need to execute few
line to perform a task.
GUI
(Graphical User Interface)
•
Easier for user to view and
control your application.
•
Ability of multitasking.
About Python + GUI
•
Some GUI library for Python:
•
•
•
•
Tkinter - Python's standard GUI package. (Tcl/Tk)
wxPython - A Python extension module that wraps
wxWidgets
library.
PyQt4
- A Python binding of the cross-platform GUI toolkit
Qt.
PySide
- A Python binding of the cross-platform GUI toolkit
Qt.
•
Qt
&
wxWidgets
are both well known C++ GUI library:
•
They are free and open source.
•
They are cross-platform and support Unicode.
•
They have full documentation and community support.
Why Qt / PySide?
•
Pros:
•
•
•
•
•
•
It’s NOT MFC style.
Easy to build up by
QtDesigner
or text coding.
Intuitive SIGNAL / SLOT mechanism.
Supports I18N. (Internationalization)
LGPL. (GNU Lesser General Public License)
The API is more Pythonic.
•
Cons:
•
Qt is not written in standard C++ library.
•
Application size is big.
•
blabla……
I don’t care, and you?
Before Starting…
•
Install Python (What?!)
•
http://www.python.org/download
•
User should note the compatibility between version 2.7.x and 3.x.
•
Install Qt
•
http://qt-project.org/downloads
•
The latest version is 5.0. (It’s too new for me... =.=)
•
Install PySide
•
http://qt-project.org/wiki/PySideDownloads
•
Current version is 1.1.2, but most references on web is for 1.0.7.
Plik z chomika:
Expearre4
Inne pliki z tego folderu:
Expert Python Programming (2008).pdf
(10481 KB)
think_python.pdf
(12457 KB)
Python Data Visualization Cookbook - Milovanovic, Igor-signed.pdf
(14987 KB)
Python Cookbook, 3rd Edition.pdf
(10240 KB)
Black Hat Python.pdf
(7056 KB)
Inne foldery tego chomika:
Algo
C++
HTML
JavaScript
Lua
Zgłoś jeśli
naruszono regulamin