Skip to content

Commit 89b6b2a

Browse files
committed
Setup error reporting through sentry
1 parent b517f6c commit 89b6b2a

File tree

5 files changed

+40
-5
lines changed

5 files changed

+40
-5
lines changed

buildozer.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ version = 0.1
3636

3737
# (list) Application requirements
3838
# comma seperated e.g. requirements = sqlite3,kivy
39-
requirements = kivy, openssl, requests, pil, futures
39+
requirements = kivy, openssl, requests, pil, futures, sentry==0.3.0
4040

4141
# (str) Custom source folders for requirements
4242
# Sets custom source for any requirements with recipes

eventsapp/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
__version__ = '0.0.1'
88

9+
# setup error reporting
10+
import sentry_sdk
11+
sentry_sdk.init("https://[email protected]/1284618")
12+
# That's all for error reporting
913

1014
import os
1115
import sys

eventsapp/uix/screens/navigationscreen.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
'''
33
from kivy.uix.screenmanager import Screen
44
from kivy.lang import Builder
5-
from uix.navigationdrawer import NavigationDrawer
65
from kivy.factory import Factory
76

87
Factory.register('TouchRippleBehavior', module='uix.behaviors')
98

109

1110
class NavigationScreen(Screen):
12-
'''
13-
'''
11+
'''
12+
'''
1413

15-
Builder.load_string('''
14+
Builder.load_string('''
1615
#:import WipeTransition kivy.uix.screenmanager.WipeTransition
16+
#:import NavigationDrawer uix.navigationdrawer.NavigationDrawer
1717
1818
1919
<MenuButton@PyConButton>
@@ -39,6 +39,11 @@ class NavigationScreen(Screen):
3939
size_hint: 1, None
4040
height: dp(130)
4141
mipmap: True
42+
on_touch_up:
43+
if self.collide_point(*args[1].opos) and\
44+
self.collide_point(*args[1].pos) and\
45+
args[1].is_triple_tap: app.load_screen(\
46+
'ScreenRegister', manager=app.navigation_manager)
4247
ScrollView
4348
GridLayout
4449
cols: 1
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from kivy.uix.screenmanager import Screen
2+
from kivy.lang import Builder
3+
# from kivy.app import App
4+
5+
6+
class ScreenFeedback(Screen):
7+
Builder.load_string('''
8+
<ScreenRegister>
9+
name: 'ScreenRegiser'
10+
11+
12+
''')
13+
14+
def on_pre_enter(self):
15+
pass
16+
17+
def on_enter(self):
18+
# read csv file here
19+
pass
20+
21+
def register_attendee(self):
22+
pass
23+
24+
def scan_qrcode(self):
25+
pass

eventsapp/uix/screens/startupscreen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from kivy.lang import Builder
66
from uix.behaviors import CoverImage
77

8+
89
class StartupScreen(Screen):
910
'''
1011
'''

0 commit comments

Comments
 (0)