Curious if something like this would help avoid losing the gui widget on some machines:
Code:
my_widget.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
placed just before:
There's also:
Code:
my_widget.setWindowFlags(QtCore.Qt.Tool)
Even though it doesn't seem to happen everywhere all the time, I think this behavior might have something to do with widgets that have no parent.