TicTacToe mit Kivy.gui
This commit is contained in:
parent
eda6f11400
commit
25b0bf91f3
28
TicTacToe/TTT.kv
Normal file
28
TicTacToe/TTT.kv
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#:kivy 1.0.9
|
||||||
|
|
||||||
|
<Spielfeld>:
|
||||||
|
canvas:
|
||||||
|
Rectangle:
|
||||||
|
pos: self.center_x + 0, 200
|
||||||
|
size:5, +600
|
||||||
|
Rectangle:
|
||||||
|
pos: self.center_x + 200, 200
|
||||||
|
size:5, +600
|
||||||
|
Rectangle:
|
||||||
|
pos: self.center_x + 400, 200
|
||||||
|
size:5, +600
|
||||||
|
Rectangle:
|
||||||
|
pos: self.center_x -200, 200
|
||||||
|
size:5, +600
|
||||||
|
Rectangle:
|
||||||
|
pos: self.center_x -200, 200
|
||||||
|
size:+600, 5
|
||||||
|
Rectangle:
|
||||||
|
pos: self.center_x -200, 400
|
||||||
|
size: +600, 5
|
||||||
|
Rectangle:
|
||||||
|
pos: self.center_x -200, 600
|
||||||
|
size: +600, 5
|
||||||
|
Rectangle:
|
||||||
|
pos: self.center_x -200, 800
|
||||||
|
size: +600, 5
|
13
TicTacToe/main.py
Normal file
13
TicTacToe/main.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
from kivy.app import App
|
||||||
|
from kivy.uix.widget import Widget
|
||||||
|
|
||||||
|
class Spielfeld(Widget):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class TTTApp(App):
|
||||||
|
def build(self):
|
||||||
|
return Spielfeld()
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
TTTApp().run()
|
Loading…
x
Reference in New Issue
Block a user