Skip to content

Instantly share code, notes, and snippets.

@Alan-FGR
Created August 14, 2015 18:26
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 Alan-FGR/5d6f020e7761beb8f6f8 to your computer and use it in GitHub Desktop.
Save Alan-FGR/5d6f020e7761beb8f6f8 to your computer and use it in GitHub Desktop.
yet another problem with kivy
from kivy.uix.label import Label
from kivy.uix.image import Image
from kivy.uix.stacklayout import StackLayout
from kivy.app import Builder, App
class MyApp(App):
def build(self):
lay1 = StackLayout(size_hint_y=None)
lay1.bind(minimum_height = lay1.setter("height"))
img = Image()
lay1.add_widget(img)
lbl = Label(text="test")
lay1.add_widget(lbl)
return lay1
MyApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment