Пример #1
0
def error():
    window = guitk.BCMessageWindowCreate(guitk.constants.BCMessageBoxWarning,
                                         'No element selected', False)
    guitk.BCMessageWindowSetRejectButtonVisible(window, False)
    guitk.BCWindowFlash(window)
    guitk.BCShow(window)
    return 1
Пример #2
0
    def showMessage(message, critical=False):

        if critical:
            messageWindow = guitk.BCMessageWindowCreate(
                guitk.constants.BCMessageBoxCritical, message, True)
        else:
            messageWindow = guitk.BCMessageWindowCreate(
                guitk.constants.BCMessageBoxInformation, message, True)

        guitk.BCMessageWindowSetRejectButtonVisible(messageWindow, False)
        guitk.BCWindowSetSaveSettings(messageWindow, True)
        guitk.BCMessageWindowExecute(messageWindow)
Пример #3
0
def showInfoMessage(message):

    messageWindow = guitk.BCMessageWindowCreate(
        guitk.constants.BCMessageBoxInformation, message, True)
    guitk.BCMessageWindowSetRejectButtonVisible(messageWindow, False)
    guitk.BCMessageWindowExecute(messageWindow)
Пример #4
0
def showCriticalMessage(message):

    messageWindow = guitk.BCMessageWindowCreate(
        guitk.constants.BCMessageBoxCritical, message, True)
    guitk.BCMessageWindowSetRejectButtonVisible(messageWindow, False)
    guitk.BCMessageWindowExecute(messageWindow)