Add Screen control features: Screen tab in sidebar, Kivy script, and backend logic
This commit is contained in:
18
screen_control/screen.py
Normal file
18
screen_control/screen.py
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
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()
|
||||
Reference in New Issue
Block a user