(self)
This private function is called by the destructor to detach the
        process from its shared memory segment.  When the last process detaches
        from a shared memory segment, the system releases the shared memory.
This private function is called by the destructor to detach the
        process from its shared memory segment.  When the last process detaches
        from a shared memory segment, the system releases the shared memory.
This private function is called by the destructor to detach the process from its shared memory segment . When the last process detaches from a shared memory segment the system releases the shared memory .
def detach(self):
        """ This private function is called by the destructor to detach the
        process from its shared memory segment.  When the last process detaches
        from a shared memory segment, the system releases the shared memory.
        """

        if not self.sharedMemory.detach():
            self.ui.label.setText("Unable to detach from shared memory.")
def detach ( self ) : if not self . sharedMemory . detach ( ) : self . ui . label . setText ( "Unable to detach from shared memory." )