Add initial screen layout.
This commit is contained in:
parent
a81703854c
commit
bc62c5c14c
|
@ -1,6 +0,0 @@
|
|||
|
||||
#:include debug.kv
|
||||
|
||||
<HelloWorld>:
|
||||
DebugLabel:
|
||||
text: 'hello world'
|
10
main.py
10
main.py
|
@ -1,12 +1,14 @@
|
|||
from kivy.app import App
|
||||
from kivy.uix.floatlayout import FloatLayout
|
||||
|
||||
class HelloWorld(FloatLayout):
|
||||
|
||||
class StrategyGame(FloatLayout):
|
||||
pass
|
||||
|
||||
class HelloWorldApp(App):
|
||||
|
||||
class StrategyGameApp(App):
|
||||
def build(self):
|
||||
return HelloWorld()
|
||||
return StrategyGame()
|
||||
|
||||
if __name__ == '__main__':
|
||||
HelloWorldApp().run()
|
||||
StrategyGameApp().run()
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue