Archive

Posts Tagged ‘layout’

Kivy – Multiple Layouts

September 14, 2011 Leave a comment

I wonder how can I have several layouts and change between them using kv files in kivy. Actually I have the answer.

You have to create an ejercicio.kv file. You have to define the classes you are going to use for each layout such as.

#:kivy 1.0

<MyLabelWithBackground>:
       #definition

<Ejercicio>:
      #definition

<Layout1>:
      #definition

<Layout2>:
      #definition

Read more…

Advertisements
Categories: kivy, multitouch, python Tags: , , ,