PyGTK

PyGTKはPythonでGUIを構築するためのクロスプラットフォームなライブラリである。PyGTKは自由ソフトウェアであり、LGPLの�…

PyGTK
PyGObject
最新版
3.52.3[1] / 2025年3月16日 (17か月前) (2025-03-16)
リポジトリ ウィキデータを編集
プラットフォーム クロスプラットフォーム
対応言語 Python, C
サポート状況 開発継続中
種別 ウィジェット・ツールキット
ライセンス LGPL
公式サイト www.pygtk.org
テンプレートを表示
PyGTK
作者 ジェームズ・ヘンストリッジ[2]
開発元 PyGTK Core development team[3]
最新版
2.24.0 [4] / 2011年4月1日 (15年前) (2011-04-01)
リポジトリ ウィキデータを編集
プラットフォーム クロスプラットフォーム
サポート状況 終了
種別 ウィジェット・ツールキット
ライセンス LGPL
公式サイト www.pygtk.org
テンプレートを表示

PyGTKPythonGUIを構築するためのクロスプラットフォームライブラリである。PyGTKは自由ソフトウェアであり、LGPLの下で配布されている。PyQtPySidewxPythonがそれぞれQtwxWidgetsのラッパーであるように、PyGTKはGTKのラッパーである。PyGTKの元々の開発者はGNOMEの著名な開発者であるジェームズ・ヘンストリッジである。現在の主な開発者は6人であり、他にパッチやバグレポートを提供している多くの協力者がいる。PyGTKはOLPCプロジェクトでアプリケーションを動かす環境として選ばれている。PyGTKの開発者や関係者はirc.gnome.org上のIRCチャンネル上で見つけることができる。

PyGTKはGTKのバージョン3への移行を段階的に廃止され、Pythonやその他の言語におけるGObjectのバインディングであるPyGObjectへと置き換えられる[5][6]。これはGTKとバインディング間の更新の遅延を解消すること、開発者のメンテナンスの負担を軽減することを目的としている[7]

Hello World

import gtk

def create_window():
    window = gtk.Window()
    window.set_default_size(200, 200)
    window.connect('destroy', gtk.main_quit)

    label = gtk.Label('Hello World')
    window.add(label)

    label.show()
    window.show()

create_window()
gtk.main()

PyGTKを用いたソフトウェア

関連項目

  • Tkinter
  • PyQt (QtフレームワークのPythonラッパー)
  • PySide (QtフレームワークのPythonラッパー)
  • wxPython (wxウィジェットのPythonラッパー)

脚注

外部リンク

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.