TicTacToe mit Kivy.gui

This commit is contained in:
Domenik Rath 2023-08-09 15:12:54 +02:00
parent eda6f11400
commit 25b0bf91f3
2 changed files with 41 additions and 0 deletions

28
TicTacToe/TTT.kv Normal file
View 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
View 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()