Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
meal-ordering-app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin David Moe
meal-ordering-app
Compare revisions
master to master
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
benjamin.d.moe/meal-ordering-app
Select target project
No results found
master
Select Git revision
Branches
master
1 result
Swap
Target
bgarvin/meal_ordering_app
Select target project
bgarvin/meal_ordering_app
calewagner11/meal-ordering-app
cbusch3/meal-ordering-app
benjahnke/meal-ordering-app
chrislnk12/meal-ordering-app
hain5252/meal-ordering-app
taher139010/meal-ordering-app
dawsonjm16/meal-ordering-app
email.jp.thornton/meal-ordering-app
jacob.petersen/meal-ordering-app
a.stratton101/meal-ordering-app
benjamin.d.moe/meal-ordering-app
hallie.hohbein/meal-ordering-app
jay242kid/meal-ordering-app
harkmollis/meal-ordering-app
al-shidhani/meal-ordering-app
amsmann/meal-ordering-app
ncarlson29/meal-ordering-app
joshmartin0212/meal-ordering-app
adrianreza96/meal-ordering-app
moogunfloogun/meal-ordering-app
brandonhuettner/meal-ordering-app
empenn54/meal-ordering-app
cirwinpsn/meal-ordering-app
24 results
master
Select Git revision
Branches
master
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Trying to fix password issue
· 4c1b306f
Benjamin David Moe
authored
8 years ago
4c1b306f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.py
+46
-0
46 additions, 0 deletions
main.py
order.kv
+94
-1
94 additions, 1 deletion
order.kv
with
140 additions
and
1 deletion
main.py
View file @
4c1b306f
from
kivy.app
import
App
from
kivy.app
import
App
from
kivy.modules
import
inspector
# For inspection.
from
kivy.modules
import
inspector
# For inspection.
from
kivy.core.window
import
Window
# For inspection.
from
kivy.core.window
import
Window
# For inspection.
from
kivy.properties
import
NumericProperty
__app_package__
=
'
edu.unl.cse.soft161.order
'
__app_package__
=
'
edu.unl.cse.soft161.order
'
__app__
=
'
Order Meal
'
__app__
=
'
Order Meal
'
...
@@ -9,6 +10,51 @@ __flags__ = ['--bootstrap=sdl2', '--requirements=python2,kivy', '--orientation=l
...
@@ -9,6 +10,51 @@ __flags__ = ['--bootstrap=sdl2', '--requirements=python2,kivy', '--orientation=l
class
OrderApp
(
App
):
class
OrderApp
(
App
):
subtotal
=
NumericProperty
(
0.00
)
tax
=
NumericProperty
(
0.00
)
total
=
NumericProperty
(
0.00
)
def
buttonOne
(
self
):
self
.
subtotal
+=
5.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
buttonTwo
(
self
):
self
.
subtotal
+=
7.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
buttonThree
(
self
):
self
.
subtotal
+=
8.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
buttonFour
(
self
):
self
.
subtotal
+=
6.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
buttonFive
(
self
):
self
.
subtotal
+=
6.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
buttonSix
(
self
):
self
.
subtotal
+=
2.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
buttonSeven
(
self
):
self
.
subtotal
+=
1.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
buttonEight
(
self
):
self
.
subtotal
+=
2.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
buttonNine
(
self
):
self
.
subtotal
+=
1.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
buttonTen
(
self
):
self
.
subtotal
+=
0.99
self
.
tax
+=
(
self
.
subtotal
*
.
07
)
self
.
total
=
(
self
.
subtotal
+
self
.
tax
)
def
build
(
self
):
def
build
(
self
):
inspector
.
create_inspector
(
Window
,
self
)
# For inspection (press control-e to toggle).
inspector
.
create_inspector
(
Window
,
self
)
# For inspection (press control-e to toggle).
...
...
This diff is collapsed.
Click to expand it.
order.kv
View file @
4c1b306f
BoxLayout:
BoxLayout:
orientation: 'vertical'
orientation: 'vertical'
Label:
Label:
text: '[Your meal-ordering GUI here]'
text: 'welcome to restaurant'
size_hint: 1,0.20
BoxLayout:
orientation: 'horizontal'
BoxLayout:
orientation: 'vertical'
Label:
text: '1'
Label:
text: 'Order Chicken Tenders '
Button:
on_press: app.buttonOne()
BoxLayout:
orientation: 'vertical'
Label:
text: '2'
Label:
text: 'Order Hamburger'
Button:
on_press:app.buttonTwo()
BoxLayout:
orientation: 'vertical'
Label:
text: '3'
Label:
text: 'Order Cheeseburger'
Button:
on_press:app.buttonThree()
BoxLayout:
orientation: 'vertical'
Label:
text: '4'
Label:
text: 'Order Chicken Sandwich'
Button:
on_press:app.buttonFour()
BoxLayout:
orientation: 'vertical'
Label:
text: '5'
Label:
text: 'Order Fish Sandwich'
Button:
on_press:app.buttonFive()
BoxLayout:
BoxLayout:
orientation: 'vertical'
Label:
text: '6'
Label:
text: 'Order French Fries'
Button:
on_press:app.buttonSix()
BoxLayout:
orientation: 'vertical'
Label:
text: '7'
Label:
text: 'Order Small Pop'
Button:
on_press:app.buttonSeven()
BoxLayout:
orientation: 'vertical'
Label:
text: '8'
Label:
text: 'Order Large Pop'
Button:
on_press:app.buttonEight()
BoxLayout:
orientation: 'vertical'
Label:
text: '9'
Label:
text: 'Order Ice Cream'
Button:
on_press:app.buttonNine()
BoxLayout:
orientation: 'vertical'
Label:
text: '10'
Label:
text: 'Order Pie'
Button:
on_press:app.buttonTen()
BoxLayout:
size_hint: 1,0.20
orientation: 'horizontal'
Label:
text: 'Subtotal: ' + str(app.subtotal)
Label:
text: 'Tax: ' + str(app.tax)
Label:
text: 'Total: ' + str(app.total)
This diff is collapsed.
Click to expand it.