Skip to content

Instantly share code, notes, and snippets.

@tshirtman
Created July 28, 2020 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tshirtman/be6213f3e95c4d1d8637b2a05b5109a2 to your computer and use it in GitHub Desktop.
Save tshirtman/be6213f3e95c4d1d8637b2a05b5109a2 to your computer and use it in GitHub Desktop.
horizontal scrolling label
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
KV = '''
ScrollView:
Label:
text: "SUPERCALIFRAGILISTICEXPIALIDOCIOUS"
size_hint_x: None
font_size: 500
width: self.texture_size[0]
'''
class Application(App):
def build(self):
return Builder.load_string(KV)
if __name__ == "__main__":
Application().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment