def METHOD_NAME(self, vec_up, vec_back, vec_right):
    if self.get_canvas().displayMode == '2D':
        dlg = wx.MessageDialog(self,
                               'Setting views in only possible in 3d mode', 'Info', wx.OK | wx.ICON_INFORMATION)
        dlg.ShowModal()
        dlg.Destroy()
    else:
        old_view = self.get_canvas().get_view()
        self.alternate = not self.alternate
        new_view = View(old_view.view_id, vec_up, vec_back, vec_right, old_view.translation, old_view.scale)
        self.get_canvas().METHOD_NAME(new_view)