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 hidden tab", width=900, height=600) with dpg.window(label="Hidden Tab Sizing", width=-1, height=-1), dpg.tab_bar(): with dpg.tab(label="First"): dpg.add_text("Switch to the map tab.") with dpg.tab(label="Map"), dpgm.map_widget(tag="map-hidden-tab", width=-1, height=500): dpgm.add_marker("tab-marker", lat=35.0, lon=139.0) dpg.setup_dearpygui() dpg.show_viewport() dpg.start_dearpygui() dpg.destroy_context() if __name__ == "__main__": main()