Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-34861

Develop the M2 Python EUI in Phase 10

    XMLWordPrintable

Details

    • Story
    • Status: Done
    • Resolution: Done
    • None
    • ts_main_telescope
    • 1
    • TSSW Sprint - May 09 - May 23
    • Telescope and Site
    • No

    Description

      Develop the M2 Python EUI in the phase 10. The pyside2 will be used to construct the EUI to align with M1M3. This ticket will implement the warning window.

      Petr recommend to have something like this:

      def warning(parent, title, description):
          """Creates future with QMessageBox. Enables use of QMessageBox with
          asyncqt/asyncio. Mimics QMessageBox.warning behaviour - but QMessageBox
          cannot be used, as it blocks Qt loops from executing (as all modal dialogs
          does).
       
          Parameters
          ----------
          parent : `QtWidget`
              Parent widget.
          title : `str`
              Message window title.
          description : `str`
              Descrption of warning occured.
          """
       
          future = asyncio.Future()
          dialog = QMessageBox(parent)
          dialog.setWindowTitle(title)
          dialog.setText(description)
          dialog.setIcon(QMessageBox.Warning)
          dialog.finished.connect(lambda r: future.set_result(r))
          dialog.open()
          return future
      

      Attachments

        Issue Links

          Activity

            ttsai Te-Wei Tsai added a comment -

            Please help to review the PR:
            https://github.com/lsst-ts/ts_m2gui/pull/10

            Thanks!

            ttsai Te-Wei Tsai added a comment - Please help to review the PR: https://github.com/lsst-ts/ts_m2gui/pull/10 Thanks!
            ttsai Te-Wei Tsai added a comment -

            Thanks Petr's review in GitHub!

            ttsai Te-Wei Tsai added a comment - Thanks Petr's review in GitHub!

            People

              ttsai Te-Wei Tsai
              ttsai Te-Wei Tsai
              Petr Kubanek
              Petr Kubanek, Te-Wei Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Jenkins

                  No builds found.