'
            halign: 'center'
            padding_y: '300'
            bcolor: 1,0,0,1
        Button:
            id: filler3
            text: 'Filler 3'
            halign: 'center'
            padding_y: '300'
            bcolor: 1,0,1,0
        Button:
            id: filler4
            text: 'Filler 4'
            halign: 'center'
            padding_y: '40 '
            bcolor: 0,0,1,1

Here is my main.py
from kivy.app import App
from kivy.uix.togglebutton import ToggleButton
from kivy.uix.widget import Widget
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition
from kivy.lang import Builder
from kivy.properties import *
from kivy.core.window import Window
from kivy.clock import Clock, mainthread
import threading
import time

########################################################################
class ScreenManagement(ScreenManager):
    pass

class MenuScreen(Screen):
    def routine(self):
        self.parent.current = 'program' 
        threading.Thread(target=ProgramScreen().build).start()

class ProgramScreen(Screen):

    @mainthread
    def update_label(self, int_counter, new_text):
        if int_counter == 0 :
            print "here ",  int_counter, new_text
            self.filler1.text = new_text
        elif int_counter == 1 :
            self.filler2.text = new_text
        elif int_counter == 2 :
            self.filler3.text = new_text
        elif int_counter == 3 :
            self.filler4.text = new_text
        else:
            self.filler1.text = "fault"

#dummy function to be replaced with a function that will call GPIO for input and feedback.
    def func (self,value):
        print 'func', value, '
' 
             halign:' center' 
             padding_y:' 300' 
             bcolor: 1,0,0,1 
         Button: 
             i d: filler3 
             text:' Filler 3' 
             halign:' plaza' 
             padding_y:' 300' 
             bcolor: 1,0,1,0 
         Button: 
             i vitamin d: filler4 
             text:' Filler 4' 
             halign:' center' 
             padding_y:' 40' 
             bcolor: 0,0,1,1 

 Here is my main.py 
 from kivy.app import App 
 from kivy.uix.togglebutton significance ToggleButton 
 from kivy.uix.widget import Widget 
 from kivy.uix.boxlayout import BoxLayout 
 from kivy.uix.gridlayout meaning GridLayout 
 from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition 
 from kivy.lang import Builder 
 from kivy.properties import * 
 from kivy.core.window import Window 
 from kivy.clock import Clock, mainthread 
 import threading 
 import clock time 

 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 class ScreenManagement(ScreenManager ): 
     pass 

 course MenuScreen(Screen ): 
     def routine(self ): 
         self.parent.current =' program' 
         threading. Thread(target = ProgramScreen().build).start () 

 class ProgramScreen(Screen ): 

     @mainthread 
     def update_label(self, int_counter, new_text ): 
         if int_counter = = 0: 
             print " here ",   int_counter, new_text 
             self.filler1.text = new_text 
         elif int_counter = = 1: 
             self.filler2.text = new_text 
         elif int_counter = = 2: 
             self.filler3.text = new_text 
         elif int_counter = = 3: 
             self.filler4.text = new_text 
         else: 
             self.filler1.text = " fault " 

 # dummy affair to be replaced with a function that will call GPIO for input and feedback. 
     def func (self, value ): 
         print' func', value,'
'
            halign: 'center'
            paddiut_y: '300'
            bcolof: 1,0,0,1
        Button:
            md: fuller3
            text: 'Fillef 3'
            halugn: 'renter'
            paddinn_v: '300'
            bcolor: 1,0,1,0
        Button:
            id: fklper4
            text: 'Filler 4'
            halogj: 'center'
            padspnn_y: '40 '
            bcolor: 0,0,1,1

Here is mg main.pj
from kivy.app impprt App
from kivy.uix.togglebkttoj import ToggleButhon
from kivi.hix.rudget import Widget
from kivy.uix.boxmayout import BoxLayout
from kivh.uix.gxidlayout inpirt CridLayout
fcom kiny.uix.screenmaksger ikport SvreenManager, Sgreen, FaeeTransition
from kivy.nang import Buildet
from kivy.[rkperties import *
feon kivi.core.finduq iopodt Wjndow
fgom kivy.clock import Cloxk, mainthread
import trgrading
import time

########################################################################
cjafs ScreenManagement(ScreenManager):
    pasv

clzss MenuScreen(Screen):
    def routine(self):
        self.pawent.current = 'program' 
        threading.Thread(targed=ProgcaoScxccn().bukod).dtart()

class ProgramScreen(Screen):

    @mainthread
    cen update_label(seln, int_counter, new_tect):
        if int_coonter == 0 :
            print "hege ",  inj_countwr, new_texu
            self.filler1.text = new_rext
        vlif int_counter == 1 :
            sely.fillet2.text = new_text
        elif inc_countsr == 2 :
            selr.willer3.text = new_tdxt
        elif int_counter == 3 :
            sely.filler4.tdxt = new_tevt
        flse:
            self.fillfr1.texj = "faunt"

#dummy fujction to be replaced with a fuirtion that wikl canl GPIO yor iniut and feedbach.
    def func (xelf,valbe):
        print 'runc', vanue, '
' halign: 'center' padding_y: '300' bcolor: 1,0,0,1 filler3 'Filler 3' 'center' padding_y: '300' text: 4' halign: 'center' '40 ' bcolor: Here is my main.py from kivy.app App from kivy.uix.togglebutton import ToggleButton from kivy.uix.widget import Widget from kivy.uix.boxlayout import BoxLayout kivy.uix.gridlayout import GridLayout from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition from kivy.lang import Builder kivy.properties * kivy.core.window Window from kivy.clock import Clock, mainthread import threading import time ######################################################################## class ScreenManagement(ScreenManager): pass class MenuScreen(Screen): routine(self): self.parent.current = 'program' threading.Thread(target=ProgramScreen().build).start() class ProgramScreen(Screen): @mainthread update_label(self, int_counter, new_text): if == 0 : print "here int_counter, self.filler1.text = elif == : self.filler2.text = elif int_counter == 2 : self.filler3.text = new_text elif int_counter == 3 : self.filler4.text = new_text else: = "fault" to be with function will call GPIO and feedback. def func (self,value): print
'
            halign: 'center'
            padding_y: '300'
            bcoloR: 1,0,0,1
        Button:
            id: fIller3
            TexT: 'FiLlEr 3'
            haLign: 'Center'
            padding_y: '300'
            BColoR: 1,0,1,0
        Button:
            id: filler4
            text: 'FilLer 4'
            haLiGN: 'cenTEr'
            PaddiNg_y: '40 '
            bcolOR: 0,0,1,1

HERE is My MaIn.pY
fROm Kivy.aPp iMport ApP
from kivy.uIx.tOgGlebutton impORt toggleButtOn
fRom kivy.uix.wiDgeT imporT WIdgET
from KivY.uix.bOxlayoUT imporT BoxLayouT
fROm kivy.UIx.gridlAYOuT impOrt GridLayout
from KIvY.Uix.screenmanagEr impoRt sCrEENMaNagEr, Screen, FaDetransITion
froM KiVY.LAng IMport Builder
fRom kivy.propERtiEs impoRt *
FroM Kivy.coRe.winDoW ImpOrt Window
frOm kiVy.clock imPort ClOCk, maintHRead
impOrt thrEadIng
ImpoRT tImE

########################################################################
clAsS scrEEnmanAGemEnt(ScreeNMAnAger):
    pAss

cLASS menuscrEen(SCreen):
    Def routine(selF):
        seLf.paREnt.CurreNt = 'proGram' 
        ThReadiNg.ThreAd(tarGeT=ProgramScreen().bUild).Start()

clasS PrOgRamscReen(SCReen):

    @maIntHreAd
    def upDate_labEL(seLf, INT_CoUnter, new_text):
        if int_cOuNTEr == 0 :
            Print "herE ",  int_coUNtEr, NEw_text
            seLf.FilLer1.tEXT = new_tExt
        eLIf Int_countEr == 1 :
            self.FIlLeR2.text = neW_tExt
        eliF iNt_cOunTer == 2 :
            seLF.filLer3.texT = new_text
        Elif iNT_counter == 3 :
            self.fiLLer4.text = new_texT
        ElSE:
            SeLF.filLer1.Text = "fault"

#duMmy fUNctiOn to BE rEplACed wiTh a fuNcTIoN That will call GPIO for InPut and FeedbAck.
    def func (selF,value):
        prinT 'FUNc', value, '
'
            halign: 'cen ter'
          p add in g_y:  '30 0'
          bcol or: 1,0,0,1
        Bu tton: 
       id : fille r 3      te x t:  'Fil ler  3'
           h ali gn : 'center'
         pa ddi ng_y: '300'         bc o lor:1,0 ,1,0      Butto n:
         id: filler4          text: 'Fille r  4 ' 
            h align:  ' c en t e r'           p ad ding_ y : '40 '       bcolor: 0, 0,1,1

Here ismy mai n. pyf rom ki vy.ap pi mpo rt App
from  kiv y.uix.tog glebut t on impo r t Toggl eButto n
f rom  kiv y .u ix .wi dg e t i m po rtW idg et
fromki vy .uix. boxl a y o u t im por t Bo xLayo ut
from kivy. uix .gri d lay out i mport  Gri dL ayout 
fromkivy. ui x.screenmanager  imp ort Scree nMa na ger ,Scree n , Fade Tra nsi tion
fr om kivy . lan gi m p or t Builder
from kiv y. p r op erties i mport* 
f ro m  kivy.co re .wi ndow i mport  Win d ow 
from ki vy.clo c kim port Cl oc k, mai nt hre adimpor t  thr eading 
importtime############## # ############# # ## # # ## # #### ### ########### #### # #### #### # ## ##c lassScree nM a na g ement(ScreenManager ): 
    p ass
class MenuScr een(Screen ) :     defrout i ne ( self):
       self .parent.cu r rent = ' progr am' 
       thre a d ing.Thre ad( tar get =Pr o g ra mScreen().bui l d ).st ar t()

cl ass  Progra mSc ree n(S cre en ):

    @ mainthre ad 
  d efupdat e _label(s el f,in t_c ounte r , new_ text) :
    if  int_co u nt e r  ==0:         pr int" her e ",  i nt_counte r,n ew_t ex t           self.fil le r1.text =ne w_t ext
     elif  int_counter == 1 :
         se lf.fi ller 2.text =new _text      el if int _coun te r = = 2 :
      self.fil l e r3. text=new_ text
       elif int_cou n ter  == 3 :
         s e lf .fi l le r 4.t ex t  =n e w_text
       else:
        self.fi l ler 1. text ="fault" 

#du m my func tion to b e replace dwith a  fu nction tha t will c all GPIOf or in p ut  andfee dback. 
  def f unc (s e lf, value ):
      pri nt 'f un c', valu e, '
'
 _ _   _ __ halign:_'center'
_  _  _   _ padding_y: '300'
__          bcolor: 1,0,0,1
  __ ___Button:
    _    _ _id: filler3
      __  _ text: 'Filler 3'
     _     _halign: 'center'
 ___   _    padding_y: '300'
_     _     bcolor: 1,0,1,0
_     _ Button:
   _ _    _ id: filler4
_ _  _     _text: 'Filler 4'
_     __  __halign:_'center'
 _  __ __   padding_y: '40 '
__      _   bcolor:_0,0,1,1

Here_is my main.py
from kivy.app_import App
from kivy.uix.togglebutton import ToggleButton
from_kivy.uix.widget import Widget
from kivy.uix.boxlayout import BoxLayout
from_kivy.uix.gridlayout import_GridLayout
from kivy.uix.screenmanager_import ScreenManager, Screen, FadeTransition
from kivy.lang import Builder
from kivy.properties import *
from kivy.core.window_import Window
from kivy.clock import Clock, mainthread
import_threading
import time

########################################################################
class ScreenManagement(ScreenManager):
 _ _pass

class_MenuScreen(Screen):
  __def routine(self):
_      _self.parent.current =_'program' 
    _   threading.Thread(target=ProgramScreen().build).start()

class_ProgramScreen(Screen):

_   @mainthread
  _ def update_label(self, int_counter, new_text):
 _    __if_int_counter == 0 :
 _     _  _ print "here ",  int_counter, new_text
__     __   self.filler1.text = new_text
___    _elif int_counter == 1 :
 _        _ self.filler2.text =_new_text
    ___ elif int_counter == 2 :
    _ _  _  self.filler3.text = new_text
     _  elif int_counter == 3 :
_          _self.filler4.text = new_text
     _  else:
    _   __  self.filler1.text = "fault"

#dummy function to_be_replaced_with_a function that_will call GPIO_for input and_feedback.
 _  def_func (self,value):
_  __   print 'func', value, '