from kivy.app import App
from kivy.modules import inspector # For inspection.
from kivy.core.window import Window # For inspection.
from kivy.properties import NumericProperty
from kivy.uix import button
__app_package__ = 'edu.unl.cse.soft161.order'
__app__ = 'Order Meal'
__version__ = '0.1'
__flags__ = ['--bootstrap=sdl2', '--requirements=python2,kivy', '--orientation=landscape']
class OrderApp(App):
charge_total = NumericProperty(0.00)
def build(self):
inspector.create_inspector(Window, self) # For inspection (press control-e to toggle).
def update_bite_charge(self):
app.charge_total+=1.5
def update_mega_charge(self):
app.charge_total+=3
def update_giga_charge(self):
app.charge_total+=8.75
def update_tera_charge(self):
app.charge_total+=25
if __name__ == '__main__':
app = OrderApp()
app.run()