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

Method __init__

editor/editor_widgets.py:66–85  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

64
65class InstancesWidget(gui.VBox):
66 def __init__(self, **kwargs):
67 super(InstancesWidget, self).__init__(**kwargs)
68 self.titleLabel = gui.Label('Instances list', width='100%', height=20)
69 self.titleLabel.add_class("DialogTitle")
70 self.style['align-items'] = 'flex-start'
71
72 self.container = gui.VBox(width="100%", height="calc(100% - 20px)")
73 self.container.css_align_items = 'flex-start'
74 self.container.css_justify_content = 'flex-start'
75 self.container.css_overflow = 'auto'
76
77 self.treeView = InstancesTree()
78 self.container.append(self.treeView)
79
80 self.append([self.titleLabel, self.container])
81
82 self.titleLabel.style['order'] = '-1'
83 self.titleLabel.style['-webkit-order'] = '-1'
84 self.container.style['order'] = '0'
85 self.container.style['-webkit-order'] = '0'
86
87 def update(self, editorProject, selectedNode):
88 self.treeView.empty()

Callers

nothing calls this directly

Calls 4

InstancesTreeClass · 0.85
add_classMethod · 0.80
__init__Method · 0.45
appendMethod · 0.45

Tested by

no test coverage detected