Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Meal-Ordering App for SOFT 162
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
bmois2
Meal-Ordering App for SOFT 162
Commits
b13f1dd1
Commit
b13f1dd1
authored
10 months ago
by
bmois2
Browse files
Options
Downloads
Patches
Plain Diff
Completed. Added spinner for sides instead of checkbox/radio buttons.
Also added progress bar so it looks a lil nicer.
parent
6c9c8300
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.py
+7
-1
7 additions, 1 deletion
main.py
order.kv
+11
-3
11 additions, 3 deletions
order.kv
with
18 additions
and
4 deletions
main.py
+
7
−
1
View file @
b13f1dd1
...
...
@@ -28,7 +28,13 @@ class OrderApp(App):
self
.
total_cost
=
0
print
(
'
Reset
'
)
#def fires(self,):
def
spinner_activated
(
self
,
value
):
if
value
==
"
Fries
"
:
self
.
total_cost
+=
3
elif
value
==
"
Onion Ring
"
:
self
.
total_cost
+=
2
else
:
self
.
total_cost
+=
1
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
order.kv
+
11
−
3
View file @
b13f1dd1
...
...
@@ -40,9 +40,17 @@ BoxLayout:
BoxLayout:
orientation: 'horizontal'
Label:
text: 'Fries?'
font_size: sp(26)
CheckBox:
text: 'Pick sides: '
size_hint: (None, 1.0)
size: self.texture_size
padding: (sp(12), 0)
Spinner:
id: spinner1
text: "Sides"
values: ["Fries","Onion Rings","Pickles"]
on_text: app.spinner_activated(spinner1.text)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment