appbta.blogg.se

Gtk python
Gtk python






gtk python

#!/usr/bin/env python # -*- coding: utf-8 -*- import pygtkĬlass HelloWorld: def hello( self, widget, data = None): print "Hello World" def delete_event( self, widget, event, data = None): print "delete event occurred" return False def destroy( self, widget, data = None): print "destroy signal occurred" gtk.main_quit( ) def _init_( self): # Создание нового окна self.window = gtk.Window( gtk.WINDOW_TOPLEVEL) ( "delete_event", lete_event) ( "destroy", stroy) # Граница окна _border_width( 10) # Задание события кнопки self.button = gtk.Button( "Hello World") # Задаётся событие ( "clicked", self.hello, None) _object( "clicked",, self.window) ( self.button) ( ) ( ) def main( self): gtk.

gtk python

GUI programming introduces new problems compared to interacting with the standard output (console / terminal). Prior to working through this tutorial, it is recommended that you have a reasonable grasp of the Python programming language. python-gtk-vnc linux packages: deb, rpm ©2009-2022 - Packages for Linux and Unix. python-gtk-vnc architectures: amd64, arm64, x8664.

gtk python

На ней можно делать любые вещи связанные с окнами. Gtk.Template Gtk.WidgetClass allows UI definition files to be used to extend a widget, PyGObject provides Gtk.Template as a way of accessing this from Python. python-gtk-vnc latest versions: 0.7.2, 0.6.0.








Gtk python