本文整理汇总了Python中flickrapi.FlickrAPI.noExitTestFailure方法的典型用法代码示例。如果您正苦于以下问题:Python FlickrAPI.noExitTestFailure方法的具体用法?Python FlickrAPI.noExitTestFailure怎么用?Python FlickrAPI.noExitTestFailure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类flickrapi.FlickrAPI
的用法示例。
在下文中一共展示了FlickrAPI.noExitTestFailure方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: FlickrAPI
# 需要导入模块: from flickrapi import FlickrAPI [as 别名]
# 或者: from flickrapi.FlickrAPI import noExitTestFailure [as 别名]
import wx
# Autenticazione
flickrAPIKey = "ea9b8730af07cd76f6dc4fde27744b74" # API key
flickrSecret = "45dfeeb5abec1ff9" # shared "secret"
# crea una istanza di FlickrAPI
fapi = FlickrAPI(flickrAPIKey, flickrSecret)
# ottieni un token valido
if sys.platform == 'win32':
token = fapi.getToken(browser="C:\\Progra~1\\Intern~1\\iexplore.exe", perms="write")
else:
token = fapi.getToken(browser="firefox", perms="write")
rsp = fapi.auth_checkToken(api_key=flickrAPIKey, auth_token=token)
fapi.noExitTestFailure(rsp)
user_id = rsp.auth[0].user[0]['nsid']
#################sux
def create(parent):
return Frame1(parent)
[wxID_FRAME1, wxID_FRAME1CHOICE1, wxID_FRAME1CHOICE2, wxID_FRAME1INTESTAZIONE,
wxID_FRAME1OKBUTTON, wxID_FRAME1STATUSBAR1,
] = [wx.NewId() for _init_ctrls in range(6)]
class Frame1(wx.Frame):
def _init_coll_statusBar1_Fields(self, parent):
# generated method, don't edit
parent.SetFieldsCount(1)