MCPcopy Index your code
hub / github.com/rawpython/remi / screen1Widget

Class screen1Widget

examples/examples_from_contributors/multiscreen_en .py:34–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#we just pick the definitions from the constructUI Method and put it into an __init__ method
33
34class 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

Callers 1

mainMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected