Skip to content

Displaying Popup Messages & Loading Slicelet in Main Window #14

@gslle924

Description

@gslle924

I’m working on adding modules to the main Slicer window and ran into a couple of issues:

Problem 1: Popup Messages when Loading Data

I’d like to display a popup message whenever I load DICOM and non-DICOM (e.g., VFF) data. I tried using the following code:

slicer.app.processEvents()  

# qt.QMessageBox.information(None,"Done","DICOM files loaded successfully.")  
self.delayDisplay("DICOM files loaded successfully.")  

However, this did not work for either DICOM or VFF files. Am I missing something in how/where this should be called?

Problem 2: Load Slicelet in Main Window

I would like to load my Slicelet directly within the main Slicer window instead of having it open in a separate window. What is the recommended way to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions