Add initial screen layout.

This commit is contained in:
Dorian 2016-06-04 11:59:40 -07:00
parent a81703854c
commit bc62c5c14c
3 changed files with 24 additions and 10 deletions

View File

@ -1,6 +0,0 @@
#:include debug.kv
<HelloWorld>:
DebugLabel:
text: 'hello world'

10
main.py
View File

@ -1,12 +1,14 @@
from kivy.app import App from kivy.app import App
from kivy.uix.floatlayout import FloatLayout from kivy.uix.floatlayout import FloatLayout
class HelloWorld(FloatLayout):
class StrategyGame(FloatLayout):
pass pass
class HelloWorldApp(App):
class StrategyGameApp(App):
def build(self): def build(self):
return HelloWorld() return StrategyGame()
if __name__ == '__main__': if __name__ == '__main__':
HelloWorldApp().run() StrategyGameApp().run()

18
strategygame.kv Normal file
View File

@ -0,0 +1,18 @@
#:include debug.kv
<StrategyGame>:
BoxLayout:
orientation: 'horizontal'
DebugLabel:
text: 'Main map'
size_hint: .75, 1
BoxLayout:
orientation: 'vertical'
size_hint: .25, 1
DebugLabel:
text: 'status'
size_hint: 1, .66
DebugLabel:
text: 'mini-map'
size_hint: 1, .33