Canalblog
Suivre ce blog Administration + Créer mon blog
Publicité
le blog de Poseidon627
python
23 avril 2008

PyGTK : Windows : Give a title in the window

PyGTK : Windows : Give a title in the window
Our first window is born.Now, we can give it a name.To do this, ther is the method set_title : set_title(name_of_my_window) But in practice, see what happens : Code : #!/usr/bin/env python# -*- Encoding: Latin-1 -*- import pygtkpygtk.require('2.0')import...
Publicité
23 avril 2008

PyGTK : Windows : Creation of a basic window

PyGTK : Windows : Creation of a basic window
The class used to create windows is : gtk.Window(windows_type) windows_type attribute can take two values : gtk.WINDOW_TOPLEVEL Create a complete window composed of the active party, the bar of title, of the borders gtk.WINDOW_POPUP In the opposite, this...
20 avril 2008

PyGTK : Les boutons : Bouton poussoir

PyGTK : Les boutons : Bouton poussoir
Voyons maintenant le cas d'un autre bouton : le bouton poussoir La classe utilisée est la classe gtk.ToggleButton(label=None, use_underline=True) Cette classe accepte 2 paramètres qui ont déjà été traités dans les posts précédents.Par défaut, label=None...
le blog de Poseidon627
Publicité
Derniers commentaires
Publicité