Created
February 27, 2019 11:42
-
-
Save cruor99/a3e2f4de7753323ff5cae3db1d5054f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ActionScreen>: | |
BoxLayout: | |
orientation: "vertical" | |
Toolbar: | |
id: toolbar | |
title: "mSale Drift" | |
left_action_items: [["chevron-left", lambda x: app.root.onBackBtn(), False]] | |
right_action_items: [["menu", lambda x: app.root.ids.nav_layout.toggle_nav_drawer(), False]] | |
background_color: app.theme_cls.primary_color | |
md_bg_color: app.theme_cls.primary_color | |
FloatLayout: | |
BoxLayout: | |
orientation: "vertical" | |
pos_hint: {"center_x": 0.5, "center_y": 0.5} | |
size_hint_x: .8 | |
padding: dp(20) | |
MDCard: | |
size_hint_y: .3 | |
BoxLayout: | |
orientation: "vertical" | |
size_hint_x: .8 | |
MDLabel: | |
id: idfield | |
font_style: 'Body1' | |
theme_text_color: 'Primary' | |
halign: 'center' | |
text: "Maskin ID: {}".format(root.machine_id) | |
MDLabel: | |
id: description_field | |
font_style: 'Body1' | |
theme_text_color: 'Primary' | |
halign: 'center' | |
text: u"Navn: {}".format(root.machine_name) | |
MDLabel: | |
id: servicemail_field | |
font_style: "Body1" | |
halign: 'center' | |
text: "Servicemail: {}".format(root.service_email) | |
MDLabel: | |
id: lastconnect_text | |
font_style: 'Body1' | |
theme_text_color: 'Primary' | |
halign: 'center' | |
text: "Sist Tilkoblet: {}".format(root.last_connected) | |
RecycleView: | |
# pos_hint: {"center_x": 0.5, "center_y": 0.3} | |
MDList: | |
id: actiongrid | |
spacing: dp(10) | |
height: self.minimum_height | |
MDRaisedButton: | |
id: lastreceipt | |
text: "Siste Kvittering" | |
opposite_colors: True | |
on_release: app.root.doPushould(app.root.lastroom, "lastreceipt") | |
width: self.parent.width | |
MDRaisedButton: | |
id: testprinter | |
text: "Test Printer" | |
opposite_colors: True | |
#on_release: app.root.doPushould("lastreceipt") | |
on_release: app.root.doPushould(app.root.lastroom, "lastreceipt") | |
width: self.parent.width | |
MDRaisedButton: | |
id: doavstemming | |
text: "Avstemming" | |
opposite_colors: True | |
#on_release: app.root.doPushould("avstemming") | |
on_release: app.root.doPushould(app.root.lastroom, "avstemming") | |
width: self.parent.width | |
MDRaisedButton: | |
id: doloaddataset | |
text: "Last Dataset" | |
opposite_colors: True | |
on_release: app.root.doPushould(app.root.lastroom, "load-dataset") | |
width: self.parent.width | |
MDRaisedButton: | |
id: utstedkort | |
text: "Lad Kort" | |
opposite_colors: True | |
on_release: app.root.utstedKort(app.root.lastroom) | |
width: self.parent.width | |
MDRaisedButton: | |
id: test-utstedKort | |
text: "Lad kort 1kr" | |
opposite_colors: True | |
on_release: app.root.doPushould(app.root.lastroom, "utstedkort-1") | |
width: self.parent.width | |
MDRaisedButton: | |
id: flushgc | |
text: "Kort til intern skuff" | |
opposite_colors: True | |
#on_release: app.root.doPushould("flushcard") | |
on_release: app.root.doPushould(app.root.lastroom, "flushcard") | |
width: self.parent.width | |
MDRaisedButton: | |
id: feedcard | |
text: "Kort fra kortleser til front" | |
opposite_colors: True | |
#on_release: app.root.doPushould("lastrecon") | |
on_release: app.root.doPushould(app.root.lastroom, "ejectcard") | |
width: self.parent.width | |
MDRaisedButton: | |
id: flowcard | |
text: "Kort fra forsyning til front" | |
opposite_colors: True | |
on_release: app.root.doPushould(app.root.lastroom, "k100test") | |
width: self.parent.width | |
MDRaisedButton: | |
id: internal_test | |
text: "Restart og test K100 (Utmater)" | |
opposite_colors: True | |
on_release: app.root.doPushould(app.root.lastroom, "k100internaltest") | |
width: self.parent.width | |
MDRaisedButton: | |
id: internal_test | |
text: "Stop kasse/software" | |
opposite_colors: True | |
on_release: app.root.doPushould(app.root.lastroom, "softwarekill") | |
width: self.parent.width | |
MDRaisedButton: | |
id: flowcard | |
text: "Restart Windows" | |
opposite_colors: True | |
on_release: app.root.doPushould(app.root.lastroom, "doRestart") | |
width: self.parent.width |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment