2016-02-14 00:06:36 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import wx
|
|
|
|
import application
|
|
|
|
|
|
|
|
def no_data_entered():
|
|
|
|
return wx.MessageDialog(None, _(u"You must provide Both user and password."), _(u"Information needed"), wx.ICON_ERROR).ShowModal()
|
|
|
|
|
|
|
|
def no_update_available():
|
2016-03-27 08:11:52 +02:00
|
|
|
return wx.MessageDialog(None, _(u"Your {0} version is up to date").format(application.name,), _(u"Update"), style=wx.OK).ShowModal()
|
|
|
|
|
|
|
|
def remove_buffer():
|
2016-04-12 22:59:22 +02:00
|
|
|
return wx.MessageDialog(None, _(u"Do you really want to dismiss this buffer?"), _(u"Attention"), style=wx.ICON_QUESTION|wx.YES_NO).ShowModal()
|
|
|
|
|
|
|
|
def no_user_exist():
|
2016-04-14 00:45:05 +02:00
|
|
|
wx.MessageDialog(None, _(u"This user does not exist"), _(u"Error"), style=wx.ICON_ERROR).ShowModal()
|
|
|
|
|
|
|
|
def show_error_code(code):
|
|
|
|
title = ""
|
|
|
|
message = ""
|
|
|
|
if code == 201:
|
|
|
|
title = _(u"Restricted access")
|
|
|
|
message = _(u"Access to user's audio is denied by the owner. Error code {0}").format(code,)
|
|
|
|
return wx.MessageDialog(None, message, title, style=wx.ICON_ERROR).ShowModal()
|