削除された内容 追加された内容
DFT B3LYP (会話 | 投稿記録)
Alter73 (会話 | 投稿記録)
新しいロゴと日付
タグ: ビジュアルエディター モバイル編集 モバイルウェブ編集
 
(4人の利用者による、間の5版が非表示)
1行目:
{{Infobox software
| name = PySide
| logo = [[File:Python and QtQtforpython.svgpng|180px]]
| screenshot = =
| caption = =
| author = Openbossa
| developer = {{仮リンク|Qt Project|en|Qt Project}}
| latest release version = 16.25.42
| latest release date = {{start date and age|20152023|1007|1426}}
| latest preview version =
| latest preview date = =
| operating system = [[クロスプラットフォーム]]
| programming language = [[Python]]
| genre = =
| license = [[GNU Lesser General Public License|LGPL]]
| website = {{URL|http://www.pyside.org/}}
}}
'''PySide'''は[[Python]]で[[GUI]]を構築するための[[クロスプラットフォーム]]なライブラリである。PySideは[[Qt]]のPythonバインディングである。PySideはPythonに付属している[[Tkinter]](GUIライブラリ)の代わりとして用いられる。このプロジェクトは[[Boost]]という[[C++]]のライブラリのPythonバインディングである'''Boost.Python'''を用いて開発が始まった。後にはファイル容量とメモリ使用量を減らすために'''Shiboken'''というライブラリに切り替えられた<ref>{{cite web|url=http://www.pyside.org/docs/shiboken/ |title=Shiboken|publisher=Pyside.org |date= |accessdate=2010-05-25}}</ref>。
 
PySideは[[2009年]]にQtの所有者であった[[ノキア|Nokia]]<ref>http://www.pyside.org/2009/08/pyside-has-been-released/</ref>から[[GNU Lesser General Public License|LGPL]]の下で公開された。Nokiaは[[PyQt]]を開発していたRiverbank Computing社<ref>{{cite web|url=http://developer.qt.nokia.com/wiki/PySide_FAQ|title=FAQ&nbsp;– PySide&nbsp;– Python for Qt |publisher=Pyside.org |date= |accessdate=2010-05-25}}</ref>との合意形成に失敗し、代替ライセンスとしてLGPLを含むようにそのライセンスを変更した。
 
PySideは[[Linux]]/[[X Window System|X11]]・[[macOS|Mac OS X]]・[[Microsoft Windows|Windows]]・[[Maemo]]上で動作する。現在、PySideコミュニティが[[Android (オペレーティングシステム)|Android]] OSと[[Symbian OS]]のためのサポートを追加している<ref>{{cite web|url=http://developer.qt.nokia.com/wiki/PySide_FAQ#27e2a99ee601a1cdf3f4e344b713a14f|title=FAQ&nbsp;– PySide&nbsp;– Python for Qt |publisher=Pyside.org |date= |accessdate=2013-03-19}}</ref>。
 
==Hello World==
<sourcesyntaxhighlight lang="python">
import sys
from PySidePySide6.QtCore import QtGuiQt
from PySide6.QtWidgets import QApplication, QLabel
 
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
 
label = QLabel("Hello World", alignment=Qt.AlignCenter)
win = QtGui.QWidget()
win label.show()
 
sys.exit(app.exec_())
win.resize(320, 240)
</syntaxhighlight>
win.setWindowTitle("Hello, World!")
win.show()
 
sys.exit(app.exec_())
</source>
 
==関連項目==
51 ⟶ 48行目:
* [http://qt-project.org/wiki/Differences_Between_PySide_and_PyQt PySideとPyQtの違い]
 
{{Software-stub}}
{{Python}}
{{Widget toolkits}}
{{Software-stub}}
{{デフォルトソート:はいさいと}}
 
{{デフォルトソートDEFAULTSORT:はいさいと}}
[[Category:Pythonライブラリ]]