Ajout du GUI

This commit is contained in:
thatscringebro
2022-08-08 16:31:52 -04:00
parent db362ccdca
commit abd15f28b6
851 changed files with 99957 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
'''
Show border
===========
Shows widget's border.
The idea was taken from
http://robertour.com/2013/10/02/easy-way-debugging-kivy-interfaces/
'''
__all__ = ('start', 'stop')
from kivy.lang import Builder
KV_CODE = '''
<Widget>:
canvas.after:
Color:
rgba: 1, 1, 1, 1
Line:
rectangle: self.x + 1, self.y + 1, self.width - 1, self.height - 1
dash_offset: 5
dash_length: 3
'''
def start(win, ctx):
Builder.load_string(KV_CODE, filename=__file__)
def stop(win, ctx):
Builder.unload_file(__file__)