Skip to content

Commit

Permalink
Add pyodide_web_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Oct 6, 2024
1 parent 2cad5fe commit 2db3231
Show file tree
Hide file tree
Showing 19 changed files with 1,887 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyodide_web_demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyodide_dist/
24 changes: 24 additions & 0 deletions pyodide_web_demo/examples.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"examples": [
{
"label": "Hello World",
"filename": "hello_world.py"
},
{
"label": "A full demo of Dear ImGui Bundle",
"filename": "run_demo_imgui_bundle.py"
},
{
"label": "Animated plot",
"filename": "animated_plot.py"
},
{
"label": "Markdown demo",
"filename": "markdown_demo.py"
},
{
"label": "Docking demo",
"filename": "demo_docking.py"
}
]
}
150 changes: 150 additions & 0 deletions pyodide_web_demo/examples/Dear_ImGui_Bundle_interactive_manual.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
;;; !!! This configuration is handled by HelloImGui and stores several Ini Files, separated by markers like this:
;;;<<<INI_NAME>>>;;;

;;;<<<ImGui_753088835_Default>>>;;;
[Window][Dear ImGui Bundle]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,0

[Window][Dear ImGui]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,1

[Window][Immediate Apps]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,2

[Window][Implot]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,3

[Window][Node Editor]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,4

[Window][Markdown]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,5

[Window][Text Editor]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,6

[Window][Widgets]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,7

[Window][ImmVision]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,8

[Window][NanoVG]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,9

[Window][ImGuizmo]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,10

[Window][Themes]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,11

[Window][Logger]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,12

[Window][tex_inspect]
Pos=0,21
Size=1400,900
Collapsed=0
DockId=0xC3C5E3D9,13

[Window][Debug##Default]
Pos=60,60
Size=400,400
Collapsed=0

[Window][Dear ImGui Demo]
ViewportPos=232,3354
ViewportId=0xE927CF2F
Size=32,58
Collapsed=0

[Window][StatusBar]
Pos=0,920
Size=1400,32
Collapsed=0

[Docking][Data]
DockSpace ID=0xC3C5E3D9 Window=0xDEDC5B90 Pos=164,104 Size=1400,900 CentralNode=1 Selected=0x1C9B9B95

[TestEngine][Data]
FilterTests=
FilterPerfs=
LogHeight=150
CaptureTool=0
PerfTool=0
StackTool=0
CaptureEnabled=1
CaptureOnError=0
VideoCapturePathToEncoder=
VideoCaptureParamsToEncoder=
GifCaptureParamsToEncoder=
VideoCaptureExtension=.mp4


;;;<<<Layout_753088835_Default>>>;;;
[Visibility]
1114456682_Text_Editor=true
1390796125_Widgets=true
1741166958_Implot=true
1875438261_Markdown=true
2079720987_tex_inspect=true
228656001_ImmVision=true
2296922829_ImGuizmo=true
2372515258_Dear_ImGui=true
2681345733_Logger=true
3169433230_NanoVG=true
317601768_Themes=true
3301827767_Immediate_Apps=true
3824406076_Node_Editor=true
81238392_Dear_ImGui_Bundle=true

;;;<<<HelloImGui_Misc>>>;;;
[Layout]
Name=Default
[StatusBar]
Show=true
ShowFps=true
[Theme]
Name=DarculaDarker

;;;<<<SplitIds>>>;;;
{"gImGuiSplitIDs":{"MainDockSpace":3284526041}}
2 changes: 2 additions & 0 deletions pyodide_web_demo/examples/animated_plot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# An animated plot
print("An animated plot")
Loading

0 comments on commit 2db3231

Please sign in to comment.