Here a simple example of what I'm talking about :
from  leo.core.leoQt import QtWidgets

b = QtWidgets.QMessageBox

def independantBox():
    """This box is independant from Leo
    You can keep working without closing it
    It have its own tab on your desktop app panel"""  
    # For no new app tab
    box=b()
    #Equivalent to 
    #box=b(None)
    #box=b(parent=None)
    box.setWindowIcon(g.app.gui.appIcon)
    box.exec_()



def childBox():
    """This box is attached to Leo
    Leo is frozen until you close it
    It have no tab on your panel"""
    box=b(c.frame.top)
    #Equivalent to 
    #box=b(parent=c.frame.top)
    # Set tabs icon
    box.exec_()


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to