1.9 FileChooserListView is this a bug?

13 views
Skip to first unread message

Steve B

unread,
Apr 17, 2015, 9:48:53 PM4/17/15
to kivy-...@googlegroups.com
Hi, Hit on a problem with FileChooserListView in 1.9, ran fine in 1.8?

The white space around each file name is now 3 times bigger than normal. Thus huge gaps between each name. 

Instead of ...

Filename1
Filename2
Filename3

I get a layout with...

Filename1


Filename2


Filename3


I will put my hand up to implementing it incorrectly, but I think I have it right.

in kv...

            BoxLayout:
                id:boxld2
                size: root.size
                pos: root.pos
                orientation: "vertical"
                
                BoxLayout:
                    size_hint_y: None
                    height: int(boxld2.height/9)
                    
                    Button:
                        background_down: 'data/tabs/button8.png'
                        background_normal: 'data/tabs/button8.png'
                        font_size: self.height/2
                        text: '[b][color=ffff33]Load[/color][/b]'
                        markup: True                    
                    
                FileChooserListView:
                    id: filechooser3
                    rootpath: root.filechpath 
                    filters:root._bakext 

                BoxLayout:
                    size_hint_y: None
                    height: int(boxld2.height/9)
                    Button:
                        text: '[b][color=ffff66]Cancel[/color][/b]'
                        font_size: self.height/2
                        background_down: 'data/tabs/button18.png'
                        background_normal: 'data/tabs/button19.png'
                        font_size: self.height/2.2
                        markup: True      
                        on_release: root.savecancel()
                        
                    Button:
                        id:ldflash
                        text: '[b][color=ffff66]Load[/color][/b]'
                        font_size: self.height/2
                        background_down: 'data/tabs/button18.png'
                        background_normal: 'data/tabs/button19.png'
                        font_size: self.height/2.2
                        markup: True    
                        on_release: root._loadkp()


Else, is there a method to set the fontsize and textsize ???


Many thanks

Reply all
Reply to author
Forward
0 new messages