PyGTK
| PyGTK | ||||
|---|---|---|---|---|
| Ontwerp en ontwikkeling | ||||
| Categorie | bibliotheek | |||
| Ontwikkelaar(s) | PyGTK Core development team[1] | |||
| Besturingssysteem | Multiplatform | |||
| Geschreven in | Python | |||
| Status en tijdlijn | ||||
| Status | Opgevolgd door PyGObject | |||
| Recentste versie | 2.24.0 (1 april 2011)[2] | |||
| Vervangen door | PyGObject | |||
| Onderdelen | ||||
| Licentie(s) | LGPL v2.1+ | |||
| Links | ||||
| Website | (en) Officiële webpagina | |||
| Versiebeheer | Broncode | |||
| ||||
PyGTK is een verzameling van Pythonadapters voor de GTK+ grafische gebruikersomgeving bibliotheek. PyGTK is vrije software en gelicenseerd onder de LGPL v2.1+. Het is analoog aan PyQt/PySide en wxPython die Pythonadapters zijn voor respectievelijk Qt en wxWidgets.
Geschiedenis en toekomst
De oorspronkelijke auteur is de GNOME-ontwikkelaar James Henstridge.[3] Vandaag bestaat het hoofdontwikkelaarsteam uit ongeveer zes mensen.
PyGTK zal naar aanleiding van GTK+ versie 3 worden vervangen door PyGObject, dat GObject-introspectie gebruikt om bindingen onmiddellijk te genereren voor Python.
Syntaxis
De Pythoncode hieronder zal een venster van 200x200 pixels met binnenin de woorden "Hello World" produceren.
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()
Toepassingen die PyGTK gebruiken
PyGTK is gebruikt in een aantal opmerkelijke toepassingen, enkele voorbeelden:
Externe links
- (en) Officiële webpagina
- PyGTK FAQ
- PyGTK Tutorial
- PyGTK Notebook A Journey Through Python Gnome Technologies door Peter Gill
- PyGTK op de Python wiki
- Dit artikel is een vertaling van het artikel PyGTK zoals aanwezig op de Engelstalige Wikipedia
Referenties
- ↑ The people behind PyGTK
- ↑ http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/.
- ↑ Software I have written > PyGTK - Python bindings for GTK. - James Henstridge's Homepage
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.
- 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:
- 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.
- 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.
- 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.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.