from kivy.app import App
from kivy.config import Config
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
from kivy.properties import ObjectProperty


class Calculatrice(BoxLayout):

    def calculer(self, expression):
        if expression:
            try:
                self.display.text = str(eval(expression))
            except Exception:
                self.display.text = 'Erreur'

    def reinitialiser(self, expression):
        if expression:
            self.display.text = ''


class calculatriceApp(App):

    def build(self):
        self.title = 'Calculatrice'


Config.set('graphics', 'width', '250')
Config.set('graphics', 'height', '415')
calculatriceApp().run()

d2fc2fc011ff2d750d868e2c3e715222dcdb7741
<mask token>


class Calculatrice(BoxLayout):
    <mask token>

    def reinitialiser(self, expression):
        if expression:
            self.display.text = ''


class calculatriceApp(App):

    def build(self):
        self.title = 'Calculatrice'


<mask token>

<mask token>


class Calculatrice(BoxLayout):

    def calculer(self, expression):
        if expression:
            try:
                self.display.text = str(eval(expression))
            except Exception:
                self.display.text = 'Erreur'

    def reinitialiser(self, expression):
        if expression:
            self.display.text = ''


class calculatriceApp(App):

    def build(self):
        self.title = 'Calculatrice'


<mask token>

<mask token>


class Calculatrice(BoxLayout):

    def calculer(self, expression):
        if expression:
            try:
                self.display.text = str(eval(expression))
            except Exception:
                self.display.text = 'Erreur'

    def reinitialiser(self, expression):
        if expression:
            self.display.text = ''


class calculatriceApp(App):

    def build(self):
        self.title = 'Calculatrice'


Config.set('graphics', 'width', '250')
Config.set('graphics', 'height', '415')
calculatriceApp().run()

from kivy.app import App
from kivy.config import Config
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
from kivy.properties import ObjectProperty


class Calculatrice(BoxLayout):

    def calculer(self, expression):
        if expression:
            try:
                self.display.text = str(eval(expression))
            except Exception:
                self.display.text = 'Erreur'

    def reinitialiser(self, expression):
        if expression:
            self.display.text = ''


class calculatriceApp(App):

    def build(self):
        self.title = 'Calculatrice'


Config.set('graphics', 'width', '250')
Config.set('graphics', 'height', '415')
calculatriceApp().run()
