Start qt4-designer from your applications menu. The [QT](https://pythonspot.com/en/pyqt4/) Designer application will appear:![QT_Designer](img/c5c710d4eea36d37879737f96ff29bc9.jpg)
If you want to start with python web development, you could use a web framework named Django. It is designed to be fast, secure and scalable. It comes with an object-relational mapper (ORM), which means that objects in Python are mapped to objects in a database.
如果要开始 python Web 开发,可以使用一个名为 Django 的 Web 框架。它被设计为快速,安全和可扩展的。 它带有一个对象关系映射器(ORM),这意味着 Python 中的对象被映射到数据库中的对象。
which will update the database. We then update /mysite/mysite/admin.py to:
这将更新数据库。 然后,我们将`/mysite/mysite/admin.py`更新为:
```py
1
...
...
@@ -151,19 +151,21 @@ manage.py runserver
```
Once you open up the admin panel [http://127.0.0.1:8000/admin](http://127.0.0.1:8000/admin), Notes will appear on the page:<caption id=”attachment_1715” align=”alignnone” width=”830”]![django_admin](img/e6109601b6daf8134d2007b85d72e77a.jpg)
While you can create a graphical user interface (GUI) with any of these modules, they do not have the same features.
您可以使用任何这些模块创建图形用户界面(GUI),但它们不具有相同的功能。
## GUI 工具包
_**Tk**_ provides basic widgets such as a button, menu, text and label. It is very limited compared to QT4 and WxPython but it is also the oldest module. It runs on most versions of Mac OS, Linux and Windows.![TkMessage box](img/e9d03180e4231af35183a0c4f9ff6277.jpg)
**Tk** 提供基本的小部件,例如按钮,菜单,文本和标签。 与 QT4 和 WxPython 相比,它非常有限,但它也是最旧的模块。 它可以在大多数版本的 Mac OS,Linux 和 Windows 上运行。
a messagebox in Tk. GUIs made in Tk do not have a native look.
![Graphical application using PyQt5](img/4c1c799e1aa4d7f3a9c4b9104ff0efe2.jpg)
_**WxPython** _ 是一个模块,可创建本机 GUI 外观,而与所使用的操作系统无关。 在 Windows 上将其视为 Windows 应用程序,而在 Mac OS 上将其视为 Mac 应用程序。 与 QT4 或 Tk 相比,这可能是一个明显的优势,具体取决于您的用途。 WxWidgets 有许多可用的小部件,例如按钮,菜单,文本,还有更高级的小部件,如 htmlview 或树控件。
*[QT4:构建应用程序(初学者教程)](https://pythonspot.com/building-an-application-gui-with-pyqt-beginners-tutorial/"Building an application GUI with PyQT, beginners tutorial")
*[QT4:使用设计器创建 GUI(专业教程)](https://pythonspot.com/qml-and-pyqt-creating-a-gui-tutorial/"QML and PyQT: Creating a GUI (tutorial)")
*[Wx 创建 GUI](https://pythonspot.com/creating-a-gui-in-python-with-wxwidgets-tutorial-for-beginners/"Creating a gui in Python with WxWidgets [tutorial for beginners]")