-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdice_roller.py
34 lines (25 loc) · 924 Bytes
/
dice_roller.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from kivy.app import App
from kivmob import KivMob, TestIds
from kivy.core.text import LabelBase
from kivy.uix.scatter import Scatter
from kivy.uix.label import Label
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.textinput import TextInput
from kivy.uix.boxlayout import BoxLayout
from kivy.core.text import FontContextManager as FCM
import random
class ScatterTextWidget(BoxLayout):
APPID = 'ca-app-pub-4594686446272625~3110544260'
BANNERID = 'ca-app-pub-4594686446272625/3787177591'
ads = KivMob(APPID)
ads.new_banner(BANNERID)
ads.request_banner()
ads.show_banner()
pass
class DiceRollerApp(App):
def build(self):
LabelBase.register(name='roboto-thinitalic', fn_regular='Roboto-ThinItalic.ttf')
LabelBase.register(name='roboto-bold', fn_regular='Roboto-Bold.ttf')
return ScatterTextWidget()
if __name__ == "__main__":
DiceRollerApp().run()