如何在kivy中设置文本输入的固定高度并停止两个文本输入的重叠?

时间:2018-05-09 10:38:55

标签: kivy textinput

基本上我想要固定文本输入高度并且不要重叠两个textinput

TextInput:
    focus:True # cursor into textfield
    cursor_color: .26,.26,.3,1  #cursor color
        #size_hint: None, 1
    #size: self.texture_size


    foreground_color: .26,.26,.3,1 # Input text color
    pos: root.width * .24,root.height * .47
    width: root.width * .55
    height:'34dp'
    size_hint: (.2, None)
        #size: (min(self.width,self.height),min(self.width,self.height))
        #size_hint_min_y:self.minimum_height #used for fixed minimum height
        #height:root*.9
        #height:self.minimum_height
    font_size:root.height * .03
    hint_text:"please Enter your captha"
    multiline:False 
    background_normal: "resource/images/rounded-image-green.jpg"
    background_active: "resource/images/rounded-image-red.jpg"

    padding_y: [self.height / 2.0 - (self.line_height / 2.0) * len(self._lines), 0]

0 个答案:

没有答案