Skip to content Skip to sidebar Skip to footer

Setting The Text_size Of Label Class In Python Code

I have a ListView widget which is called using the following code: .kv: ListView: id: myListView size_hint_y: 0.5 .py: from kivy.adapters.simplelistadapter imp

Solution 1:

self does not exist in the class definition. But you can create a kivy rule:

ListView:
    id: myListView
    size_hint_y: 0.5
    text_size: self.size

Post a Comment for "Setting The Text_size Of Label Class In Python Code"