Is it possible to read from more than one .kv file in Kivy app?

前端 未结 3 761
情话喂你
情话喂你 2021-02-12 15:33

I realize the short answer may be \'no,\' but perhaps this is worth asking again.

If I am witting a Kivy app with a couple thousand of lines - then would it be possible

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-12 16:26

    I believe you can create muliple .kv files and can include at one place (root file) by this way only you can distribute/branch your code Kivy documentation clearly says "A kv file must contain only one root widget at most" means only one kv main file. even if you run multiple instances of Mainapp class

    I'm newer to the Kivy, so please correct me if I'm wrong. Thank you !

提交回复
热议问题