gui/tools/designer.py
def wellcome_tip(wx_obj):
    "Show a tip message"
    
    msg = ("Close the main window to exit & save.\n"
           "Drag & Drop / Click the controls from the ToolBox to create new ones.\n"
           "Left click on the created controls to select them.\n"
           "Double click to edit the default property.\n"
           "Right click to pop-up the context menu.\n")
    # create a super tool tip manager and set some styles
    stt = STT.SuperToolTip(msg)
    stt.SetHeader("Welcome to gui2py designer!")
    stt.SetDrawHeaderLine(True)
    stt.ApplyStyle("Office 2007 Blue")
    stt.SetDropShadow(True)
    stt.SetHeaderBitmap(images.designer.GetBitmap())
    stt.SetEndDelay(15000)                      # hide in 15 s
    # create a independent tip window, show/hide manually (avoid binding wx_obj)
    tip = CustomToolTipWindow(wx_obj, stt)
    tip.CalculateBestSize()
    tip.CalculateBestPosition(wx_obj)
    tip.DropShadow(stt.GetDropShadow())
    if stt.GetUseFade():
        show = lambda: tip.StartAlpha(True)
    else:
        show = lambda: tip.Show()
    wx.CallLater(1000, show)           # show the tip in 1 s
    wx.CallLater(30000, tip.Destroy)
def wellcome_tip(wx_obj):
    "Show a tip message"
    
    msg = ("Close the main window to exit & save.\n"
           "Drag & Drop / Click the controls from the ToolBox to create new ones.\n"
           "Left click on the created controls to select them.\n"
           "Double click to edit the default property.\n"
           "Right click to pop-up the context menu.\n")
    # create a super tool tip manager and set some styles
    stt = STT.SuperToolTip(msg)
    stt.SetHeader("Welcome to gui2py designer!")
    stt.SetDrawHeaderLine(True)
    stt.ApplyStyle("Office 2007 Blue")
    stt.SetDropShadow(True)
    stt.SetHeaderBitmap(images.designer.GetBitmap())
    stt.SetEndDelay(15000)                      # hide in 15 s
    # create a independent tip window, show/hide manually (avoid binding wx_obj)
    tip = CustomToolTipWindow(wx_obj, stt)
    tip.CalculateBestSize()
    tip.CalculateBestPosition(wx_obj)
    tip.DropShadow(stt.GetDropShadow())
    if stt.GetUseFade():
        show = lambda: tip.StartAlpha(True)
    else:
        show = lambda: tip.Show()
    wx.CallLater(1000, show)           # show the tip in 1 s
    wx.CallLater(30000, tip.Destroy)
Show a tip message