2012-09-04 3 views
6

Python/Kivyでいくつかのコンテンツを表示するためのコードをいくつか作成しましたが、ScrollViewをうまく書かなかったようです。Python/KivyでScrollViewを実装する方法

私はプログラムでいくつかのバリエーションを試しましたが、プログラムはスクロールバーを表示しません。

これは私のコードです:

def build(self): 
    root = BoxLayout(orientation='vertical') 
    box = BoxLayout(orientation='vertical')  
    lists = rss_feed()  
    for lista in lists: 
     temp = BoxLayout(orientation='vertical') 
     for entry in lista: 
      temp.add_widget(Label(text=entry)) 
     box.add_widget(temp) 
    sv = ScrollView(size_hint=(True, True), size=(400, 400)) 
    root.add_widget(sv) 
    sv.add_widget(box)  
    return root 

私の質問は:私はscroolbar表示するために何をする必要がありますか?

おかげ

答えて