19 lines
507 B
Python
19 lines
507 B
Python
|
|
import os
|
|
os.environ['KIVY_GL_BACKEND'] = 'gl'
|
|
from kivy.app import App
|
|
from kivy.uix.label import Label
|
|
from kivy.core.window import Window
|
|
|
|
# Set background color to black (optional, but good for screens)
|
|
Window.clearcolor = (0, 0, 0, 1)
|
|
|
|
class ScreenApp(App):
|
|
def build(self):
|
|
# Create a label with large text "Bonjour" centered on the screen
|
|
label = Label(text='Bonjour', font_size='150sp', color=(1, 1, 1, 1))
|
|
return label
|
|
|
|
if __name__ == '__main__':
|
|
ScreenApp().run()
|