Last active
May 19, 2018 13:24
-
-
Save el3/0cf784d9f7055f68b27b3316cb42db41 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.base import runTouchApp | |
from kivy.uix.spinner import Spinner | |
from kivy.lang import Builder | |
KV = """ | |
FloatLayout: | |
MySpinner: | |
""" | |
class MySpinner(Spinner): | |
def __init__(self,**kwargs): | |
super(MySpinner,self).__init__(**kwargs) | |
self.text='Home' | |
self.values=('Home', 'Work', 'Other', 'Custom') | |
self.size_hint=(None, None) | |
self.size=(100, 44) | |
self.pos_hint={'center_x': .5, 'center_y': .5} | |
self.dropdown_cls.pos_hint = {"top":0.6,"right":0.7} | |
runTouchApp(Builder.load_string(KV)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment