File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change
1
+ profile.db
Original file line number Diff line number Diff line change 1
- import string
2
- # from kivy.app import App
3
- # from kivy.lang import Builder
4
- # from kivy.uix.screenmanager import ScreenManager, Screen
5
-
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
6
3
# ---------------------
7
4
# database handling
8
5
# ---------------------
@@ -244,4 +241,5 @@ def main():
244
241
245
242
pass
246
243
247
- main ()
244
+ if __name__ == '__main__' :
245
+ main ()
Original file line number Diff line number Diff line change 1
- import string
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
2
3
from xml .etree .ElementInclude import include
3
4
from kivy .app import App
4
5
from kivy .lang import Builder
@@ -39,11 +40,10 @@ def build(self):
39
40
return kv
40
41
pass
41
42
42
-
43
43
# ----------------------
44
- # Main application function
44
+ # Main setup function
45
45
# ----------------------
46
- if __name__ == "__main__" :
46
+ def main () :
47
47
# # Teo: use these lines to manipulate database
48
48
# Database initialization and tests
49
49
db .init ()
@@ -74,5 +74,12 @@ def build(self):
74
74
db .profile_print (['Python733t' ])
75
75
db .profile_print ('Python733t' )
76
76
77
+ # ----------------------
78
+ # Main application function
79
+ # ----------------------
80
+ if __name__ == "__main__" :
81
+ # Run setup
82
+ main ()
83
+
77
84
# Run Kivy app
78
85
MyMainApp ().run ()
You can’t perform that action at this time.
0 commit comments