Articles

Affichage des articles associés au libellé os

une Calculatrice simple avec python🧮

Image
  bonjour, ici nous vous présentons le code source de la calculatrice codé en challenge du week-end.  from tkinter import * import math, os class calco(LabelFrame):     def __init__(self, width = 200, height = 400, color = 'dark blue'):         LabelFrame.__init__(self, bg= color, width = width, height = height, relief = FLAT, bd = 5)         self.width, self.height, self.color = width, height, color         self.lab = Label(self, text = 'python Lite Calco',relief='ridge',font=("verdana",10,"bold",'italic'), bg = '#ffffaa',fg = 'dark blue')         self.configure(labelwidget = self.lab, labelanchor = 'nw')         #creation des etiquettes des buttons         self.label = [1,2,3,'CE',4,5,6,'+',7,8,9,'-',0,'.','/','*','(',')','del','=']         self.buttons , self.r, self.c = [], 2, 0         self.valeur = [] ...