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

Develop the M2 Python EUI in Phase 10

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ts_main_telescope
    • Labels:
    • Story Points:
      1
    • Sprint:
      TSSW Sprint - May 09 - May 23
    • Team:
      Telescope and Site
    • Urgent?:
      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 created issue -
            ttsai Te-Wei Tsai made changes -
            Field Original Value New Value
            Link This issue is triggered by DM-34690 [ DM-34690 ]
            ttsai Te-Wei Tsai made changes -
            Sprint TSSW Sprint - May 23 - Jun 06 [ 1168 ] TSSW Sprint - May 09 - May 23 [ 1164 ]
            ttsai Te-Wei Tsai made changes -
            Description Develop the M2 Python EUI in the phase 10. The pyside2 will be used to construct the EUI to align with M1M3. 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.
            ttsai Te-Wei Tsai made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            ttsai Te-Wei Tsai made changes -
            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. 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:

            {code:python}
            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
            {code}
            ttsai Te-Wei Tsai made changes -
            Link This issue is triggering DM-34872 [ DM-34872 ]
            ttsai Te-Wei Tsai made changes -
            Story Points 1
            ttsai Te-Wei Tsai made changes -
            Reviewers Petr Kubanek [ pkubanek ]
            Status In Progress [ 3 ] In Review [ 10004 ]
            ttsai Te-Wei Tsai made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            ttsai Te-Wei Tsai made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]

              People

              Assignee:
              ttsai Te-Wei Tsai
              Reporter:
              ttsai Te-Wei Tsai
              Reviewers:
              Petr Kubanek
              Watchers:
              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.