| 32 | #we just pick the definitions from the constructUI Method and put it into an __init__ method |
| 33 | |
| 34 | class screen1Widget(Container): |
| 35 | def __init__(self,**kwargs): |
| 36 | super(screen1Widget,self).__init__(**kwargs) |
| 37 | self.style['position'] = "absolute" |
| 38 | self.style['overflow'] = "auto" |
| 39 | self.style['background-color'] = "#ffff80" |
| 40 | self.style['left'] = "10px" |
| 41 | self.style['top'] = "10px" |
| 42 | self.style['margin'] = "0px" |
| 43 | self.style['width'] = "427px" |
| 44 | self.style['display'] = "block" |
| 45 | self.style['height'] = "480px" |
| 46 | testlabel = Label("This is Screen 1!") |
| 47 | mytextbox = TextInput(single_line=True,hint="Result Box. You can add content on screen 2") |
| 48 | self.append(testlabel,'testlabel') |
| 49 | self.append(mytextbox,'mytextbox') |
| 50 | |
| 51 | #class definition for content "screen2" (inherits from remi.gui.Container) |
| 52 | |