diff options
author | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-04-03 04:13:28 -0700 |
---|---|---|
committer | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-04-03 04:13:28 -0700 |
commit | f5516715c094a7f4ed78f5cfd4099edf112350bd (patch) | |
tree | c79b3fa1e38ada15c698b577308871c2f88d342d /zh-cn | |
parent | 693a1c85b0447c379a7fe33ad47a1b7246a0072d (diff) |
[pyqt/*] fix formatting
rouge doesn't work with uppercase language names, also cleaned up whitespace
Diffstat (limited to 'zh-cn')
-rw-r--r-- | zh-cn/pyqt-cn.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zh-cn/pyqt-cn.html.markdown b/zh-cn/pyqt-cn.html.markdown index 55e5bbe3..04041c83 100644 --- a/zh-cn/pyqt-cn.html.markdown +++ b/zh-cn/pyqt-cn.html.markdown @@ -19,7 +19,7 @@ lang: zh-cn ```python import sys from PyQt4 import QtGui - + def window(): # 创建应用对象 app = QtGui.QApplication(sys.argv) @@ -44,7 +44,7 @@ if __name__ == '__main__': 为了运用 pyqt 中一些更高级的功能,我们需要开始学习使用其他控件。下文演示了如何弹出对话框,该对话框在用户确认操作或输入信息等情况下经常用到。 -```Python +```python import sys from PyQt4.QtGui import * from PyQt4.QtCore import * @@ -62,7 +62,7 @@ def window(): w.setWindowTitle("PyQt Dialog") w.show() sys.exit(app.exec_()) - + # 对话框窗口创建函数 # 当窗口中的按钮被点击时退出本程序 def showdialog(): |