14 August 2012 Modifier la couleur de fond et la couleur de texte d’un widget GUI from Tkinter import * class MonBouton(Frame): """ Modification des options fg(Cou from Tkinter import * class MonBouton(Frame): """ Modification des options fg(Cou python
13 August 2012 Exemple d’utilisation de la boîte de dialogue ‘Couleur’ pour modifier la couleur d’un Bouton GUI # -*- coding: cp1252 -*- from Tkinter import * from tkColorChooser import askcolor def set# -*- coding: cp1252 -*- from Tkinter import * from tkColorChooser import askcolor def set python
8 August 2012 Exemple d’utilisation de widget ‘Entry’ GUI from Tkinter import * top = Frame( ) top.pack( ) # Création d'un widget Entfrom Tkinter import * top = Frame( ) top.pack( ) # Création d'un widget Ent python
5 August 2012 GUI: Evénément de la souris GUI from Tkinter import * root = Tk( ) prompt='Appyez sur une touche du clavier' lbl = Label(r from Tkinter import * root = Tk( ) prompt='Appyez sur une touche du clavier' lbl = Label(r python
2 August 2012 GUI: Ajouter un composant dans un frame GUI from Tkinter import * class SimpleFrame(Frame): from Tkinter import * class SimpleFrame(Frame): python
29 July 2012 Evénement Clavier: Vérifier si la touche ‘shift’ à été appuyée ou relâchée Evénements from Tkinter import * class Evenement(Frame): """ Evénement sur la touche 'Shift'""" def __from Tkinter import * class Evenement(Frame): """ Evénement sur la touche 'Shift'""" def __ python
28 July 2012 GUI: Utilisation de checkBox Evénements from Tkinter import * states = [] def onPress(i): states[i] = n from Tkinter import * states = [] def onPress(i): states[i] = n python
20 July 2012 GUI: Création d’un conteneur avec des widgets à l’aide de ‘Tkinter’ GUI from Tkinter import * def msg( ): print 'Bien from Tkinter import * def msg( ): print 'Bien python
19 July 2012 GUI: Attribuer le focus à un widget GUI from Tkinter import * class SimpleFrame(Frame): def __from Tkinter import * class SimpleFrame(Frame): def __ python
16 July 2012 Obtenir la position ‘x’ et ‘y’ de clique de la souris Evénements from Tkinter import * class Position_Souris( Frame ): def __init__( self ): Frame.from Tkinter import * class Position_Souris( Frame ): def __init__( self ): Frame. python