Added an error message when there is an exception in authorisation
This commit is contained in:
@@ -20,4 +20,7 @@ def show_error_code(code):
|
||||
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()
|
||||
return wx.MessageDialog(None, message, title, style=wx.ICON_ERROR).ShowModal()
|
||||
|
||||
def bad_authorisation():
|
||||
return wx.MessageDialog(None, _(u"authorisation failed. Your configuration will not be saved. Please close and open again the application for authorising your account. Make sure you have typed your credentials correctly."), _(u"Error"), style=wx.ICON_ERROR).ShowModal()
|
@@ -38,7 +38,6 @@ class mainWindow(wx.Frame):
|
||||
self.SetClientSize(self.sizer.CalcMin())
|
||||
self.Layout()
|
||||
self.SetSize(self.GetBestSize())
|
||||
print self.GetSize()
|
||||
|
||||
def change_status(self, status):
|
||||
self.sb.SetStatusText(status)
|
||||
|
Reference in New Issue
Block a user