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

Method main

editor/editor.py:743–894  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

741 self.reload_project()
742
743 def main(self):
744 import time
745 t= time.time()
746 #custom css
747 my_css_head = """
748 <link href='/editor_resources:style.css' rel='stylesheet' />
749 """
750 self.page.children['head'].add_child('mycss', my_css_head)
751
752 self.mainContainer = gui.GridBox(width='100%', height='100%')
753 self.mainContainer.set_from_asciiart("""
754 | menubar | menubar | instances |
755 | toolbox | toolbar | instances |
756 | toolbox | project | instances |
757 | toolbox | project | instances |
758 | toolbox | project | instances |
759 | toolbox | project | instances |
760 | toolbox | project | properties |
761 | toolbox | project | properties |
762 | toolbox | project | properties |
763 | toolbox | project | properties |
764 | toolbox | project | properties |
765 | toolbox | project | properties |
766 | toolbox | project | properties |
767 | toolbox | project | properties |
768 | toolbox | project | properties |
769 | toolbox | signals | properties |
770 | toolbox | signals | properties |
771 | toolbox | signals | properties |
772 | toolbox | signals | properties |
773 | toolbox | signals | properties |
774 """, 0, 0)
775
776 menubar = gui.MenuBar(width='100%', height='100%')
777 menu = gui.Menu(width='100%', height='100%')
778 menu.style['z-index'] = '1'
779 m1 = gui.MenuItem('File', width=150, height='100%')
780 m10 = gui.MenuItem('New', width=150, height=30)
781 m11 = gui.MenuItem('Open', width=150, height=30)
782 m12 = gui.MenuItem('Save Your App', width=150, height=30)
783 #m12.style['visibility'] = 'hidden'
784 m121 = gui.MenuItem('Save', width=100, height=30)
785 m122 = gui.MenuItem('Save as', width=100, height=30)
786 m123 = gui.MenuItem('Export widget as', width=200, height=30)
787 m124 = gui.MenuItem('Export widget for App Template', width=200, height=30)
788 m1.append([m10, m11, m12])
789 m12.append([m121, m122, m123, m124])
790
791 m2 = gui.MenuItem('Edit', width=100, height='100%')
792 m21 = gui.MenuItem('Cut', width=100, height=30)
793 m22 = gui.MenuItem('Paste', width=100, height=30)
794 m2.append([m21, m22])
795
796 m3 = gui.MenuItem('Project Config', width=200, height='100%')
797
798 m4 = gui.MenuItem('Became a Sponsor', width=200,
799 height='100%', style={'font-weight': 'bold'})
800

Callers

nothing calls this directly

Calls 15

appendMethod · 0.95
menu_new_clickedMethod · 0.95
SvgDraggablePointClass · 0.85
add_childMethod · 0.80
add_commandMethod · 0.80
add_fileinput_fieldMethod · 0.80
ResizeHelperClass · 0.70
DragHelperClass · 0.70
set_from_asciiartMethod · 0.45

Tested by

no test coverage detected