Created
August 14, 2015 18:26
-
-
Save Alan-FGR/5d6f020e7761beb8f6f8 to your computer and use it in GitHub Desktop.
yet another problem with kivy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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