Created
August 1, 2015 02:04
-
-
Save Alan-FGR/31561af2ececfefc12c3 to your computer and use it in GitHub Desktop.
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
__author__ = 'Alan' | |
__version__ = '0.1' | |
import kivy | |
kivy.require("1.0.0") | |
from kivy.app import Builder | |
from kivy.app import App | |
from kivy.clock import Clock | |
mybutstr = """ | |
#:import win kivy.core.window | |
Button: | |
size_hint: None,None | |
size: '65dp','35dp' | |
center_y: win.Window.height*0.5 | |
center_x: win.Window.width*0.5 | |
text: 'test' | |
""" | |
class MyApp(App): | |
def build(self, **kwargs): | |
self.mybut = Builder.load_string(mybutstr) | |
Clock.schedule_interval(self.resizeBut,0.1) | |
return self.mybut | |
def resizeBut(self, *args): | |
self.mybut.height = self.mybut.height+10 | |
MyApp().run() |
Author
Alan-FGR
commented
Aug 1, 2015
Kovak's fix:
https://gist.github.com/Kovak/aac7ac890c6d5737f824
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment