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
11 July 2012 Python: Modification automatique du texte d’un Label à l’aide de ‘textvariable’ Evénements import Tkinter root = Tkinter.Tk() root.title('Modification de label') message = Tkinter.S import Tkinter root = Tkinter.Tk() root.title('Modification de label') message = Tkinter.S python
29 June 2012 Evénement Clavier: Obtenir la touche du clavier relâchée par l’utilisateur Evénements from Tkinter import * class Evenement(Frame): """ Trouver la touche Relâchée""" def __init_from Tkinter import * class Evenement(Frame): """ Trouver la touche Relâchée""" def __init_ python
23 June 2012 Evénement Clavier: Obtenir la touche du clavier appuyée par l’utilisateur Evénements from Tkinter import * class Evenement(Frame): """ Trouver la touche appuyé""" def __init__(from Tkinter import * class Evenement(Frame): """ Trouver la touche appuyé""" def __init__( python
13 June 2012 Obtenir le type de touche appuyée par l’utilisateur Evénements from Tkinter import * class Evenement(Frame): def __init__(self, parent=None): Frame.__from Tkinter import * class Evenement(Frame): def __init__(self, parent=None): Frame.__ python
10 June 2012 Socket: Exemple de création d’un Serveur d’echo ‘TCP’ Réseaux import socket # création d'un socket de genre Internet sock = socket.socket(socket.AF_INETimport socket # création d'un socket de genre Internet sock = socket.socket(socket.AF_INET python
19 May 2012 FTP: Activation des modes de debugage Réseaux import ftplib from_ftp = ftplib.FTP("www.site1.com", "login", "password") from_ftp.cwd("/htdoc")import ftplib from_ftp = ftplib.FTP("www.site1.com", "login", "password") from_ftp.cwd("/htdoc") python
28 April 2012 Modifier la position courante d’un fichier avec le module ‘f.seek(offset [,where])’ Fichiers file = open('c:/test.txt',"w") # Obtenir la position cournate print file.tell() # Modifie file = open('c:/test.txt',"w") # Obtenir la position cournate print file.tell() # Modifie python
23 April 2012 TK: Exemple des bordures d’un bouton GUI from Tkinter import * class GUI: def __init__(self): self.root = Tk() self.r from Tkinter import * class GUI: def __init__(self): self.root = Tk() self.r python
18 April 2012 XML: Extraire les textes des éléments d’un doc XML XML from xml.sax import saxutils from xml.sax import make_parser class SimpleHandler(saxutils from xml.sax import saxutils from xml.sax import make_parser class SimpleHandler(saxutils python