MapInfo Pro Developers User Group

 View Only
  • 1.  Is it possible to create a dockable window using pyqt?

    Posted 02-10-2022 02:15
    Edited by Max Map 02-10-2022 05:22
    Hello everyone.
    Is it possible to create a python dockable add-on using qt?
    I can't figure out the docking_events_gdal example with its XAML and .net elements
    It would be great to get an example implementation of a dockable window for mapinfo using python and qt.

    I want to make a dockable or float window that displays information on the selected object.
    To get the selected object I use "pro.Catalog.SelectionBaseTable()" and it works.
    But my knowledge is only enough for python (pyqt)



    ------------------------------
    Max Map
    Knowledge Community Shared Account
    Shelton
    ------------------------------


  • 2.  RE: Is it possible to create a dockable window using pyqt?

    Employee
    Posted 02-17-2022 09:05
    Hi Max,
    It is not possible to create dockable windows in pyqt, as it uses completely different window mechanism, but you can create dialogs in pyqt.
    Check the mapinfo_customization_dialogs for dialog example, sample is part of PythonQuickStart addin.

    Thanks
    Anshul

    ------------------------------
    Anshul Goel
    Knowledge Community Shared Account
    Shelton CT
    ------------------------------