We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1299274 commit e3e4221Copy full SHA for e3e4221
artiq/applets/simple.py
@@ -134,10 +134,15 @@ def create_main_widget(self):
134
if self.args.embed is not None:
135
self.ipc.set_close_cb(self.main_widget.close)
136
if os.name == "nt":
137
+ # HACK: if the window has a frame, there will be garbage
138
+ # (usually white) displayed at its right and bottom borders
139
+ # after it is embedded.
140
+ self.main_widget.setWindowFlags(QtCore.Qt.FramelessWindowHint)
141
self.main_widget.show()
142
win_id = int(self.main_widget.winId())
143
self.loop.run_until_complete(self.ipc.embed(win_id))
144
else:
145
+ # HACK:
146
# Qt window embedding is ridiculously buggy, and empirical
147
# testing has shown that the following procedure must be
148
# followed exactly on Linux:
0 commit comments