but = Qtwidgets.qtoolbutton (Dialog2) but.settext (' * * ') but.setautoraise (True) layout.addwidget (But) Dialog2.setwindowflags (QtCore.Qt.FramelessWindowHint | QtCore.Qt.Tool) dialog2.setwindowopacity (1) Dialog2.setattribute (QtCore.Qt.WA_TranslucentBackground)
Qt.popup window indicates that the widget was a pop-up top-level window, i.e. that it was modal, but had a Window sys TEM frame appropriate for pop-up menus.
Qt.tool indicates the widget is a Tool window. A tool window is often a small window with a smaller than usual title bar and decoration, typically used for collections O F tool buttons. If There is a parent, the tool window would always be kept on top of it. If there isn ' t a parent, you may consider using Qt::windowstaysontophint as well. If the window system supports it, a tool window can be decorated with a somewhat lighter frame. It can also is combined with qt::framelesswindowhint. On OS X, tool windows correspond to the floating class of Windows. This means, the window lives on a level above normal windows; It impossible to put a normal window on top of it. By default, tool windows would disappear when the application is inactive. This can is controlled by the Qt::wa_macalwaysshowtoolwindow attribute.
Qwidget to break the layout or the pop-up window within the current window