Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#:kivy 2.0.0
#:import MapView kivy_garden.mapview.MapView
<SplashScreen>
id: splash
name: "splash"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
cols:1
size: root.width, root.height
padding: 50
spacing:20
size_hint:(0.9,0.9)
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
source: "logo.png"
LogInButton:
text: "Log In"
size_hint_y: None
height: 90
on_press:
self.background_color = (0,0,0,0)
app.go_to_login_page()
RegisterButton:
text: "Register"
size_hint_y: None
height: 90
on_press:
self.background_color = (0,0,0,0)
app.go_to_register_page()
<RegisterScreen>
id: register_1
name: "register"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
cols: 1
padding: 50
spacing: 10
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
source: "logo.png"
Label:
text: "First Name"
font_size: 15
size_hint_y: None
height: 30
TextInput:
id: first_name
multiline: False
padding: (13,13)
size_hint_y: None
height: 45
font_size: 15
Label:
text: "Last Name"
font_size: 15
size_hint_y: None
height: 30
TextInput:
id: last_name
multiline: False
padding: (13,13)
size_hint_y: None
height: 45
font_size: 15
Label:
text: "Car Registration"
font_size: 15
size_hint_y: None
height: 30
TextInput:
id: car_reg_no
multiline: False
padding: (13,13)
size_hint_y: None
height: 45
font_size: 15
Label:
text: "Vehicle Type"
font_size: 15
size_hint_y: None
height: 30
Spinner:
id: vehicle_type
text: "Select from the Dropdown Menu"
values: ["Car","Motorcycle","Van","MiniBus"]
size_hint_y: None
height: 45
RoundButton:
text: "Next"
size_hint_y: None
height: 80
on_press:
app.register()
LogInButton:
text: "Go Back"
size_hint_y: None
height: 80
on_press:
app.go_back_to_splash_page()
<RegisterScreencont>
id: register_2
name: "registercont"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
cols: 1
padding: 50
spacing: 10
#size_hint:(0.9,0.9)
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
source: "logo.png"
Label:
text: "Contact Number"
font_size: 15
size_hint_y: None
height: 30
TextInput:
id: contactNo
multiline: False
padding: (13,13)
size_hint_y: None
height: 45
font_size: 15
Label:
text: "Password"
font_size: 15
size_hint_y: None
height: 30
TextInput:
id: password
multiline: False
password: True
padding: (13,13)
size_hint_y: None
height: 45
font_size: 15
Label:
text: "Confirm Password"
font_size: 15
size_hint_y: None
height: 30
TextInput:
id: confirmedPassword
multiline: False
password: True
padding: (13,13)
size_hint_y: None
height: 45
font_size: 15
RoundButton:
text: "Submit"
size_hint_y: None
height: 80
on_press:
app.registerCont()
LogInButton:
text: "Go Back"
size_hint_y: None
height: 80
on_press:
app.back_to_reg_page_1()
<LogInScreen>
id: login
name: "logIn"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
id: grid
name: "grid"
cols: 1
padding: 50
spacing: 20
#size_hint:(0.9,0.9)
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
source: "logo.png"
size_hint_y: None
height: 300
Label:
text: "Car Registration"
font_size: 15
size_hint_y: None
height: 30
TextInput:
id: carRegNo
multiline: False
padding: (13,13)
size_hint_y: None
height: 45
font_size: 15
Label:
text: "Password"
font_size: 15
size_hint_y: None
height: 30
TextInput:
id: password
multiline: False
password: True
padding: (13,13)
size_hint_y: None
height: 45
font_size: 15
RoundButton:
text: "Submit"
size_hint_y: None
height: 80
on_press:
app.on_login()
LogInButton:
text: "Go Back"
size_hint_y: None
height: 80
on_press:
app.go_back_to_splash_page()
<MapScreen>
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
id: map
cols:1
size: root.width, root.height
padding: 50
spacing:20
size_hint:(0.9,0.9)
pos_hint:{"center_x":0.5,"center_y":0.5}
Label:
text: "Select the CarWash"
font_size: 15
size_hint_y: None
height: 30
bold: True
MapView:
lat:52.417230717588595
lon:-1.5080531307550022
zoom: 12
on_lat: print('lat',self.lat)
on_lon: print('lon',self.lon)
MapMarkerPopup:
lat:52.41148029221989
lon:-1.48049619493842
source: "marker.png"
Button:
gid: "mega"
text: "Mega Hand\nCar Wash"
on_press:
app.map(self)
app.go_to_package_selection_page()
MapMarkerPopup:
lat:52.41719976540806
lon:-1.5088632354857898
source: "marker.png"
Button:
gid: "super"
text: "Superwash\nCar Wash"
on_press:
app.map(self)
app.go_to_package_selection_page()
MapMarkerPopup:
lat:52.411126890870435
lon:-1.5222528213209559
source: "marker.png"
Button:
gid: "zefi"
text: "Zefi Hand\nCar Wash"
on_press:
app.map(self)
app.go_to_package_selection_page()
RegisterButton:
text: "Logout"
size_hint_y: None
height: 90
on_press:
app.logout()
<PackageSelectScreen>
id: pakcageSelection
name: "pakcage_selection"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
cols:1
size: root.width, root.height
padding: 50
spacing:20
size_hint:(0.9,0.9)
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
source: "logo.png"
LogInButton:
text: "Starter"
size_hint_y: None
height: 90
on_press:
app.on_package_01()
LogInButton:
text: "Intermediate"
size_hint_y: None
height: 90
on_press:
app.on_package_02()
LogInButton:
text: "Premium"
size_hint_y: None
height: 90
on_press:
app.on_package_03()
LogInButton:
text: "Quite literally"
size_hint_y: None
height: 90
on_press:
app.on_package_04()
RegisterButton:
text: "Go Back"
size_hint_y: None
height: 90
on_press:
app.back_to_map_page()
<Package01Screen>
id: package01
name: "package01"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
id: grid_package
name: "grid_package"
cols:1
size: root.width, root.height
padding: 50
spacing:20
size_hint:(0.9,0.9)
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
id: img_package
name: "img_package"
source: "packages/package 1.png"
LogInButton:
text: "Buy"
size_hint_y: None
height: 70
on_press:
self.background_color = (0,0,0,0)
app.buy(package="package 1")
RegisterButton:
text: "Back"
size_hint_y: None
height: 70
on_press:
self.background_color = (0,0,0,0)
app.back_to_package_selection_page()
<Package02Screen>
id: package02
name: "package02"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
id: grid_package
name: "grid_package"
cols:1
size: root.width, root.height
padding: 50
spacing:20
size_hint:(0.9,0.9)
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
id: img_package
name: "img_package"
source: "packages/package 2.png"
LogInButton:
text: "Buy"
size_hint_y: None
height: 70
on_press:
self.background_color = (0,0,0,0)
app.buy(package="package 2")
RegisterButton:
text: "Back"
size_hint_y: None
height: 70
on_press:
self.background_color = (0,0,0,0)
app.back_to_package_selection_page()
<Package03Screen>
id: package03
name: "package03"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
id: grid_package
name: "grid_package"
cols:1
size: root.width, root.height
padding: 50
spacing:20
size_hint:(0.9,0.9)
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
id: img_package
name: "img_package"
source: "packages/package 3.png"
LogInButton:
text: "Buy"
size_hint_y: None
height: 70
on_press:
self.background_color = (0,0,0,0)
app.buy(package="package 3")
RegisterButton:
text: "Back"
size_hint_y: None
height: 70
on_press:
self.background_color = (0,0,0,0)
app.back_to_package_selection_page()
<Package04Screen>
id: package04
name: "package04"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
id: grid_package
name: "grid_package"
cols:1
size: root.width, root.height
padding: 50
spacing:20
size_hint:(0.9,0.9)
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
id: img_package
name: "img_package"
source: "packages/package 4.png"
LogInButton:
text: "Buy"
size_hint_y: None
height: 70
on_press:
self.background_color = (0,0,0,0)
app.buy(package="package 4")
RegisterButton:
text: "Back"
size_hint_y: None
height: 70
on_press:
self.background_color = (0,0,0,0)
app.back_to_package_selection_page()
<PaymentScreen>
id: payment
name: "payment"
canvas.before:
Color:
rgba: (0.08,0.21,0.41,1)
Rectangle:
pos: self.pos
size : self.size
GridLayout:
cols: 1
padding: 50
spacing: 10
pos_hint:{"center_x":0.5,"center_y":0.5}
Image:
source: "logo.png"
Label:
text: "Payment Type"
font_size: 15
size_hint_y: None
height: 30
Spinner:
id: payment_type
text: "Payment Option"
values: ["Cash", "Paypal"]
size_hint_y: None
height: 45
RoundButton:
text: "Proceed"
size_hint_y: None
height: 80
on_press:
app.pay()
LogInButton:
text: "Home"
size_hint_y: None
height: 80
on_press:
app.go_back_to_home_page()
<LogInButton@Button>
id: btn_login
background_color: (0,0,0,0)
background_normal: ''
canvas.before:
Color:
rgba: (35/255, 152/255, 242/255,1)
RoundedRectangle:
size: self.size
pos: self.pos
radius: [50]
font_size: 30
<RegisterButton@Button>
id: btn_register
background_color: (0,0,0,0)
background_normal: ''
canvas.before:
Color:
rgba: (1,1,1,1)
RoundedRectangle:
size: self.size
pos: self.pos
radius: [50]
font_size: 30
color: (0,0,0,1)
<RoundButton@Button>
id: btn_rounded
background_color: (0,0,0,0)
background_normal: ''
canvas.before:
Color:
rgba: (35/255, 152/255, 242/255,1)
RoundedRectangle:
size: self.size
pos: self.pos
radius: [50]
font_size: 30