提交 ceac98bb 编写于 作者: W wizardforcel

2019-11-21 18:02:12

上级 6acae97e
......@@ -13,7 +13,7 @@ sudo apt-get install python3-pyqt5
## PyQt5 窗口
You can create a **[PyQT5](https://pythonspot.com/pyqt5/)** window using the code below:
您可以使用以下代码创建 [**PyQT5**](https://pythonspot.com/pyqt5/) 窗口:
```py
import sys
......
......@@ -19,7 +19,7 @@ self.textbox.resize(280,40)
![pyqt5-QLineEdit](img/4c1c799e1aa4d7f3a9c4b9104ff0efe2.jpg)
**PyQt5 文本框示例**
## PyQt5 文本框示例
下面的示例创建一个带有文本框的窗口。
......
......@@ -28,7 +28,7 @@ fileMenu.addAction(exitButton)
```
**PyQt5 菜单示例**
## PyQt5 菜单示例
完整代码:
......@@ -76,6 +76,8 @@ if __name__ == '__main__':
```
结果: ![pyqt5-menu](img/c5f854a140b5ba105f0ef20d4ef12150.jpg)
结果:
![pyqt5-menu](img/c5f854a140b5ba105f0ef20d4ef12150.jpg)
[下载 PyQT5 示例](https://pythonspot.com/download-pyqt5-examples/)
\ No newline at end of file
......@@ -10,7 +10,7 @@
要添加表,您将需要导入 **QTableWidget****QTableWidgetItem**
## [](#Example "Example")范例
## 范例
```py
from PyQt5.QtWidgets import QTableWidget,QTableWidgetItem
......
......@@ -72,7 +72,7 @@ if __name__ == '__main__':
```
**说明:**
## 说明:
要将表添加到窗口,我们创建一个新类:
......
......@@ -70,7 +70,7 @@ if __name__ == '__main__':
```
**解释**
## 解释
我们首先在 initUI()方法中调用 self.createHorizo​​ntalLayout()方法。 在方法内部,我们创建了一个带有标题和水平布局的框:
......
......@@ -64,7 +64,7 @@ if __name__ == '__main__':
```
**解释**
## 解释
我们通过以下方式导入 gridlayout 和其他内容:
......
......@@ -28,7 +28,7 @@ from PyQt5.QtGui import QIcon, QPixmap
![pyqt5 qpixmap](img/7c8aa302666166e4fa6969572c501f04.jpg)
**PyQt5 加载图片(QPixmap)**
## PyQt5 加载图片(QPixmap)
复制下面的代码并运行。 该映像应与程序位于同一目录中。
......
......@@ -4,7 +4,7 @@
![pyqt window](img/1629a04730237a4379bd58ced163e08f.jpg)
[PyQt4](https://pythonspot.com/pyqt4/) window on Ubuntu
Ubuntu 上的 [PyQt4](https://pythonspot.com/pyqt4/) 窗口
在本教程中,您将学习如何使用 [PyQT4](https://pythonspot.com/pyqt4/) 创建图形 hello world 应用程序。
......@@ -12,7 +12,7 @@
## PyQt4 窗口示例:
This application will create a graphical window that can be minimized, maximimzed and resized it.
该应用程序将创建一个可最小化,最大化和调整其大小的图形窗口。
```py
#! /usr/bin/env python
......
......@@ -4,7 +4,7 @@
![PyQt4 button example](img/3911a344ee61b701979eb5a2de2c4e27.jpg)
PyQt4 button example
PyQt4 按钮示例
PyQt4(Qt4)通过 QPushButton 小部件支持按钮。
......@@ -14,7 +14,7 @@ PyQt4(Qt4)通过 QPushButton 小部件支持按钮。
## PyQt4 按钮示例
The example below adds a button to a PyQt4 window.
下面的示例在 PyQt4 窗口中添加了一个按钮。
```py
#! /usr/bin/env python
......@@ -51,7 +51,7 @@ sys.exit(a.exec_())
## PyQt4 信号和插槽
A button click should do something. To do so, you must use signals and slots.
单击按钮应该可以执行某些操作。 为此,您必须使用信号和插槽。
如果用户执行诸如单击按钮,在框中键入文本之类的操作,则小部件会发出信号。 信号可以与一个插槽相连,该插槽充当接收器并对其起作用。
......
......@@ -6,7 +6,7 @@
## PyQt4 消息框
The code below will display a message box with two buttons:
下面的代码将显示一个带有两个按钮的消息框:
```py
#! /usr/bin/env python
......@@ -40,13 +40,13 @@ sys.exit(a.exec_())
![qtMessagebox question](img/42005bdb1e24d6b5c1b14e5895521e3a.jpg)
qtMessagebox question
qtMessagebox 问题
[PyQT4](https://pythonspot.com/pyqt4/) 提供了不同类型的消息框。
## PyQT4 警告框
You can display a warning box using this line of code:
您可以使用以下代码行显示警告框:
```py
QMessageBox.warning(w, "Message", "Are you sure you want to continue?")
......@@ -55,7 +55,7 @@ QMessageBox.warning(w, "Message", "Are you sure you want to continue?")
## PyQT4 信息框
We can display an information box using QMessageBox.information()
我们可以使用`QMessageBox.information()`显示一个信息框
```py
QMessageBox.information(w, "Message", "An information messagebox @ pythonspot.com ")
......@@ -66,11 +66,11 @@ QMessageBox.information(w, "Message", "An information messagebox @ pythonspot.co
![QMessageBox Info](img/6efbaae64acdb4e69214c7589963b5bd.jpg)
QMessageBox Info
QMessageBox 信息
## PyQT4 临界盒
## PyQT4 错误框
If something goes wrong in your application you may want to display an error message.
如果您的应用程序出现问题,则可能需要显示一条错误消息。
```py
QMessageBox.critical(w, "Message", "No disk space left on device.")
......@@ -81,17 +81,19 @@ Result: ![QMessagebox ](img/af9cd039b8bc48207cfd140b3bd3dd1c.jpg)
QMessagebox
## PyQT4 关于盒子
## PyQT4 关于
We have shown the question box above.
我们已经在上面显示了问题框。
```py
QMessageBox.about(w, "About", "An example messagebox @ pythonspot.com ")
```
Result: ![qt Messagebox](img/843b3c0a68065ac101f04944c2bac053.jpg)
结果
qt Messagebox
![qt Messagebox](img/843b3c0a68065ac101f04944c2bac053.jpg)
qt 消息框
[下载 PyQT 代码(批量收集)](https://pythonspot.com/python-qt-examples/)
\ No newline at end of file
......@@ -4,7 +4,7 @@
![PyQT Menu pythonspot](img/08595a6340da7b1792993a5bb8fb5912.jpg)
PyQT Menu
PyQT 菜单
[**PyQt4**](https://pythonspot.com/pyqt4/) **菜单**出现在窗口栏的顶部。 **菜单**使用户可以控制应用程序,并且通常位于窗口顶部。
......@@ -14,7 +14,7 @@ QMainWindow 类创建主应用程序窗口。 此类具有一个名为 menuBar
## PyQt4 菜单栏
This code will add a menu to your qt4 app:
此代码将为您的 qt4 应用添加菜单:
```py
#! /usr/bin/env python
......
......@@ -8,7 +8,7 @@
* 组合框
* 日历
For more widgets we suggest using the GUI creation tool covered in the next tutorial.
对于更多小部件,我们建议使用下一个教程中介绍的 GUI 创建工具。
## 文本框小部件
......@@ -47,7 +47,7 @@ sys.exit(a.exec_())
![qt textbox](img/8e1ee291a6d4a348a3629298a80fefbd.jpg)
qt textbox
qt 文本框
## 组合框
......@@ -89,7 +89,7 @@ sys.exit(a.exec_())
![qt combobox](img/cb9724ae989ef2c079731874772a1798.jpg)
qt combobox
qt 组合框
## 日历小部件
......@@ -131,6 +131,6 @@ sys.exit(a.exec_())
![calendar qt](img/ab786df4859e36d6feeabac1f97dc5f2.jpg)
calendar qt
qt 日历
[下载 PyQT 代码(批量收集)](https://pythonspot.com/python-qt-examples/)
\ No newline at end of file
......@@ -4,7 +4,7 @@
![pyqt textbox](img/b2c2549d84491412df87f80cf61fbbdc.jpg)
PyQt4 textbox example
PyQt4 文本框示例
在本文中,您将学习如何使用 [PyQt4](https://pythonspot.com/pyqt4/) 与文本框进行交互。
......@@ -12,7 +12,7 @@ PyQt4 textbox example
## PyQt4 QLineEdit
The textbox example below changes the text if the button is pressed.
如果按下按钮,下面的文本框示例将更改文本。
```py
import sys
......
# QT4 表
# QT4 表
> 原文: [https://pythonspot.com/qt4-table/](https://pythonspot.com/qt4-table/)
......@@ -6,7 +6,7 @@
## Qt4 表示例
An example below:
下面的例子:
```py
from PyQt4.QtGui import *
......@@ -47,6 +47,10 @@ if __name__ == '__main__':
![PyQT Table](img/185c656e13f47debbad67f5133a4215d.jpg)
![PyQT Table ](img/a60b759f387958b2b4c7046ecd6f4b87.jpg) ![PyQT Table tooltips](img/f1f56d1db3e8574fad782a6392cbb56c.jpg) [PyQT](https://pythonspot.com/pyqt4/) Table tooltips
![PyQT Table ](img/a60b759f387958b2b4c7046ecd6f4b87.jpg)
![PyQT Table tooltips](img/f1f56d1db3e8574fad782a6392cbb56c.jpg)
[PyQT](https://pythonspot.com/pyqt4/) 表格提示
[下载 PyQT 代码(批量收集)](https://pythonspot.com/python-qt-examples/)
\ No newline at end of file
......@@ -11,7 +11,7 @@ tabs.addTab(tab1,"Tab 1")
其中第一个参数是选项卡对象,第二个参数是显示在屏幕上的名称。 我们在第一个标签(QWidget)中添加了一些按钮。
**示例代码:**
## 示例代码:
```py
from PyQt4 import QtGui
......@@ -63,6 +63,6 @@ if __name__ == '__main__':
![PyQT Tabs](img/71481f97c660d6556a1bf3c5b70648bc.jpg)
PyQT Tabs
PyQT 标签
[下载 PyQT 代码(批量收集)](https://pythonspot.com/python-qt-examples/)
\ No newline at end of file
......@@ -64,6 +64,6 @@ sys.exit(a.exec_())
![PyQT Progressbar](img/72b521dd094d336233ce321ce73811a2.jpg)
PyQT Progressbar
PyQT 进度条
[下载 PyQT 代码(批量收集)](https://pythonspot.com/python-qt-examples/)
\ No newline at end of file
......@@ -6,11 +6,11 @@
![PyQt4-load-image](img/77d7b4598127e8b587d29da009865dde.jpg)
An image loaded in a PyQt4 window.
在 PyQt4 窗口中加载的图片。
## 介绍
The constructor of Pixmap takes the image path as parameter:
`Pixmap`的构造函数将图像路径作为参数:
```py
pixmap = QPixmap(os.getcwd() + '/logo.png')
......@@ -21,7 +21,7 @@ pixmap = QPixmap(os.getcwd() + '/logo.png')
## PyQT 在 Pixmap 中加载图像
We create a standard QWidget as we have done before. Then we add the QPixmap widget inside which will load the image. The Pixmap is attached to a label which is drawn to the screen.
我们像以前一样创建了一个标准的`QWidget`。 然后,在其中添加`QPixmap`小部件以加载图像。`Pixmap`贴在绘制到屏幕上的标签上。
```py
import os
......@@ -51,4 +51,4 @@ app.exec_()
![pyqt Pixmap](img/02ad7ee98094c1504dca8004682214e4.jpg)
pyqt Pixmap
\ No newline at end of file
pyqt `Pixmap`
\ No newline at end of file
......@@ -60,6 +60,6 @@ sys.exit(a.exec_())
![pyqt_file_open](img/a6f06b37951c44452f79efd047298429.jpg)
PyQt File Open Dialog.
PyQt 文件打开对话框
[下载 PyQT 代码(批量收集)](https://pythonspot.com/python-qt-examples/)
\ No newline at end of file
......@@ -22,7 +22,9 @@ sudo apt-get install python-kde4
## 构建一个 PyQT4 GUI
Now we can use the QT Designer application. It saves us from writing tons of layout code that you may be used to when writing HTML. Start qt4-designer from your applications menu. The QT Designer application will appear.![QT_Designer](img/c270198655afac039b29c13193a5885a.jpg)
现在我们可以使用 QT Designer 应用程序。 它使我们不必编写许多 HTML 时可能习惯的布局代码。 从应用程序菜单中启动 qt4-designer。 QT Designer 应用程序将出现。
![QT_Designer](img/c270198655afac039b29c13193a5885a.jpg)
QT Designer
......@@ -30,7 +32,7 @@ QT Designer
![QT_KDE_Dialog](img/a49e87363988856b8eabf42c30cf9400.jpg)
QT KDE Dialog
QT KDE 对话框
我们的窗口如上图所示。 按 Form > Viewcode。 我们将在 C ++中得到一个带有表单代码的弹出框! 很好,但是我们需要 Python 代码。 按文件>另存为>form.ui。
......@@ -75,7 +77,7 @@ python gui.py
![pyqt_window-300x215](img/2b327b721889fb95be65443c1d531d0f.jpg)
[PyQt](https://pythonspot.com/pyqt4/) Window with QButton
[PyQt](https://pythonspot.com/pyqt4/) 窗口和`QButton`
我们想在按下 OK 按钮时添加一些动作。 我们将以下三行添加到代码中:
......@@ -89,7 +91,7 @@ def OK(self):
![pyqt4 app example](img/e58b77134f9f1ef5de60f6715f4181ef.jpg)
[pyqt4](https://pythonspot.com/pyqt4/) app example
[pyqt4](https://pythonspot.com/pyqt4/) 应用示例
[下载 PyQT4 示例(批量收集)](https://pythonspot.com/python-qt-examples/)
......
......@@ -6,7 +6,7 @@
## QML 和 PyQT
An excerpt of user interface markup [graphical user interfaces](https://pythonspot.com/gui/) and language code could look like:
[用户界面](https://pythonspot.com/gui/)标记和语言代码的摘录可能类似于:
```py
Rectangle {
......@@ -20,13 +20,17 @@ width: 150; height: 75
## QTCreator
Start a programmed called QTCreator.   The tutorial will be quite graphical to help you through the whole process. Simply type qtcreator in the terminal or start it from the menu list.  This screen should pop up:![qtcreator](img/472f18a048e7f08feb788266c341bfd8.jpg)
启动一个名为 QTCreator 的程序。 本教程将以图形化方式帮助您完成整个过程。 只需在终端中键入`qtcreator`或从菜单列表中启动它即可。 该屏幕应弹出:
![qtcreator](img/472f18a048e7f08feb788266c341bfd8.jpg)
qtcreator
## 创建一个 GUI
Press the big **New Project** button. Select **QT Quick Application** from the menu below. Finally press **Choose** on the bottom right. ![qtquick](img/a24879ba48cc2b7501b7b33c35f7dc27.jpg)
**新建项目**按钮。 从下面的菜单中选择“QT 快速应用程序”。最后按右下角的**选择**
![qtquick](img/a24879ba48cc2b7501b7b33c35f7dc27.jpg)
qtquick
......@@ -34,7 +38,7 @@ qtquick
![kde create](img/941e20c7d0c048025948f404e3fb4668.jpg)
kde create
kde 创建
输入名称和有效路径以保存您的项目。 然后按下一步。 从菜单列表中选择 **QT Quick 2.0** 。 按下一步。 按完成。 立即出现以 QML 语言定义的用户界面。
......@@ -46,7 +50,7 @@ qt quick
![draganddrop](img/e22af26e044860eabf29f3813b1dfa8b.jpg)
draganddrop
拖放
我们将图像拖到该区域上,然后选择右侧的源。 保存项目。 打开终端并找到您刚创建的 qml 文件。 或者,您可以简单地将代码复制到编辑框中,然后将其保存到.qml 文件中。 输入命令:
......@@ -95,7 +99,7 @@ python run.py
![QML_PyQT](img/f8cf080d83de7cdd12b501d273967d21.jpg)
QML and PyQT
QML PyQT
所有代码都是 [PyQT](https://pythonspot.com/pyqt4/) ,因此您可以像上一教程中那样添加代码。 这是使用 PyQT 创建图形界面的两种方法。 与在上一教程中使用 [QT](https://pythonspot.com/pyqt4/) 创建 GUI 的方法相比,该方法可能更宽松地与代码耦合。 尽管两者都是有效的方法。
......
......@@ -2,7 +2,9 @@
> 原文: [https://pythonspot.com/tk-window-and-button/](https://pythonspot.com/tk-window-and-button/)
带有 onClick 事件的 **Tk 按钮** 要创建带有按钮的 [**Tkinter**](https://pythonspot.com/tkinter/) 窗口,请使用以下示例。 程序进入 mainloop(),等待事件(用户操作)。 我们定义具有回调函数 callback()的按钮。 master 是根窗口,您的按钮将出现在该窗口中。
带有 onClick 事件的 **Tk 按钮**
要创建带有按钮的 [**Tkinter**](https://pythonspot.com/tkinter/) 窗口,请使用以下示例。 程序进入 mainloop(),等待事件(用户操作)。 我们定义具有回调函数 callback()的按钮。 master 是根窗口,您的按钮将出现在该窗口中。
```py
from Tkinter import *
......@@ -21,7 +23,7 @@ mainloop()
![tk button](img/b1fb57a653c6741ced779c294ca87447.jpg)
tk button
tk 按钮
## Tk 图像按钮
......@@ -49,7 +51,7 @@ mainloop()
![tk image button](img/289712f8426bbfc6ceacdd22bbcff819.jpg)
tk image button
tk 图像按钮
## 带有文本标签的 Tk 图像按钮
......@@ -77,7 +79,7 @@ mainloop()
![tk button with text and image](img/966f97e15792c89ebeb6f5f8942b0ee5.jpg)
tk button with text and image
带有图像和文本的 tk 按钮
## 按钮位置
......@@ -105,4 +107,6 @@ mainloop()
![tk button location](img/f8756b4a6882e933bfd6fc3f8f1fe1b6.jpg)
tk 按钮位置 [下载 tkinter 示例](/download-tkinter-examples)
\ No newline at end of file
tk 按钮位置
[下载 tkinter 示例](/download-tkinter-examples)
\ No newline at end of file
......@@ -8,11 +8,11 @@ Tkinter 工具箱包含所有用于创建图形应用程序的基本小部件。
![tk menu](img/ec69b97f82c9ef2d0bac39c941f21ed9.jpg)
Tkinter menu
Tkinter 菜单
## Tkinter 菜单栏
You can create a simle menu with [Tkinter](https://pythonspot.com/tkinter/) using the code below. Every option (new, open, save.. ) should have its own callback.
您可以使用以下代码通过 [Tkinter](https://pythonspot.com/tkinter/) 创建一个简单菜单。 每个选项(新建,打开,保存..)都应具有自己的回调。
```py
from Tkinter import *
......
......@@ -49,7 +49,7 @@ root.mainloop()
![tk entry](img/37a3257ed2c7f13f0b141e9c9aa72d3e.jpg)
tk entry
tk 条目
## 图像
......@@ -71,7 +71,7 @@ root.mainloop()
![python tk image](img/b572dd0f882ff709fb5896b3f7c9905f.jpg)
python tk image
python tk 图像
## GUI 编辑器
......
......@@ -16,7 +16,11 @@ python3 --version
![Tkinter Message box](img/e9d03180e4231af35183a0c4f9ff6277.jpg)
TkMessage boxTo show a minimalistic ![tkinter-dialog](img/cada3d59a1bd4887694d8ded4576f519.jpg) Tk messagebox dialog
`TkMessage`框显示一个简约的 TkInter 对话框。
![tkinter-dialog](img/cada3d59a1bd4887694d8ded4576f519.jpg)
Tk 消息框对话框
Tkinter 包括其他几个消息框:
......@@ -24,7 +28,7 @@ Tkinter 包括其他几个消息框:
* showwarning()
* showinfo()
<u>Python 3.x</u>
Python 3.x
```py
import tkinter
......@@ -41,7 +45,7 @@ messagebox.showinfo("Information","Informative message")
```
<u>Python 2.7</u>
Python 2.7
```py
import Tkinter
......
......@@ -12,7 +12,7 @@
`askopenfilename`函数创建文件对话框对象。 扩展名显示在表格的底部(文件类型)。 下面的代码将仅显示对话框并返回文件名。 如果用户按下取消,则文件名为空。 在 Windows 计算机上,将 initialdir 更改为“ C:\”
**Python 2.7 版本:**
## Python 2.7 版本:
| 功能 | 参量 | 目的 |
| --- | --- | --- |
......@@ -20,8 +20,6 @@
| .asksaveas 文件名 | 目录,标题,扩展名) | 要**保存**文件:要求创建或替换文件的对话框。 |
| .ask 目录 | 没有 | 到**打开目录** |
|
```py
from Tkinter import *from Tkinter import *
import Tkinter, Tkconstants, tkFileDialog
......@@ -32,9 +30,7 @@ print (root.filename)
```
|
**Python 3 版本:**
## Python 3 版本:
```py
from tkinter import filedialog
......@@ -50,13 +46,13 @@ print (root.filename)
![tkfiledialog Tkinter askopenfilename](img/2c7923eec25e9f598b1f2667df933487.jpg)
tkfiledialog Tkinter askopenfilename
Tkinter `tkfiledialog askopenfilename`
## Tkinter 保存文件
The `asksaveasfilename` function prompts the user with a save file dialog.
`asksaveasfilename`函数使用保存文件对话框提示用户。
**Python 2.7 版本**
## Python 2.7 版本
```py
from Tkinter import *
......@@ -68,7 +64,7 @@ print (root.filename)
```
**Python 3 版本**
## Python 3 版本
```py
from tkinter import filedialog
......@@ -82,9 +78,9 @@ print (root.filename)
## Tkinter 打开目录
The `askdirectory` presents the user with a popup for directory selection.
`askdirectory`为用户提供了用于选择目录的弹出窗口。
**Python 2.7 版本**
## Python 2.7 版本
```py
from Tkinter import *
......@@ -97,6 +93,6 @@ print (root.directory)
![tkinter-askdirectory](img/e1fe0af3cb6c0d5c97380258734cdce9.jpg)
tkinter askdirectory
tkinter `askdirectory`
[下载 tkinter 示例](/download-tkinter-examples)
\ No newline at end of file
......@@ -10,7 +10,7 @@
## Tkinter 下拉示例
The example below creates a Tkinter window with a combobox.
下面的示例创建一个带有组合框的 Tkinter 窗口。
```py
from Tkinter import *
......
......@@ -12,7 +12,7 @@ wxPython 模块基于 C ++ GUI 库 wxWidgets。
## wxPython 窗口
To open a window with wxPython, run the code below:
要使用 wxPython 打开窗口,请运行以下代码:
```py
#!/usr/bin/python
......
......@@ -36,7 +36,7 @@ app.MainLoop()
![wx button](img/63f4d90dfe1598c08abff7ee025b9a0b.jpg)
Buton created with [wxPython](https://pythonspot.com/wx/)
使用 [wxPython](https://pythonspot.com/wx/) 创建的按钮
## 按钮上的图像
......@@ -83,4 +83,4 @@ app.MainLoop()
![wxButton](img/67a209e3d95dcfc3bcf10be8ee22a065.jpg)
wxButton
\ No newline at end of file
`wxButton`
\ No newline at end of file
......@@ -22,7 +22,7 @@ wx.MessageBox('Pythonspot wxWidgets demo', 'Info', wx.OK | wx.ICON_INFORMATION)
![wx dialog](img/060aff2419f3f914c11c28c7e8aad94d.jpg)
wx dialog
wx 对话框
## 更多对话框:警告对话框,错误对话框和默认对话框
......@@ -48,7 +48,7 @@ wx.MessageBox('Operation could not be completed', 'Error', wx.OK | wx.ICON_ERROR
![wxDialog](img/ff4ca6bf3d6ff81f610c0b9de5338c3f.jpg)
wxDialog
wx 对话框
## 问题对话框
......@@ -73,4 +73,4 @@ else:
![wxDialog](img/7874a6d1f9758b18ee1ef3d3e4f58334.jpg)
wxDialog
\ No newline at end of file
wx 对话框
......@@ -10,11 +10,11 @@
![wxPythonOpenFile](img/1d17f5d6e0c394ba2f1d574baf74c7b0.jpg)
[wxPython](https://pythonspot.com/wx/) Open File Dialog
[wxPython](https://pythonspot.com/wx/) 文件打开对话框
## wxPython 文件对话框
The example below creates a file dialog with a native appearance using wxPython:
下面的示例使用 wxPython 创建一个具有本机外观的文件对话框:
```py
#!/usr/bin/python
......
......@@ -8,11 +8,11 @@ wxPython 支持输入对话框,它们包含在框架中。 典型的 wxPython
![wx input](img/38adcfbb184729e5d1d74b09ba622436.jpg)
input dialog made with wxPython
用 wxPython 创建的输入对话框
## wxPython 输入对话框
The example code below creates an input dialog with wxPython:
下面的示例代码使用 wxPython 创建一个输入对话框:
```py
#!/usr/bin/python
......
......@@ -84,4 +84,4 @@ if __name__ == "__main__":
![wxTabs](img/5a58343f3bd5e027d97e90721b1c4a53.jpg)
wxTabs
\ No newline at end of file
wx 选项卡
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册