29 lines
619 B
Python
29 lines
619 B
Python
from typing import Any
|
|
|
|
import dearpygui.dearpygui as _dpg
|
|
|
|
import dpg_map as dpgm
|
|
|
|
dpg: Any = _dpg
|
|
|
|
|
|
def main() -> None:
|
|
dpg.create_context()
|
|
dpg.create_viewport(title="dpg-map child sizing", width=900, height=600)
|
|
|
|
with (
|
|
dpg.window(label="Nested Child", width=-1, height=-1),
|
|
dpg.child_window(width=-1, height=420),
|
|
dpgm.map_widget(tag="map-child", width=-1, height=-1),
|
|
):
|
|
dpgm.add_marker("inside-child", lat=47.0, lon=2.0)
|
|
|
|
dpg.setup_dearpygui()
|
|
dpg.show_viewport()
|
|
dpg.start_dearpygui()
|
|
dpg.destroy_context()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|