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

Class screen2Widget

examples/examples_from_contributors/multiscreen_en .py:53–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51#class definition for content "screen2" (inherits from remi.gui.Container)
52
53class screen2Widget(Container):
54 def __init__(self,**kwargs):
55 super(screen2Widget,self).__init__(**kwargs)
56 self.style['position'] = "absolute"
57 self.style['overflow'] = "auto"
58 self.style['background-color'] = "#ffff80"
59 self.style['left'] = "10px"
60 self.style['top'] = "10px"
61 self.style['margin'] = "0px"
62 self.style['width'] = "427px"
63 self.style['display'] = "block"
64 self.style['height'] = "480px"
65 testlabel = Label("This is Screen 2!")
66 mytextbox = TextInput(single_line=True,hint="Write something to be send to screen 1")
67 btnsend = Button("Send Text Input to Screen 1")
68 self.append(testlabel,'testlabel')
69 self.append(mytextbox,'mytextbox')
70 self.append(btnsend,'btnsend')
71
72
73#class definition for the App

Callers 1

mainMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected